Update (2019): Consider solutions like npm-run-all which will accomplish the things below but in a cross-platform manner.
You can run multiple NPM script tasks in parallel. This is great for tasks like running build watchers. Just use the bash construct &
to put each command in the background, then finally add wait
so they can be terminated with ^C
. The final syntax would be:
In practice, this looks like so: