Watch for JSON files when linting

This commit is contained in:
Juan Cruz Viotti 2014-11-19 08:45:40 -04:00
parent 89ec171a3d
commit 8c56d1bbf1

View File

@ -10,6 +10,7 @@ OPTIONS =
files:
coffee: [ 'lib/**/*.coffee', 'gulpfile.coffee' ]
tests: 'lib/**/*.spec.coffee'
json: 'lib/**/*.json'
gulp.task 'test', ->
gulp.src(OPTIONS.files.tests, read: false)
@ -25,4 +26,4 @@ gulp.task 'lint', ->
.pipe(coffeelint.reporter())
gulp.task 'watch', [ 'test', 'lint' ], ->
gulp.watch(OPTIONS.files.coffee, [ 'test', 'lint' ])
gulp.watch([ OPTIONS.files.coffee, OPTIONS.files.json ], [ 'test', 'lint' ])