add jshint to grunt tasks
This commit is contained in:
parent
b8bd181970
commit
e52d16defa
|
@ -4,6 +4,7 @@ module.exports = function (grunt) {
|
|||
grunt.loadNpmTasks('grunt-contrib-copy');
|
||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||
grunt.loadNpmTasks('grunt-doctoc');
|
||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||
|
||||
grunt.initConfig({
|
||||
sass: {
|
||||
|
@ -55,8 +56,12 @@ module.exports = function (grunt) {
|
|||
readme: {
|
||||
target: "./README.md"
|
||||
}
|
||||
},
|
||||
|
||||
jshint: {
|
||||
all: ['src/*.js']
|
||||
}
|
||||
});
|
||||
|
||||
grunt.registerTask('default', ['sass', 'cssmin', 'copy', 'uglify', 'doctoc']);
|
||||
grunt.registerTask('default', ['sass', 'cssmin', 'copy', 'uglify', 'doctoc', 'jshint']);
|
||||
};
|
||||
|
|
|
@ -24,8 +24,9 @@
|
|||
"grunt": "^0.4.5",
|
||||
"grunt-contrib-copy": "^0.8.2",
|
||||
"grunt-contrib-cssmin": "^0.14.0",
|
||||
"grunt-contrib-jshint": "^1.0.0",
|
||||
"grunt-contrib-uglify": "^0.10.1",
|
||||
"grunt-sass": "^1.1.0",
|
||||
"grunt-doctoc": "^0.1.1"
|
||||
"grunt-doctoc": "^0.1.1",
|
||||
"grunt-sass": "^1.1.0"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue