mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 08:03:30 +02:00
Gruntfile.js: Fix JSHint issues.
This commit is contained in:
+24
-24
@@ -1,30 +1,30 @@
|
|||||||
module.exports = function(grunt) {
|
module.exports = function(grunt) {
|
||||||
|
|
||||||
// Project configuration.
|
// Project configuration.
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
pkg: grunt.file.readJSON('package.json'),
|
pkg: grunt.file.readJSON('package.json'),
|
||||||
uglify: {
|
uglify: {
|
||||||
options: {
|
options: {
|
||||||
preserveComments: 'some'
|
preserveComments: 'some'
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
src: 'jquery.mousewheel.js',
|
src: 'jquery.mousewheel.js',
|
||||||
dest: 'build/jquery.mousewheel.min.js'
|
dest: 'build/jquery.mousewheel.min.js'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
jshint: {
|
jshint: {
|
||||||
options: {
|
options: {
|
||||||
jshintrc: '.jshintrc'
|
jshintrc: '.jshintrc'
|
||||||
},
|
},
|
||||||
all: ['*.js']
|
all: ['*.js']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Load the plugin that provides the 'uglify' task.
|
// Load the plugin that provides the 'uglify' task.
|
||||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||||
|
|
||||||
// Default task(s).
|
// Default task(s).
|
||||||
grunt.registerTask('default', ['jshint', 'uglify']);
|
grunt.registerTask('default', ['jshint', 'uglify']);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user