An example of how to use NPM scripts over Grunt/Gulp & Friends.
JavaScript CSS HTML Batchfile
Latest commit e34ed2a Sep 21, 2016 @keithamus committed on GitHub Merge pull request #37 from jez9999/master
Fix Windows build breakage

NPM Scripts Example

Firstly, you should go and read how to use NPM as a build tool. Then come back here and explore the repository. It's fairly standard, and the bare minimum to show you what a complex config would look like.


See some areas for optimising? Great! Send a PR, I'm definitely interested in seeing some great ways to optimise this.


Several scripts use the npm -s flag to silence npm's output from the subtasks, which makes the log output a little tidier (it is a shortcut for --loglevel=silent, read more on npms documentation for flags: