|
|
|
@ -10,6 +10,9 @@ module.exports = function (grunt) {
|
|
|
|
|
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
|
|
|
|
|
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
|
|
|
|
|
' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n',
|
|
|
|
|
clean: {
|
|
|
|
|
files: ['min']
|
|
|
|
|
},
|
|
|
|
|
// Task configuration.
|
|
|
|
|
uglify: {
|
|
|
|
|
options: {
|
|
|
|
@ -65,6 +68,7 @@ module.exports = function (grunt) {
|
|
|
|
|
// These plugins provide necessary tasks.
|
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-uglify');
|
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-jshint');
|
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-clean');
|
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-csslint');
|
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-cssmin');
|
|
|
|
|
|
|
|
|
@ -76,6 +80,6 @@ module.exports = function (grunt) {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
grunt.registerTask('lint', ['jshint', 'csslint']);
|
|
|
|
|
grunt.registerTask('build', ['uglify', 'cssmin']);
|
|
|
|
|
grunt.registerTask('build', ['clean', 'uglify', 'cssmin']);
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|