npm-run-series

1.0.1 • Public • Published

npm-run-series

npm travis standard

Run a series of npm scripts sequentially.

Install

npm install npm-run-series

Usage

In your package.json, inside the scripts object, you can use the npm run series command to run multiple npm scripts in order. For example:

"scripts"{
  "one": "echo 'first one'",
  "two": "echo 'second one'",
  "three": "echo 'third one'",
  "everything": "npm-run-series one two three"
}

Now if you use npm run everything it will run one then two then three. So the output will be:

first one
second one
third one

You can also use npm-run-series from the Node API:

var npmSeries = require('npm-run-series')

npmSeries(['test', 'build'], function (err) {
  // runs `npm run test` and `npm run build`
  // err as soon as any process exits with error code
})

License

ISC

Readme

Keywords

Package Sidebar

Install

npm i npm-run-series

Weekly Downloads

51

Version

1.0.1

License

ISC

Unpacked Size

7.68 kB

Total Files

11

Last publish

Collaborators

  • paulcpederson