Examples of various ways to use Grunt using best-practices
-
Getting started
A fully commented Gruntfile visually documenting how to get started. -
Basic Example - Sass Compile
Basic example of a Grunt task compiling Sass into CSS. -
Intermediate Example - Sass Watch and Compile
Intermediate example of a Grunt task that watches Sass files and compiles them into CSS.
Make sure you've installed grunt before trying out any of the examples.
- generator-webapp Gruntfile
A massive Gruntfile with a lot of tips and tricks
- Grunt docs
You should read this before starting
Quickly open the docs of a grunt task by running for example npm docs grunt-shell.
Sindre Sorhus, Saul Maddox, You?
Happy to accept additional examples :)
Take care to follow the existing code style and include a useful readme and code comments.
To the extent possible under law, Sindre Sorhus has waived all copyright and related or neighboring rights to this work.