Skip to content

Commit f5c5d28

Browse files
committed
run-s all the things
* Break up `build:production` * Refine `start` script to call `build` but using `--watch` * Since the base command is the same, this makes it easier to maintain. * Use run-s for `test` script for consistency.
1 parent 51b7d5d commit f5c5d28

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
"private": true,
33
"scripts": {
44
"build": "cross-env NODE_ENV=development webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
5-
"build:production": "npm run -s clean && cross-env NODE_ENV=production webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
6-
"start": "cross-env NODE_ENV=development webpack --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
5+
"build:production": "run-s clean build:production:*",
6+
"build:production:mix": "cross-env NODE_ENV=production webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
7+
"start": "run-s \"build --watch\"",
78
"hot": "cross-env NODE_ENV=development webpack-dev-server --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
8-
"clean": "npm run -s clean:dist",
9+
"clean": "run-p clean:*",
910
"clean:dist": "rimraf dist",
1011
"lint": "run-s -c lint:*",
1112
"lint:scripts": "eslint resources/assets/scripts",
1213
"lint:styles": "stylelint \"resources/assets/**/*.{vue,css,sass,scss,sss,less}\"",
13-
"test": "npm run -s lint"
14+
"test": "run-s -c lint"
1415
},
1516
"devDependencies": {
1617
"browser-sync": "^2.26.5",

0 commit comments

Comments
 (0)