textnavi/static/bower_components/enjoyhint/Gruntfile.js

48 lines
1.3 KiB
JavaScript

module.exports = function(grunt){
grunt.initConfig({
pkg: grunt.file.readJSON('bower.json'),
concat:{
options: {
separator: ';'
},
dist:{
src:['src/*.js', 'lib/kineticjs/kinetic.min.js', 'lib/jquery.scrollTo/jquery.scrollTo.min.js'],
dest: '<%= pkg.name %>.js'
}
},
uglify: {
main: {
files: {
'<%= pkg.name %>.min.js': ['<%= concat.dist.dest %>']
}
}
},
jshint: {
files: ['Gruntfile.js', 'src/*.js'],
options: {
"eqnull": true,
"globals": {
jQuery: true,
console: true,
module: true
}
}
},
cssmin: {
combine: {
files: {
'enjoyhint.css': ['src/jquery.enjoyhint.css']
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.registerTask("default", ["concat", "uglify", "cssmin"])
};