Add karma.conf.js to jshint

This commit is contained in:
Dr. Kibitz 2014-01-12 01:34:07 -08:00
parent 180eae99a7
commit 6c6e7ca50f

View file

@ -104,6 +104,7 @@ module.exports = function(grunt) {
files: {
srcBlob: '<%= dirs.src %>/**/*.js',
testBlob: '<%= dirs.test %>/{functional,lib/pixi,unit/pixi}/**/*.js',
testConf: '<%= dirs.test %>/karma.conf.js',
build: '<%= dirs.build %>/pixi.dev.js',
buildMin: '<%= dirs.build %>/pixi.js'
},
@ -133,7 +134,10 @@ module.exports = function(grunt) {
},
source: srcFiles.filter(function(v) { return v.match(/(Intro|Outro|Spine|Pixi)\.js$/) === null; }).concat('Gruntfile.js'),
test: {
src: ['<%= files.testBlob %>'],
src: [
'<%= files.testBlob %>',
'<%= files.testConf %>'
],
options: {
jshintrc: undefined, //don't use jshintrc for tests
expr: true,
@ -184,7 +188,7 @@ module.exports = function(grunt) {
},
karma: {
unit: {
configFile: 'test/karma.conf.js',
configFile: '<%= files.testConf %>',
// browsers: ['Chrome'],
singleRun: true
}