-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
composer.json
86 lines (86 loc) · 2.81 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
75
76
77
78
79
80
81
82
83
84
85
86
{
"name": "pedro-mendonca/translation-stats",
"description": "Show plugins translation stats on your WordPress install.",
"license": "GPL-2.0-or-later",
"type": "wordpress-plugin",
"authors": [
{
"name": "Pedro Mendonça",
"email": "ped.gaspar@gmail.com",
"homepage": "https://pedromendonca.pt"
}
],
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/pedro-mendonca"
}
],
"require": {
"php": ">=7.4"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
"ergebnis/composer-normalize": "^2.43.0",
"phpcompatibility/phpcompatibility-wp": "^2.1.5",
"phpmd/phpmd": "^2.15.0",
"phpstan/extension-installer": "^1.4.1",
"sirbrillig/phpcs-variable-analysis": "^2.11.19",
"szepeviktor/phpstan-wordpress": "^1.3.5",
"wp-coding-standards/wpcs": "^3.1.0",
"yoast/phpunit-polyfills": "^1.1.1"
},
"config": {
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"ergebnis/composer-normalize": true,
"phpstan/extension-installer": true
},
"optimize-autoloader": true
},
"scripts": {
"build": "npm run build",
"compat:php": "phpcs -v --standard=phpcompat.xml.dist",
"format:php": "phpcbf -v --standard=phpcs.xml.dist",
"lint": [
"@lint:php",
"@compat:php",
"@lint:phpstan",
"@lint:css",
"@lint:js",
"@lint:md:docs",
"@lint:pkg-json"
],
"lint:css": "npm run lint:css",
"lint:js": "npm run lint:js",
"lint:md:docs": "npm run lint:md:docs",
"lint:php": "phpcs -v --standard=phpcs.xml.dist",
"lint:phpmd": "phpmd . text phpmd.xml.dist",
"lint:phpstan": "phpstan analyse -c phpstan.neon --memory-limit=1G",
"lint:pkg-json": "npm run lint:pkg-json",
"phpcs-i": "phpcs -i",
"scripts-list": "composer run-script --list",
"test": "phpunit --colors=always",
"test:coverage": "phpunit --colors=always --coverage-clover coverage.xml",
"zip": "composer archive --file=translation-stats --format=zip"
},
"scripts-descriptions": {
"build": "Compile all CSS and JS with npm run build",
"compat:php": "Runs the PHPCompatibilityWP code sniffer.",
"format:php": "Runs the PHP code sniffer and automatically fix errors.",
"lint": "Runs all available code linting (PHP_CodeSniffer, PHPStan, CSS, JS and MD lint).",
"lint:css": "Run npm CSS linter.",
"lint:js": "Run npm JS linter.",
"lint:md:docs": "Run npm MD linter.",
"lint:php": "Runs the PHP code sniffer.",
"lint:phpmd": "Runs the PHPMD code static analysis.",
"lint:phpstan": "Runs the PHPStan code static analysis.",
"lint:pkg-json": "Run npm package.json linter.",
"phpcs-i": "Log PHPCS debug information.",
"scripts-list": "List all Composer scripts.",
"test": "Runs the PHPUnit tests.",
"test:coverage": "Runs the PHPUnit tests with code coverage.",
"zip": "Build production zip archive."
}
}