http://substack.net/task_automation_with_npm_run
sequential subtasks
If you have two tasks that you want to run sequentially, you can simply run npm for each task separated by & &:
"build": "npm run build-js && npm run build-css"
parallel subtasks
If you want to run several tasks in parallel, just use them as a separator!
"watch": "npm run watch-js & npm run watch-css"
source
share