Use jshint ignores option instead
This commit is contained in:
parent
6c6e7ca50f
commit
7ac987230f
1 changed files with 10 additions and 7 deletions
17
Gruntfile.js
17
Gruntfile.js
|
@ -103,7 +103,7 @@ module.exports = function(grunt) {
|
|||
},
|
||||
files: {
|
||||
srcBlob: '<%= dirs.src %>/**/*.js',
|
||||
testBlob: '<%= dirs.test %>/{functional,lib/pixi,unit/pixi}/**/*.js',
|
||||
testBlob: '<%= dirs.test %>/**/*.js',
|
||||
testConf: '<%= dirs.test %>/karma.conf.js',
|
||||
build: '<%= dirs.build %>/pixi.dev.js',
|
||||
buildMin: '<%= dirs.build %>/pixi.js'
|
||||
|
@ -132,13 +132,16 @@ module.exports = function(grunt) {
|
|||
options: {
|
||||
jshintrc: './.jshintrc'
|
||||
},
|
||||
source: srcFiles.filter(function(v) { return v.match(/(Intro|Outro|Spine|Pixi)\.js$/) === null; }).concat('Gruntfile.js'),
|
||||
test: {
|
||||
src: [
|
||||
'<%= files.testBlob %>',
|
||||
'<%= files.testConf %>'
|
||||
],
|
||||
source: {
|
||||
src: srcFiles.concat('Gruntfile.js'),
|
||||
options: {
|
||||
ignores: '<%= dirs.src %>/**/{Intro,Outro,Spine,Pixi}.js'
|
||||
}
|
||||
},
|
||||
test: {
|
||||
src: ['<%= files.testBlob %>'],
|
||||
options: {
|
||||
ignores: '<%= dirs.test %>/lib/resemble.js',
|
||||
jshintrc: undefined, //don't use jshintrc for tests
|
||||
expr: true,
|
||||
undef: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue