moar jshint fixes for tests
This commit is contained in:
parent
5d516cfb81
commit
6dafb2524d
6 changed files with 51 additions and 20 deletions
16
Gruntfile.js
16
Gruntfile.js
|
@ -97,7 +97,7 @@ module.exports = function(grunt) {
|
|||
},
|
||||
files: {
|
||||
srcBlob: '<%= dirs.src %>/**/*.js',
|
||||
testBlob: '<%= dirs.test %>/{functional,lib/pixi,unit}/**/*.js',
|
||||
testBlob: '<%= dirs.test %>/{functional,lib/pixi,unit/pixi}/**/*.js',
|
||||
build: '<%= dirs.build %>/pixi.dev.js',
|
||||
buildMin: '<%= dirs.build %>/pixi.js'
|
||||
},
|
||||
|
@ -122,10 +122,18 @@ module.exports = function(grunt) {
|
|||
}
|
||||
},
|
||||
jshint: {
|
||||
src: srcFiles.filter(function(v) { return v.match(/(Intro|Outro|Spine|Pixi)\.js$/) === null; }).concat('Gruntfile.js'),
|
||||
test: ['<%= files.testBlob %>'],
|
||||
options: {
|
||||
jshintrc: '.jshintrc'
|
||||
},
|
||||
source: srcFiles.filter(function(v) { return v.match(/(Intro|Outro|Spine|Pixi)\.js$/) === null; }).concat('Gruntfile.js'),
|
||||
test: {
|
||||
src: ['<%= files.testBlob %>'],
|
||||
options: {
|
||||
jshintrc: undefined, //don't use jshintrc for tests
|
||||
expr: true,
|
||||
undef: false,
|
||||
camelcase: false
|
||||
}
|
||||
}
|
||||
},
|
||||
uglify: {
|
||||
|
@ -170,7 +178,7 @@ module.exports = function(grunt) {
|
|||
|
||||
grunt.registerTask('default', ['build', 'test']);
|
||||
|
||||
grunt.registerTask('build', ['jshint:src', 'concat', 'uglify']);
|
||||
grunt.registerTask('build', ['jshint:source', 'concat', 'uglify']);
|
||||
grunt.registerTask('build-debug', ['concat_sourcemap', 'uglify']);
|
||||
|
||||
grunt.registerTask('test', ['concat', 'jshint:test', 'karma']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue