A collection of general use grunt tasks (currently in alpha).
Install this grunt plugin next to your project's grunt.js gruntfile with:
npm install grunt-contrib
Then add this line to your project's
Clear files and folders.
Compress files and folders using gzip or zip.
Compile handlebars templates to JST file.
Compile Jade templates to HTML.
Compile underscore templates to JST file.
Compile LESS files to CSS.
Minify CSS files.
Optimize RequireJS projects using r.js.
Compile Stylus files into CSS.
Unified options retrieval
In order to ensure a consistent configuration style, task submissions should retreive their optional parameters with the included grunt helper, options.
Tests must be included with your submission. New tasks can be added to the config in
test/grunt.js, please see existing tests for guidance. Currently, testing with grunt is a bit cumbersome--this will be addressed in a future release.
npm install grunt -g npm install npm test
(Until v1.0.0, this will only be updated when major or breaking changes are made)*
2012/06/12 - v0.0.7 - Add RequireJS task.
2012/06/03 - v0.0.5 - Cleanup release with zip task addition.
2012/05/01 - v0.0.1 - Alpha release.
Copyright (c) 2012 "Cowboy" Ben Alman & contributors. Licensed under the MIT license.