Spawn Grunt tasks in new process

試著忘記壹切 提交于 2019-12-24 11:44:18

问题


I have been using grunt-execute to launch my app.js node server.

I also have a grunt watch task.

Both of these tasks don't end, they just sit there waiting. The problem is that I need to start both of them.

Can I start one in a separate process, or thread (I don't know the correct term) so they can both run at the same time?

I have tried grunt-spawn and grunt-shell-spawn but the don't actually launch a separate thing, so the second task never gets run. If I start with the watch, the server never gets executed, if I start with the server, the watch never runs.

Thanks!


回答1:


grunt-concurrent enables you to run multiple blocking tasks at once!



来源:https://stackoverflow.com/questions/25455742/spawn-grunt-tasks-in-new-process

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!