📜  npm 并行运行 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:05.601000             🧑  作者: Mango

代码示例1
// The tool is written in Node.js, but you can use it to run any commands.
npm install -g concurrently

// or if you are using it from npm scripts:
npm install concurrently --save

// Remember to surround separate commands with quotes:
concurrently "yarn run script1"   "yarn run script2"   "yarn run script3"

// In package.json, escape quotes:
"start": "concurrently \"command1 arg\" \"command2 arg\""