Skip to content

Instantly share code, notes, and snippets.

Created March 26, 2014 23:22
Show Gist options
  • Save anonymous/9796027 to your computer and use it in GitHub Desktop.
Save anonymous/9796027 to your computer and use it in GitHub Desktop.
/*
* grunt-cli
* http://gruntjs.com/
*
* Copyright (c) 2012 Tyler Kellen, contributors
* Licensed under the MIT license.
* https://github.com/gruntjs/grunt-init/blob/master/LICENSE-MIT
*/
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
requirejs: {
mainJS: {
options: {
baseUrl: "public/js",
paths: {
// "jquery": "jquery-1.9.1.min.js",
// "easel": "vendor/easeljs-0.6.1"
},
wrap: true,
name: "vendor/almond",
preserveLicenseComments: false,
// optimize: "uglify",
mainConfigFile: "public/js/productionGlobal.js",
// include: ["app"],
out: "public/js/Init.min.js"
}
},
jshint: {
files: ['Gruntfile.js', 'public/js/**/*.js'],
options: {
globals: {
jQuery: true,
console: false,
module: true,
document: true
}
}
},
}
});
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-requirejs');
grunt.loadNpmTasks('grunt-contrib-jshint');
// "npm test" runs these tasks
grunt.registerTask('build', ['requirejs:mainJS']);
grunt.registerTask('default', ['build']);
// Default task.
// grunt.registerTask('default', ['test']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment