mirror of
https://github.com/konvajs/konva.git
synced 2026-03-03 16:58:33 +08:00
added jshint to the build
This commit is contained in:
@@ -129,6 +129,9 @@ module.exports = function(grunt) {
|
||||
},
|
||||
clean: {
|
||||
build: ['dist/*']
|
||||
},
|
||||
jshint: {
|
||||
all: ['src/**/*.js']
|
||||
}
|
||||
};
|
||||
|
||||
@@ -148,10 +151,11 @@ module.exports = function(grunt) {
|
||||
grunt.loadNpmTasks('grunt-replace');
|
||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||
grunt.loadNpmTasks('grunt-contrib-clean');
|
||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||
|
||||
// Tasks
|
||||
grunt.registerTask('dev', ['clean', 'concat:source', 'replace:dev']);
|
||||
grunt.registerTask('full', ['clean', 'concat:source', 'replace:dev', 'uglify', 'replace:prod']);
|
||||
grunt.registerTask('test', ['concat:test']);
|
||||
|
||||
grunt.registerTask('hint', ['jshint']);
|
||||
};
|
||||
Reference in New Issue
Block a user