码迷,mamicode.com
首页 > 其他好文 > 详细

[NPM] Run npm scripts in series

时间:2017-02-03 23:00:30      阅读:222      评论:0      收藏:0      [点我收藏+]

标签:ati   color   run   script   amp   scripts   nbsp   rip   use   

After creating several npm script it becomes useful to run multiple scripts back-to-back in series. This is a nice feature because you can enforce that one script needs to complete before starting another one.

 

  "scripts": {
    "start": "node index.js",
    "test": "npm run eslint && npm run stylelint && mocha spec/ --require babel-register",
    "eslint": "eslint --cache --fix ./",
    "stylelint": "stylelint ‘**/*.scss‘ --syntax scss",
    "stylelint:fix": "stylefmt -R src/"
  },

 

[NPM] Run npm scripts in series

标签:ati   color   run   script   amp   scripts   nbsp   rip   use   

原文地址:http://www.cnblogs.com/Answer1215/p/6363519.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!