Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

run-scripts

fahad19357MIT0.4.0

Run multiple npm scripts sequentially in one go.

npm, scripts, script, command, cli, utility

readme

Build Status

Run multiple npm scripts sequentially in one go.

Install

$ npm install -g run-scripts

Usage

In your package.json file, you may already have pre-defined scripts:

{
  "scripts": {
    "command1": "echo 1",
    "command2": "echo 2",
    "command3": "echo 3"
  }
}

Now instead of:

$ npm run command1 && npm run command2 && npm run command3

You can just run:

$ run-scripts command1 command2 command3

If you wish not to install the module globally, you can do this:

$ npm install --save-dev run-scripts
$ ./node_modules/.bin/run-scripts command1 command2 command3

License

MIT © Fahad Ibnay Heylaal