split jshint task for test & lib
This commit is contained in:
parent
12d2776824
commit
34f1aa354b
19
Gruntfile.js
19
Gruntfile.js
|
@ -30,8 +30,11 @@ module.exports = function(grunt) {
|
|||
gruntfile: {
|
||||
src: 'Gruntfile.js'
|
||||
},
|
||||
lib_test: {
|
||||
src: ['lib/**/*.js', 'test/**/*.js']
|
||||
lib: {
|
||||
src: ['lib/**/*.js']
|
||||
},
|
||||
test: {
|
||||
src: ['test/**/*.js']
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
@ -39,9 +42,13 @@ module.exports = function(grunt) {
|
|||
files: '<%= jshint.gruntfile.src %>',
|
||||
tasks: ['jshint:gruntfile']
|
||||
},
|
||||
lib_test: {
|
||||
files: '<%= jshint.lib_test.src %>',
|
||||
tasks: ['jshint:lib_test']
|
||||
lib: {
|
||||
files: ['<%= jshint.lib.src %>'],
|
||||
tasks: ['jshint:lib']
|
||||
},
|
||||
test: {
|
||||
files: ['<%= jshint.test.src %>'],
|
||||
tasks: ['jshint:test']
|
||||
}
|
||||
},
|
||||
browserify: {
|
||||
|
@ -104,7 +111,7 @@ module.exports = function(grunt) {
|
|||
|
||||
// list of files to exclude
|
||||
exclude: [
|
||||
|
||||
|
||||
],
|
||||
|
||||
// test results reporter to use
|
||||
|
|
Loading…
Reference in New Issue