split jshint task for test & lib

This commit is contained in:
Rob Halff 2014-10-17 01:16:27 +02:00 committed by Miroslav Bajtoš
parent 12d2776824
commit 34f1aa354b
1 changed files with 13 additions and 6 deletions

View File

@ -30,8 +30,11 @@ module.exports = function(grunt) {
gruntfile: { gruntfile: {
src: 'Gruntfile.js' src: 'Gruntfile.js'
}, },
lib_test: { lib: {
src: ['lib/**/*.js', 'test/**/*.js'] src: ['lib/**/*.js']
},
test: {
src: ['test/**/*.js']
} }
}, },
watch: { watch: {
@ -39,9 +42,13 @@ module.exports = function(grunt) {
files: '<%= jshint.gruntfile.src %>', files: '<%= jshint.gruntfile.src %>',
tasks: ['jshint:gruntfile'] tasks: ['jshint:gruntfile']
}, },
lib_test: { lib: {
files: '<%= jshint.lib_test.src %>', files: ['<%= jshint.lib.src %>'],
tasks: ['jshint:lib_test'] tasks: ['jshint:lib']
},
test: {
files: ['<%= jshint.test.src %>'],
tasks: ['jshint:test']
} }
}, },
browserify: { browserify: {
@ -104,7 +111,7 @@ module.exports = function(grunt) {
// list of files to exclude // list of files to exclude
exclude: [ exclude: [
], ],
// test results reporter to use // test results reporter to use