2013-03-11 21:17:08 -05:00
|
|
|
module.exports = function(grunt) {
|
|
|
|
|
2013-09-10 10:48:18 +03:00
|
|
|
// Project configuration.
|
|
|
|
grunt.initConfig({
|
2013-10-18 18:48:54 +03:00
|
|
|
jshint: {
|
|
|
|
options: {
|
|
|
|
jshintrc: '.jshintrc'
|
|
|
|
},
|
|
|
|
all: ['*.js']
|
|
|
|
},
|
2013-09-10 10:48:18 +03:00
|
|
|
uglify: {
|
|
|
|
options: {
|
2013-10-18 18:48:54 +03:00
|
|
|
compress: true,
|
|
|
|
mangle: true,
|
|
|
|
preserveComments: 'some',
|
|
|
|
report: 'gzip'
|
2013-09-10 10:48:18 +03:00
|
|
|
},
|
|
|
|
build: {
|
|
|
|
src: 'jquery.mousewheel.js',
|
2014-04-09 13:33:33 -04:00
|
|
|
dest: 'jquery.mousewheel.min.js'
|
2013-09-10 10:48:18 +03:00
|
|
|
}
|
2013-11-14 09:22:06 -05:00
|
|
|
},
|
|
|
|
connect: {
|
2013-11-15 20:14:32 +02:00
|
|
|
server: {
|
|
|
|
options: {
|
|
|
|
hostname: '*',
|
|
|
|
keepalive: true,
|
|
|
|
middleware: function(connect, options) {
|
|
|
|
return [
|
|
|
|
connect.static(options.base),
|
|
|
|
connect.directory(options.base)
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|
2013-11-14 09:22:06 -05:00
|
|
|
}
|
2013-09-10 10:48:18 +03:00
|
|
|
}
|
|
|
|
});
|
2013-03-11 21:17:08 -05:00
|
|
|
|
2013-09-10 10:48:18 +03:00
|
|
|
// Load the plugin that provides the 'uglify' task.
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-jshint');
|
2013-10-18 18:48:54 +03:00
|
|
|
grunt.loadNpmTasks('grunt-contrib-uglify');
|
2013-11-14 09:22:06 -05:00
|
|
|
grunt.loadNpmTasks('grunt-contrib-connect');
|
2013-03-11 21:17:08 -05:00
|
|
|
|
2013-09-10 10:48:18 +03:00
|
|
|
// Default task(s).
|
|
|
|
grunt.registerTask('default', ['jshint', 'uglify']);
|
2013-03-11 21:17:08 -05:00
|
|
|
|
|
|
|
};
|