Use jshint ignores option instead

This commit is contained in:
Dr. Kibitz 2014-01-12 01:43:42 -08:00
parent 6c6e7ca50f
commit 7ac987230f

View file

@ -103,7 +103,7 @@ module.exports = function(grunt) {
}, },
files: { files: {
srcBlob: '<%= dirs.src %>/**/*.js', srcBlob: '<%= dirs.src %>/**/*.js',
testBlob: '<%= dirs.test %>/{functional,lib/pixi,unit/pixi}/**/*.js', testBlob: '<%= dirs.test %>/**/*.js',
testConf: '<%= dirs.test %>/karma.conf.js', testConf: '<%= dirs.test %>/karma.conf.js',
build: '<%= dirs.build %>/pixi.dev.js', build: '<%= dirs.build %>/pixi.dev.js',
buildMin: '<%= dirs.build %>/pixi.js' buildMin: '<%= dirs.build %>/pixi.js'
@ -132,13 +132,16 @@ module.exports = function(grunt) {
options: { options: {
jshintrc: './.jshintrc' jshintrc: './.jshintrc'
}, },
source: srcFiles.filter(function(v) { return v.match(/(Intro|Outro|Spine|Pixi)\.js$/) === null; }).concat('Gruntfile.js'), source: {
test: { src: srcFiles.concat('Gruntfile.js'),
src: [
'<%= files.testBlob %>',
'<%= files.testConf %>'
],
options: { 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 jshintrc: undefined, //don't use jshintrc for tests
expr: true, expr: true,
undef: false, undef: false,