Skip to content

Commit

Permalink
Cleaned up grunt file
Browse files Browse the repository at this point in the history
  • Loading branch information
verlok committed Nov 18, 2016
1 parent 3ff577c commit e0137ab
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ module.exports = function(grunt) {
}
},
jshint: {
files: ['Gruntfile.js', 'src/**/*.js', 'test/**/*.js'],
files: ['Gruntfile.js', 'src/lazyload.js'],

options: {
// options here to override JSHint defaults
reporterOutput: "",
globals: {
jQuery: true,
console: true,
Expand All @@ -26,14 +28,14 @@ module.exports = function(grunt) {
},
watch: {
files: ['<%= jshint.files %>'],
tasks: ['jshint', 'concat', 'uglify']
tasks: ['jshint', 'uglify']
}
});

grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');

grunt.registerTask('default', ['jshint', 'uglify', 'watch']);

};
};

0 comments on commit e0137ab

Please sign in to comment.