Reputation: 62624
A friend of mine said maven is king and npm and bower sucks because you have to run 2 commands. "npm install"... wait... then run "bower install". I heard node's package.json is able to support scripts. Is there a way for me to modify package.json so that I can do something like "npm setupmyproject" that will run both the npm install and bower install commands, then execute a grunt task? That way I can have one command to hit three birds?
Upvotes: 2
Views: 3681
Reputation: 51470
Yes, you could add a single script to perform all those operations, e.g.
{
"scripts": {
"setup": "npm install && bower install && grunt build"
}
}
Then you'll be able to run it with
npm run setup
Upvotes: 6