Created
November 20, 2012 21:11
-
-
Save alejandroiglesias/4121155 to your computer and use it in GitHub Desktop.
Gruntfile
This file contains 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({ | |
meta: { | |
version: '1.0.0', | |
banner: '/*! GRUPO EXPANSION MEDIAKIT - v<%= meta.version %> - ' + | |
'<%= grunt.template.today("yyyy-mm-dd") %> */\n' //+ | |
// '* http://PROJECT_WEBSITE/\n' + | |
// '* Copyright (c) <%= grunt.template.today("yyyy") %> ' + | |
// 'YOUR_NAME; Licensed MIT */' | |
}, | |
lint: { | |
files: ['grunt.js', 'assets/js/frontend/*.js'] | |
}, | |
// qunit: { | |
// files: ['test/**/*.html'] | |
// }, | |
concat: { | |
frontend: { | |
src: ['<banner:meta.banner>', 'assets/frontend/*.js'], | |
dest: 'assets/js/frontend/main.min.js' | |
}, | |
backend: { | |
src: ['<banner:meta.banner>', 'assets/backend/*.js'], | |
dest: 'assets/js/backend/main.min.js' | |
} | |
}, | |
min: { | |
frontend: { | |
src: ['<banner:meta.banner>', '<config:concat.frontend.dest>'], | |
dest: 'assets/js/frontend/main.min.js' | |
}, | |
backend: { | |
src: ['<banner:meta.banner>', '<config:concat.backend.dest>'], | |
dest: 'assets/js/backend/main.min.js' | |
} | |
}, | |
watch: { | |
files: '<config:lint.files>', | |
tasks: 'lint concat min' | |
}, | |
jshint: { | |
options: { | |
curly: true, | |
eqeqeq: true, | |
immed: true, | |
latedef: true, | |
newcap: true, | |
noarg: true, | |
sub: true, | |
undef: true, | |
boss: true, | |
eqnull: true, | |
browser: true | |
}, | |
globals: { | |
jQuery: true | |
} | |
}, | |
uglify: {} | |
}); | |
// Default task. | |
grunt.registerTask('default', 'concat min'); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment