A tool to run multiple shell in parallel.
npm install multi-shell
import MutilShell from 'multi-shell' new MutilShell({ baseDir: '~/workspace/', tasks: [ 'cd a/ && npm run dev', 'cd b/ && npm run dev' ] }).run()
yarn global add multi-shell m-sh "cd node_project/ && npm run dev" "cd your_path/ && node serve.js" --baseDir xxx # generate a config file m-sh init # use config file m-sh -c ./tasks.conf.js # or json
{
"dev": "m-sh 'npm run watch:a' 'npm run watch:b'",
"watch:a": "...",
"watch:b": "..."
}