Created
December 23, 2012 21:12
-
-
Save tbranyen/4366182 to your computer and use it in GitHub Desktop.
Example Grunt configuration in CoffeeScript.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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