-
Notifications
You must be signed in to change notification settings - Fork 2
/
composer.json
28 lines (28 loc) · 996 Bytes
/
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
{
"description": "composer.json for testing WordPress theme/plugin",
"license": "GPL2 or later",
"require": {},
"require-dev": {
"squizlabs/php_codesniffer": "*",
"wp-coding-standards/wpcs": "*",
"phpmd/phpmd": "*",
"phpstan/phpstan": "*",
"phpunit/phpunit": "^7"
},
"scripts": {
"phpcs:config-set": "phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs",
"phpcs": "phpcs -p -s -v -n ./ --standard=./phpcs.ruleset.xml --extensions=php",
"phpcs:warning": "phpcs -p -s -v ./ --standard=./phpcs.ruleset.xml --extensions=php",
"phpmd": "phpmd ./ text ./phpmd.ruleset.xml --suffixes php --exclude /languages,/tests,/vendor,/node_modules",
"format:phpcbf": "phpcbf -p -s -v ./ --standard=./phpcs.ruleset.xml --extensions=php",
"phpstan": "phpstan analyse",
"phpunit": "phpunit",
"coverage": "phpunit --coverage-html ./tests/report",
"ci": [
"@phpunit",
"@phpcs",
"@phpmd",
"@phpstan"
]
}
}