Reputation: 19358
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!
Upvotes: 1
Views: 775
Reputation: 19358
grunt-concurrent enables you to run multiple blocking tasks at once!
Upvotes: 2