Created
November 15, 2012 22:12
-
-
Save wookiehangover/4081724 to your computer and use it in GitHub Desktop.
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
/*global module:false*/ | |
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: '<json:package.json>', | |
lint: { | |
files: [ | |
'grunt.js', | |
'app/*.js' | |
] | |
}, | |
concat: { | |
"dist/debug/require.js": [ | |
"js/vendor/almond.js", | |
"dist/debug/require.js" | |
] | |
}, | |
min: { | |
"dist/release/require.js": [ | |
"dist/debug/require.js" | |
] | |
}, | |
requirejs: { | |
compile: { | |
options: { | |
mainConfigFile: "app/config.js", | |
out: "dist/debug/require.js", | |
name: "config", | |
wrap: false | |
} | |
} | |
}, | |
jshint: { | |
options: { | |
curly: true, | |
eqeqeq: true, | |
immed: false, | |
latedef: false, | |
newcap: true, | |
noarg: true, | |
sub: true, | |
undef: true, | |
boss: true, | |
eqnull: true, | |
browser: true, | |
node: true, | |
jQuery: true, | |
expr: true | |
}, | |
globals: { | |
Modernizr: true, | |
define: true, | |
$: true | |
} | |
} | |
}); | |
// Default task. | |
grunt.registerTask('default', 'requirejs concat min'); | |
grunt.loadNpmTasks('grunt-contrib-requirejs'); | |
}; |
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
npm install --save-dev grunt | |
npm install --save-dev grunt-contrib-requirejs | |
# https://github.com/jrburke/almond |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment