mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
28 lines
589 B
JavaScript
28 lines
589 B
JavaScript
![]() |
module.exports = function(grunt) {
|
||
|
|
||
|
// Project configuration.
|
||
|
grunt.initConfig({
|
||
|
pkg: grunt.file.readJSON('package.json'),
|
||
|
uglify: {
|
||
|
options: {
|
||
|
preserveComments: 'some'
|
||
|
},
|
||
|
build: {
|
||
|
src: '<%= pkg.name %>.js',
|
||
|
dest: 'build/<%= pkg.name %>.min.js'
|
||
|
}
|
||
|
},
|
||
|
jshint: {
|
||
|
all: ['*.js']
|
||
|
}
|
||
|
});
|
||
|
|
||
|
// Load the plugin that provides the "uglify" task.
|
||
|
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||
|
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||
|
|
||
|
// Default task(s).
|
||
|
grunt.registerTask('default', ['jshint', 'uglify']);
|
||
|
|
||
|
};
|