|
@@ -65,7 +65,17 @@ module.exports = function(grunt) {
|
|
|
// 'output/js/index.min.js': ['js/a.js', 'js/main/b.js']
|
|
|
// }
|
|
|
// }
|
|
|
+ },
|
|
|
+
|
|
|
+ jshint:{
|
|
|
+ options:{
|
|
|
+ jshintrc:'.jshintrc'
|
|
|
+ },
|
|
|
+ build:['global/js/cloud/*.js']
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
});
|
|
@@ -73,8 +83,9 @@ module.exports = function(grunt) {
|
|
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-concat');
|
|
|
grunt.loadNpmTasks('grunt-contrib-uglify');
|
|
|
+ grunt.loadNpmTasks('grunt-contrib-jshint');
|
|
|
|
|
|
//注册grunt默认任务
|
|
|
- grunt.registerTask('default', ['concat','uglify']);
|
|
|
+ grunt.registerTask('default', ['concat','uglify','jshint']);
|
|
|
|
|
|
};
|