Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

In my package.json I have these two scripts:(在我的package.json我有以下两个脚本:)

"scripts": { "start-watch": "nodemon run-babel index.js", "wp-server": "webpack-dev-server", } I have to run these 2 scripts in parallel everytime I start developing in Node.js.(每当我开始在Node.js中开发时,我必须并行运行这两个脚本。) The first thing I thought of was adding a third script like this:(我想到的第一件事是添加第三个脚本,如下所示:) "dev": "npm run start-watch && npm run wp-server" ... but that will wait for start-watch to finish before running wp-server .(...但是在运行wp-server之前,这将等待start-watch完成。) How can I run these in parallel?(如何并行运行它们?) Please keep in mind that I need to see the output of these commands.(请记住,我需要查看这些命令的output 。) Also, if your solution involves a build tool, I'd rather use gulp instead of grunt because I already use it in another project.(另外,如果您的解决方案涉及构建工具,我宁愿使用gulp而不是grunt因为我已经在另一个项目中使用了它。)   ask by André Pena translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
414 views
Welcome To Ask or Share your Answers For Others

Please log in or register to answer this question.

Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...