Skip to content

Instantly share code, notes, and snippets.

@JunaidQadirB
Created April 17, 2015 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JunaidQadirB/036c8c43db254f0ab13e to your computer and use it in GitHub Desktop.
Save JunaidQadirB/036c8c43db254f0ab13e to your computer and use it in GitHub Desktop.
My Gruntfile which does every thing for me
/*global module:false*/
module.exports = function (grunt) {
require('jit-grunt')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - '
+ '<%= grunt.template.today("yyyy-mm-dd") %>\n'
+ '<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>'
+ '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;'
+ ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n',
});
require('time-grunt')(grunt);
require('load-grunt-config')(grunt);
grunt.registerTask('default', [
'newer:browserify',
'jshint',
'newer:concat',
'newer:uglify',
'newer:less',
'newer:cssmin',
'newer:copy'
]);
grunt.registerTask('build', ['newer:copy:build']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment