change the way jshint runs a bit
This commit is contained in:
parent
eb1d191a06
commit
a423216a8c
1 changed files with 4 additions and 10 deletions
14
Gruntfile.js
14
Gruntfile.js
|
@ -125,16 +125,10 @@ module.exports = function(grunt) {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
jshint: {
|
jshint: {
|
||||||
beforeconcat: srcFiles,
|
src: srcFiles.concat('Gruntfile.js'),
|
||||||
test: {
|
test: ['<%= files.testBlob %>'],
|
||||||
src: ['<%= files.testBlob %>'],
|
|
||||||
options: {
|
|
||||||
expr: true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
options: {
|
options: {
|
||||||
asi: true,
|
jshintrc: '.jshintrc'
|
||||||
smarttabs: true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
uglify: {
|
uglify: {
|
||||||
|
@ -179,7 +173,7 @@ module.exports = function(grunt) {
|
||||||
|
|
||||||
grunt.registerTask('default', ['build', 'test']);
|
grunt.registerTask('default', ['build', 'test']);
|
||||||
|
|
||||||
grunt.registerTask('build', ['jshint', 'concat', 'uglify']);
|
grunt.registerTask('build', ['jshint:src', 'concat', 'uglify']);
|
||||||
grunt.registerTask('build-debug', ['concat_sourcemap', 'uglify']);
|
grunt.registerTask('build-debug', ['concat_sourcemap', 'uglify']);
|
||||||
|
|
||||||
grunt.registerTask('test', ['concat', 'jshint:test', 'karma']);
|
grunt.registerTask('test', ['concat', 'jshint:test', 'karma']);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue