[NPM] Run npm scripts in series
Posted Answer1215
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[NPM] Run npm scripts in series相关的知识,希望对你有一定的参考价值。
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的主要内容,如果未能解决你的问题,请参考以下文章
[NPM] Use a shorthand syntax for running multiple npm scripts with npm-run-all