Skip to content

Instantly share code, notes, and snippets.

@lmorchard
Created March 7, 2018 19:44
Show Gist options
  • Save lmorchard/ada560887b79e058fe1692e681a5f6d1 to your computer and use it in GitHub Desktop.
Save lmorchard/ada560887b79e058fe1692e681a5f6d1 to your computer and use it in GitHub Desktop.
Using npm-run-all --parallel in npm scripts
"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