Created
March 7, 2018 19:44
-
-
Save lmorchard/ada560887b79e058fe1692e681a5f6d1 to your computer and use it in GitHub Desktop.
Using npm-run-all --parallel in npm scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scripts": { | |
"start": "npm-run-all --parallel server watch:extension watch:lint", | |
"server": "cross-env NODE_ENV=development webpack-dev-server --config webpack.web.js", | |
"watch": "npm-run-all --parallel watch:*", | |
"watch:web": "cross-env NODE_ENV=development webpack --watch --progress --colors --config webpack.web.js", | |
"watch:extension": "cross-env NODE_ENV=development webpack --watch --progress --colors --config webpack.extension.js", | |
"watch:lint": "onchange -p -v \"src/**/*.js\" -- npm run lint", | |
"lint": "eslint --color .", | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment