I am starting multiple npm tasks in parallel (using &
, not just in sequence &&
). Thus in package.json:
"start": "npm run watch-blog & npm run watch-data & npm run server",
And those sub-tasks are useful stuff to me like:
"watch-blog" : "watchy -w _posts/**/* -- touch _pages/blog.md",
Question: How can I all shut down all three tasks together?
I noticed CTRL–C is only killing the last. (my watch-blog survives and keeps „touching“)
Closing the terminal window doesn't help. Only killall node
does the job, but that's killing more than I would like to…