WordPress-Coding-Standards/composer.json
Gary Jones 48a63e183d Composer: Make script DRY
Also allows the functionality to be run directly (`composer install-codestandards`) instead of having to do a full `composer install` or `composer update`.
2018-07-25 15:38:03 +01:00

35 lines
1.3 KiB
JSON

{
"name" : "wp-coding-standards/wpcs",
"description": "PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions",
"keywords" : ["phpcs", "standards", "WordPress"],
"license" : "MIT",
"authors" : [
{
"name" : "Contributors",
"homepage": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/graphs/contributors"
}
],
"require" : {
"php" : ">=5.3",
"squizlabs/php_codesniffer": "^2.9.0 || ^3.0.2"
},
"require-dev" : {
"phpcompatibility/php-compatibility": "*"
},
"suggest" : {
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.3 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically."
},
"minimum-stability" : "RC",
"support" : {
"issues": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues",
"wiki" : "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki",
"source": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards"
},
"type" : "phpcodesniffer-standard",
"scripts" : {
"install-codestandards": "\"vendor/bin/phpcs\" --config-set installed_paths ../../..,../../phpcompatibility/php-compatibility",
"post-install-cmd": "@install-codestandards",
"post-update-cmd" : "@install-codestandards"
}
}