Detalhes do pacote

run-scripts

fahad19394MIT0.4.0

Run multiple npm scripts sequentially in one go.

npm, scripts, script, command

readme (leia-me)

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