build: add composer script commands
This commit is contained in:
parent
a661d36752
commit
5db05c3779
1 changed files with 6 additions and 2 deletions
|
@ -6,10 +6,14 @@
|
||||||
"release": "./_tools/release.sh",
|
"release": "./_tools/release.sh",
|
||||||
"release:commit": "composer run release -- -c",
|
"release:commit": "composer run release -- -c",
|
||||||
"build": "./_tools/build.sh",
|
"build": "./_tools/build.sh",
|
||||||
|
"lint": "composer run lint:php && npm run lint",
|
||||||
|
"lint:fix": "composer run lint:php:fix && npm run lint:fix",
|
||||||
"lint:php": "./vendor/bin/phpcs --standard='WordPress' --colors --encoding=utf-8 -n -p --ignore=*/vendor/* ./*.php ./*/*.php ./*/*/*.php",
|
"lint:php": "./vendor/bin/phpcs --standard='WordPress' --colors --encoding=utf-8 -n -p --ignore=*/vendor/* ./*.php ./*/*.php ./*/*/*.php",
|
||||||
"lint:php:fix": "./vendor/bin/phpcbf --standard='WordPress' --encoding=utf-8 -p --ignore=*/vendor/* ./*.php ./*/*.php ./*/*/*.php",
|
"lint:php:fix": "./vendor/bin/phpcbf --standard='WordPress' --encoding=utf-8 -p --ignore=*/vendor/* ./*.php ./*/*.php ./*/*/*.php",
|
||||||
"lint:css": "echo TODO",
|
"lint:css": "npm run lint:css",
|
||||||
"lint:js": "echo TODO",
|
"lint:css:fix": "npm run lint:css:fix",
|
||||||
|
"lint:js": "npm run lint:js",
|
||||||
|
"lint:js:fix": "npm run lint:js:fix",
|
||||||
"docs": "./vendor/bin/phpdoc -d . -t ./docs --ignore vendor/",
|
"docs": "./vendor/bin/phpdoc -d . -t ./docs --ignore vendor/",
|
||||||
"commit": "./vendor/bin/php-commitizen commit -- ./.php-commitizen.php",
|
"commit": "./vendor/bin/php-commitizen commit -- ./.php-commitizen.php",
|
||||||
"post-install-cmd": "./_tools/setup.sh"
|
"post-install-cmd": "./_tools/setup.sh"
|
||||||
|
|
Reference in a new issue