Skip to content

Instantly share code, notes, and snippets.

@tbranyen
Created December 23, 2012 21:12
Show Gist options
  • Select an option

  • Save tbranyen/4366182 to your computer and use it in GitHub Desktop.

Select an option

Save tbranyen/4366182 to your computer and use it in GitHub Desktop.
Example Grunt configuration in CoffeeScript.
# Grunt configuration updated to latest Grunt. That means your minimum
# version necessary to run these tasks is Grunt 0.4.
#
# Please install this locally and install `grunt-cli` globally to run.
module.exports = (grunt) ->
# Initialize the configuration.
grunt.initConfig
# Lint source, node, and test code with some sane options.
jshint:
files: ["backbone.layoutmanager.js", "node/index.js"]
# Allow certain options.
options:
browser: true
boss: true
immed: false
eqnull: true
evil: true
globals: {}
# Run QUnit tests for Lo-Dash and Underscore. They will be merged soon,
# since LayoutManager has changed its dependency back to a hard Underscore.
# The lodash.underscore still works perfectly fine.
qunit:
underscore: ["test/underscore.html"]
lodash: ["test/lodash.html"]
# Load external Grunt task plugins.
grunt.loadNpmTasks "grunt-contrib-jshint"
grunt.loadNpmTasks "grunt-contrib-qunit"
# Default task.
grunt.registerTask "default", ["jshint", "qunit"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment