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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Contributing

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

Notes

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: https://docs.npmjs.com/misc/config#default-configs).

Tips and tricks

Some issues were created in order to discuss or share solutions for additional situations.

These tips and tricks will be documented inside the /tips folder inside their own .md files.

About

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

License:MIT License


Languages

Language:JavaScript 77.3%Language:HTML 15.9%Language:CSS 6.4%Language:Batchfile 0.4%