Run multiple package.json scripts in parallel (for development)
install
$ npm install --save-dev scriptsp
package.json
...
"scripts": {
"dev-server": "nodemon ....",
"watch-test": "...some test watching script...",
"watch-js": "watchify ...",
"dev": "scriptsp dev-server watch-test watch-js"
}
...
run it
$ npm run dev
USAGE: scriptsp [--raw] <script1> <script2> ...
-r, --raw
simply pipe the output from the scripts, no fancy output stuff
i.e.
$ scriptsp start test watch-js
MIT