First check code with jshint upon running npm/grunt test

This commit is contained in:
Radko Dinev 2014-08-30 15:22:48 +03:00
parent 1d48553498
commit 3d706781a1
2 changed files with 3 additions and 2 deletions

View File

@ -43,5 +43,6 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-nodeunit'); grunt.loadNpmTasks('grunt-contrib-nodeunit');
grunt.loadNpmTasks('grunt-contrib-internal'); grunt.loadNpmTasks('grunt-contrib-internal');
grunt.registerTask('default', ['jshint', 'nodeunit', 'build-contrib']); grunt.registerTask('test', ['jshint', 'nodeunit']);
grunt.registerTask('default', ['test', 'build-contrib']);
}; };

View File

@ -24,7 +24,7 @@
"node": ">= 0.8.0" "node": ">= 0.8.0"
}, },
"scripts": { "scripts": {
"test": "grunt nodeunit -v" "test": "grunt test -v"
}, },
"dependencies": { "dependencies": {
"gaze": "~0.5.1", "gaze": "~0.5.1",