laf 1218d227be Add 'lib/jquery-mousewheel/' from commit 'b1c062e93b44f473022297c386d57fa7e58b6aae'
git-subtree-dir: lib/jquery-mousewheel
git-subtree-mainline: 11c222ff06875669e0a908599ee9dafb7516d0bc
git-subtree-split: b1c062e93b44f473022297c386d57fa7e58b6aae
2015-07-20 15:11:29 +01:00

48 lines
1.3 KiB
JavaScript

module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc'
},
all: ['jquery.mousewheel.js']
},
uglify: {
options: {
compress: true,
mangle: true,
preserveComments: 'some',
report: 'gzip'
},
build: {
src: 'jquery.mousewheel.js',
dest: 'jquery.mousewheel.min.js'
}
},
connect: {
server: {
options: {
hostname: '*',
keepalive: true,
middleware: function(connect, options) {
return [
connect.static(options.base),
connect.directory(options.base)
];
}
}
}
}
});
// Load the plugin that provides the 'uglify' task.
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-connect');
// Default task(s).
grunt.registerTask('default', ['jshint', 'uglify']);
};