-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
44 lines (44 loc) · 1.69 KB
/
Copy pathcomposer.json
File metadata and controls
44 lines (44 loc) · 1.69 KB
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
{
"description": "composer.json for testing WordPress theme/plugin",
"license": "GPLv2 or later",
"require-dev": {
"phpcsstandards/phpcsutils": "^1.0",
"dealerdirect/phpcodesniffer-composer-installer": "*",
"phpcsstandards/phpcsextra": "^1.0",
"wp-coding-standards/wpcs": "^3.0.0",
"phpmd/phpmd": "2.*",
"phpstan/phpstan": "*",
"phpunit/phpunit": "^9",
"phpcompatibility/phpcompatibility-wp": "*",
"yoast/phpunit-polyfills": "^2"
},
"prefer-stable" : true,
"scripts": {
"post-install-cmd": "@phpcs:config-set",
"post-update-cmd" : "@phpcs:config-set",
"phpcs:config-set": "phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs,vendor/phpcsstandards/phpcsextra,vendor/phpcsstandards/phpcsutils,vendor/phpcompatibility/php-compatibility,vendor/phpcompatibility/phpcompatibility-paragonie,vendor/phpcompatibility/phpcompatibility-wp",
"phpcs": "phpcs -p -s -v ./ --standard=./phpcs.ruleset.xml --extensions=php",
"phpcs:error": "phpcs -p -s -v -n ./ --standard=./phpcs.ruleset.xml --extensions=php",
"format:phpcbf": "phpcbf -p -s -v ./ --standard=./phpcs.ruleset.xml --extensions=php",
"phpmd": "phpmd ./ text ./phpmd.ruleset.xml --suffixes php --exclude /languages,/tests,/vendor,/node_modules",
"phpstan": "phpstan analyse",
"phpunit": "phpunit",
"coverage": "phpunit --coverage-html ./tests/report",
"compat": "phpcs -p ./ --standard=PHPCompatibilityWP --extensions=php",
"ci": [
"@phpunit",
"@phpcs",
"@phpmd",
"@phpstan"
],
"build": [
"@phpunit",
"@phpcs"
]
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}