Skip to content

Instantly share code, notes, and snippets.

@wookiehangover
Created November 15, 2012 22:12
Show Gist options
  • Save wookiehangover/4081724 to your computer and use it in GitHub Desktop.
Save wookiehangover/4081724 to your computer and use it in GitHub Desktop.
/*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');
};
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