slushjs / gulp-install

Automatically install npm and bower packages if package.json or bower.json is found in the gulp file stream respectively
MIT License
106 stars 46 forks source link

added support for the --production flag #8

Closed futurechan closed 10 years ago

futurechan commented 10 years ago

I added a parameter to install() to support an opts object. If production is set to a truthy value on the opts object, the --production flag is appended to the command-line args.

ksmithut commented 10 years ago

It would also be nice to add a silent option, but that could pretty easily put in after this is merged in

futurechan commented 10 years ago

@ksmithut what's a silent option?

ksmithut commented 10 years ago

http://blog.izs.me/post/1675072029/10-cool-things-you-probably-didnt-realize-npm-could-do

You can use --loglevel silent for npm to suppress all of the logging (except for the stuff at the very end, still trying to figure that out)

futurechan commented 10 years ago

@joakimbeng I was wondering if you had a chance to look at this PR.

joakimbeng commented 10 years ago

@futurechan sorry for the slow response, summer time you know :)

Looks good, thank you!