run-scripts
v0.4.0
Published
Run multiple npm scripts sequentially in one go.
Downloads
554
Readme
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