Skip to content
A collection of common grunt tasks.
JavaScript CoffeeScript
Find file
Pull request Compare This branch is 188 commits behind gruntjs:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
docs
tasks
test
.gitignore
.npmignore
LICENSE-MIT
README.md
grunt.js
package.json

README.md

grunt-contrib

A collection of general use grunt tasks (currently in alpha).

Getting Started

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 grunt.js gruntfile:

grunt.loadNpmTasks('grunt-contrib');

Included Tasks

clean

Clear files and folders.

coffee

Compile CoffeeScript files into JavaScript.

compress

Compress files and folders using gzip or zip.

handlebars

Compile handlebars templates to JST file.

jade

Compile Jade templates to HTML.

jst

Compile underscore templates to JST file.

less

Compile LESS files to CSS.

mincss

Minify CSS files.

requirejs

Optimize RequireJS projects using r.js.

stylus

Compile Stylus files into CSS.

Included Helpers

options

Unified options retrieval

Contributing

Configuration

In order to ensure a consistent configuration style, task submissions should retreive their optional parameters with the included grunt helper, options.

Testing

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.

Running Tests

npm install grunt -g
npm install
npm test

Release History

  • (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.

License

Copyright (c) 2012 "Cowboy" Ben Alman & contributors. Licensed under the MIT license.

Something went wrong with that request. Please try again.