node.js - Only the first task run while chaining tasks on package.json -
i have these scripts part of package.json:
"scripts": { "clean": "rm -rf lib", "watch-js": "./node_modules/.bin/babel src -d lib --experimental -w", "dev-server": "node lib/server/webpack", "server": "nodemon lib/server/server", "start": "npm run watch-js & npm run dev-server & npm run server", "build": "npm run clean && ./node_modules/.bin/babel src -d lib --experimental" }
when running 'npm run start', first task in chain running (npm run watch-js).
when running each 1 of these chained tasks simultaneously work.
also when swapping places between tasks, first task 1 run.
how can make of chained tasks under "start" run?
Comments
Post a Comment