From 3ce43d030c96dd5312f0b2c7c4fb08499e75e46e Mon Sep 17 00:00:00 2001 From: Kyle Shockey Date: Mon, 8 Jan 2018 17:11:02 -0600 Subject: [PATCH] Use colon:divider in npm scripts --- package.json | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index ac1b8727..9dbbe622 100644 --- a/package.json +++ b/package.json @@ -14,30 +14,29 @@ ], "license": "Apache-2.0", "scripts": { - "build": "npm run build-core && npm run build-bundle && npm run build-standalone", - "build-bundle": "webpack --config webpack-dist-bundle.config.js --colors", - "build-core": "webpack --config webpack-dist.config.js --colors", - "build-standalone": "webpack --config webpack-dist-standalone.config.js --colors", + "build": "npm run build:core && npm run build:bundle && npm run build:standalone", + "build:bundle": "webpack --config webpack-dist-bundle.config.js --colors", + "build:core": "webpack --config webpack-dist.config.js --colors", + "build:standalone": "webpack --config webpack-dist-standalone.config.js --colors", "predev": "npm install", "dev": "npm-run-all --parallel hot-server open-localhost", "watch": "webpack --config webpack-watch.config.js --watch --progress", "open-localhost": "node -e 'require(\"open\")(\"http://localhost:3200\")'", "hot-server": "webpack-dev-server --host 0.0.0.0 --config webpack-hot-dev-server.config.js --inline --hot --progress --content-base dev-helpers/", - "deps-license": "license-checker --production --csv --out $npm_package_config_deps_check_dir/licenses.csv && license-checker --development --csv --out $npm_package_config_deps_check_dir/licenses-dev.csv", - "deps-size": "webpack -p --config webpack.check.js --json | webpack-bundle-size-analyzer >| $npm_package_config_deps_check_dir/sizes.txt", - "deps-check": "npm run deps-license && npm run deps-size", + "deps:license": "license-checker --production --csv --out $npm_package_config_deps_check_dir/licenses.csv && license-checker --development --csv --out $npm_package_config_deps_check_dir/licenses-dev.csv", + "deps:size": "webpack -p --config webpack.check.js --json | webpack-bundle-size-analyzer >| $npm_package_config_deps_check_dir/sizes.txt", + "deps:check": "npm run deps:license && npm run deps:size", "lint": "eslint --cache --ext '.js,.jsx' src test", - "lint-errors": "eslint --cache --quiet --ext '.js,.jsx' src test", - "lint-fix": "eslint --cache --ext '.js,.jsx' src test --fix", - "test": "npm run lint-errors && npm run just-test-in-node", - "test-in-node": "npm run lint-errors && npm run just-test-in-node", - "just-test": "karma start --config karma.conf.js", - "just-test-in-node": "mocha --recursive --compilers js:babel-core/register test/core test/components test/bugs test/swagger-ui-dist-package test/xss", - "just-check-coverage": "nyc npm run just-test-in-node", - "test-e2e": "sleep 3 && nightwatch test/e2e/scenarios/ --config test/e2e/nightwatch.json", - "e2e-initial-render": "nightwatch test/e2e/scenarios/ --config test/e2e/nightwatch.json --group initial-render", - "mock-api": "json-server --watch test/e2e/db.json --port 3204", - "e2e": "npm-run-all --parallel -r hot-server mock-api test-e2e" + "lint:errors": "eslint --cache --quiet --ext '.js,.jsx' src test", + "lint:fix": "eslint --cache --ext '.js,.jsx' src test --fix", + "test": "npm run lint:errors && npm run test:nodejs", + "test:browser": "karma start --config karma.conf.js", + "test:coverage": "nyc npm run test:nodejs", + "test:e2e": "npm-run-all --parallel -r hot-server test:e2e:mock-api test:e2e:all", + "test:e2e:all": "sleep 3 && nightwatch test/e2e/scenarios/ --config test/e2e/nightwatch.json", + "test:e2e:initial-render": "nightwatch test/e2e/scenarios/ --config test/e2e/nightwatch.json --group initial-render", + "test:e2e:mock-api": "json-server --watch test/e2e/db.json --port 3204", + "test:nodejs": "mocha --recursive --compilers js:babel-core/register test/core test/components test/bugs test/swagger-ui-dist-package test/xss" }, "dependencies": { "@braintree/sanitize-url": "^2.0.2",