Adds phpcs npm command (https://github.com/woocommerce/woocommerce-admin/pull/609)
* Adds phpcs npm command * fix naming of commands
This commit is contained in:
parent
bf898e642b
commit
24ec81dddd
|
@ -17,12 +17,14 @@
|
||||||
"postbuild": "npm run -s i18n:php && npm run -s i18n:pot",
|
"postbuild": "npm run -s i18n:php && npm run -s i18n:pot",
|
||||||
"prestart": "npm run -s install-if-deps-outdated",
|
"prestart": "npm run -s install-if-deps-outdated",
|
||||||
"start": "webpack --watch",
|
"start": "webpack --watch",
|
||||||
"lint": "npm run -s install-if-deps-outdated && eslint client --ext=js,jsx",
|
|
||||||
"i18n:js": "cross-env NODE_ENV=production babel client -o /dev/null",
|
"i18n:js": "cross-env NODE_ENV=production babel client -o /dev/null",
|
||||||
"i18n:php": "pot-to-php ./languages/wc-admin.pot ./languages/wc-admin.php wc-admin",
|
"i18n:php": "pot-to-php ./languages/wc-admin.pot ./languages/wc-admin.php wc-admin",
|
||||||
"i18n:pot": "grunt makepot",
|
"i18n:pot": "grunt makepot",
|
||||||
"i18n:check": "grunt checktextdomain",
|
"i18n:check": "grunt checktextdomain",
|
||||||
"i18n": "npm run -s i18n:js && npm run -s i18n:php && npm run -s i18n:check && npm run -s i18n:pot",
|
"i18n": "npm run -s i18n:js && npm run -s i18n:php && npm run -s i18n:check && npm run -s i18n:pot",
|
||||||
|
"lint": "npm run lint:js && npm run lint:php",
|
||||||
|
"lint:js": "npm run -s install-if-deps-outdated && eslint client --ext=js,jsx",
|
||||||
|
"lint:php": "./vendor/bin/phpcs --standard=phpcs.xml.dist $(git ls-files | grep .php$)",
|
||||||
"precommit": "npm run -s install-if-no-packages && node bin/pre-commit-hook.js",
|
"precommit": "npm run -s install-if-no-packages && node bin/pre-commit-hook.js",
|
||||||
"prepush": "npm run -s install-if-no-packages && node bin/pre-push-hook.js",
|
"prepush": "npm run -s install-if-no-packages && node bin/pre-push-hook.js",
|
||||||
"pretest": "npm run -s install-if-no-packages",
|
"pretest": "npm run -s install-if-no-packages",
|
||||||
|
|
Loading…
Reference in New Issue