keithamus / npm-scripts-example

An example of how to use NPM scripts over Grunt/Gulp & Friends. http://blog.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool
MIT License
841 stars 101 forks source link

Why -s after each task? #15

Closed twalker closed 9 years ago

twalker commented 9 years ago

Each occurrence of npm run is passed a -s argument. What purpose does this serve?

Thank you

keithamus commented 9 years ago

It silences npms output from the subtasks, which makes the log output a little tidier (it is a shortcut for --loglevel=silent. It is not necessary. Remove it to see the difference!

twalker commented 9 years ago

Great, I see. Thank you for enlightening me with npm scripts.