Introduces a few composer scripts for PHPUnit and PHP_CodeSniffer

This commit is contained in:
Claudio Sanches 2017-11-29 18:10:54 -02:00
parent b05cd3f3a7
commit d9da796f11
1 changed files with 16 additions and 0 deletions

View File

@ -27,6 +27,22 @@
],
"post-update-cmd": [
"WooCommerce\\GitHooks\\Hooks::postHooks"
],
"test": [
"phpunit"
],
"phpcs": [
"phpcs -s -p --standard=./phpcs.ruleset.xml"
],
"phpcbf": [
"phpcs -p --standard=./phpcs.ruleset.xml"
]
},
"extra": {
"scripts-description": {
"test": "Run unit tests",
"phpcs": "Analyze code against the WordPress coding standards with PHP_CodeSniffer",
"phpcbf": "Fix coding standards warnings/errors automatically with PHP Code Beautifier"
}
}
}