librenms-librenms/Gruntfile.js

48 lines
1.3 KiB
JavaScript
Raw Normal View History

2013-03-11 21:17:08 -05:00
module.exports = function(grunt) {
2013-09-10 10:48:18 +03:00
// Project configuration.
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc'
},
all: ['*.js']
},
2013-09-10 10:48:18 +03:00
uglify: {
options: {
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');
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
};