2013-03-11 21:17:08 -05:00
|
|
|
module.exports = function(grunt) {
|
|
|
|
|
|
|
|
// Project configuration.
|
|
|
|
grunt.initConfig({
|
|
|
|
pkg: grunt.file.readJSON('package.json'),
|
|
|
|
uglify: {
|
|
|
|
options: {
|
|
|
|
preserveComments: 'some'
|
|
|
|
},
|
|
|
|
build: {
|
2013-03-12 09:21:08 -05:00
|
|
|
src: 'jquery.mousewheel.js',
|
|
|
|
dest: 'build/jquery.mousewheel.min.js'
|
2013-03-11 21:17:08 -05:00
|
|
|
}
|
|
|
|
},
|
|
|
|
jshint: {
|
|
|
|
all: ['*.js']
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2013-09-10 10:37:42 +03:00
|
|
|
// Load the plugin that provides the 'uglify' task.
|
2013-03-11 21:17:08 -05:00
|
|
|
grunt.loadNpmTasks('grunt-contrib-uglify');
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-jshint');
|
|
|
|
|
|
|
|
// Default task(s).
|
|
|
|
grunt.registerTask('default', ['jshint', 'uglify']);
|
|
|
|
|
|
|
|
};
|