Skip to content

Commit

Permalink
Change diff:develop to diff-develop
Browse files Browse the repository at this point in the history
It looks like most package.json scripts
with a colon are for when there
are multiple scripts that have the same prefix.
  • Loading branch information
kienstra committed Mar 25, 2020
1 parent 89ee859 commit 5461267
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions package.json
Expand Up @@ -105,18 +105,18 @@
"check-licenses": "wp-scripts check-licenses --production",
"deploy": "grunt deploy",
"dev": "wp-scripts start",
"diff:develop": "git diff develop --diff-filter=d --name-only",
"diff-develop": "git diff develop --diff-filter=d --name-only",
"env:start": "./bin/local-env/start.sh",
"env:stop": "./bin/local-env/stop.sh",
"env:reset-site": "./bin/local-env/install-wordpress.sh --reset-site",
"lint": "npm-run-all --parallel lint:*",
"lint:css": "npm run diff:develop | grep -E 'css$' | xargs wp-scripts lint-style",
"lint:css": "npm run diff-develop | grep -E 'css$' | xargs wp-scripts lint-style",
"lint:css:fix": "npm run lint:css -- --fix",
"lint:js": "npm run diff:develop | grep -E '\\.js$' | xargs wp-scripts lint-js",
"lint:js": "npm run diff-develop | grep -E '\\.js$' | xargs wp-scripts lint-js",
"lint:js:fix": "npm run lint:js -- --fix",
"lint:php": "npm run diff:develop | grep -E '\\.php$' | xargs vendor/bin/phpcs",
"lint:php": "npm run diff-develop | grep -E '\\.php$' | xargs vendor/bin/phpcs",
"lint:plugin-bootstrap": "vendor/bin/phpcs --runtime-set testVersion 5.2- amp.php",
"lint:php:fix": "npm run diff:develop | grep -E '\\.php$' | xargs ./bin/phpcbf.sh",
"lint:php:fix": "npm run diff-develop | grep -E '\\.php$' | xargs ./bin/phpcbf.sh",
"lint:pkg-json": "wp-scripts lint-pkg-json --ignorePath .gitignore",
"start": "wp-scripts start",
"test": "npm-run-all --parallel test:*",
Expand Down

0 comments on commit 5461267

Please sign in to comment.