-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcomposer.json
74 lines (74 loc) · 2.37 KB
/
composer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"name": "wp-translations/wpt-custom-mo-file",
"description": "WPT Custom Mo File is a powerful translation plugin that helps you use your own translation .mo files. Simple as that.",
"type": "wordpress-plugin",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "WP-Translations",
"email": "[email protected]",
"homepage": "https://wp-translations.pro/"
}
],
"require": {
"php": ">=7.2"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
"wp-coding-standards/wpcs": "^2.3.0",
"phpcompatibility/phpcompatibility-wp": "^2.1.4",
"phpmd/phpmd": "^2.13.0",
"szepeviktor/phpstan-wordpress": "^1.1.3",
"sirbrillig/phpcs-variable-analysis": "^2.11.9"
},
"config": {
"optimize-autoloader": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"scripts": {
"lint": [
"@lint:php",
"@compat:php",
"@lint:phpstan",
"@lint:css",
"@lint:js",
"@lint:md:docs",
"@lint:pkg-json"
],
"zip": [
"composer install --no-dev",
"composer archive --file=wpt-custom-mo-file --format=zip",
"composer install"
],
"phpcs-i": "phpcs -i",
"lint:php": "phpcs -v --standard=phpcs.xml",
"format:php": "phpcbf -v --standard=phpcs.xml",
"compat:php": "phpcs -v --standard=phpcompat.xml",
"lint:phpstan": "phpstan analyse -c phpstan.neon --memory-limit=1G",
"lint:phpmd": "phpmd . text phpmd.xml",
"lint:css": "npm run lint:css",
"lint:js": "npm run lint:js",
"lint:md:docs": "npm run lint:md:docs",
"lint:pkg-json": "npm run lint:pkg-json",
"build": "npm run build",
"scripts-list": "composer run-script --list"
},
"scripts-descriptions": {
"lint": "Runs all available code linting (PHP_CodeSniffer, PHPStan, CSS, JS and MD lint).",
"phpcs-i": "Log PHPCS debug information.",
"lint:php": "Runs the PHP code sniffer.",
"format:php": "Runs the PHP code sniffer and automatically fix errors.",
"compat:php": "Runs the PHPCompatibilityWP code sniffer.",
"lint:phpstan": "Runs the PHPStan code static analysis.",
"lint:phpmd": "Runs the PHPMD code static analysis.",
"lint:css": "Run npm CSS linter.",
"lint:js": "Run npm JS linter.",
"lint:md:docs": "Run npm MD linter.",
"lint:pkg-json": "Run npm package.json linter.",
"build": "Build CSS and JS with npm run build",
"scripts-list": "List all Composer scripts.",
"zip": "Build production zip archive."
}
}