* Adds phpcs npm command

* fix naming of commands
This commit is contained in:
Jonathan Belcher 2018-10-22 12:34:28 -04:00 committed by GitHub
parent bf898e642b
commit 24ec81dddd
1 changed files with 3 additions and 1 deletions

View File

@ -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",