mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-20 22:23:07 +00:00
Watch for JSON files when linting
This commit is contained in:
parent
89ec171a3d
commit
8c56d1bbf1
@ -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' ])
|
||||
|
Loading…
Reference in New Issue
Block a user