Created
April 17, 2015 11:00
-
-
Save JunaidQadirB/036c8c43db254f0ab13e to your computer and use it in GitHub Desktop.
My Gruntfile which does every thing for me
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) { | |
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