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: {
|
||||
beforeconcat: srcFiles,
|
||||
test: {
|
||||
src: ['<%= files.testBlob %>'],
|
||||
options: {
|
||||
expr: true
|
||||
}
|
||||
},
|
||||
src: srcFiles.concat('Gruntfile.js'),
|
||||
test: ['<%= files.testBlob %>'],
|
||||
options: {
|
||||
asi: true,
|
||||
smarttabs: true
|
||||
jshintrc: '.jshintrc'
|
||||
}
|
||||
},
|
||||
uglify: {
|
||||
|
@ -179,7 +173,7 @@ module.exports = function(grunt) {
|
|||
|
||||
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('test', ['concat', 'jshint:test', 'karma']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue