Skip to content

npm script

Tuong-Nguyen edited this page Apr 6, 2017 · 1 revision

Task scripts

  1. Define task in scripts block of package.json

"scripts": {
"prestart": "node buildScripts/startMessage.js",
"start": "node buildScripts/srcServer.js",
"security-check": "nsp check"
},

Pre_Post Hook pretask start posttask

  1. Run a task: npm run start

Run parallel

npm-run-all --parallel security-check open:src

Other references

Grunt Gulp

Clone this wiki locally