mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-19 05:37:51 +00:00
Watch for JSON files when linting
This commit is contained in:
parent
89ec171a3d
commit
8c56d1bbf1
@ -10,6 +10,7 @@ OPTIONS =
|
|||||||
files:
|
files:
|
||||||
coffee: [ 'lib/**/*.coffee', 'gulpfile.coffee' ]
|
coffee: [ 'lib/**/*.coffee', 'gulpfile.coffee' ]
|
||||||
tests: 'lib/**/*.spec.coffee'
|
tests: 'lib/**/*.spec.coffee'
|
||||||
|
json: 'lib/**/*.json'
|
||||||
|
|
||||||
gulp.task 'test', ->
|
gulp.task 'test', ->
|
||||||
gulp.src(OPTIONS.files.tests, read: false)
|
gulp.src(OPTIONS.files.tests, read: false)
|
||||||
@ -25,4 +26,4 @@ gulp.task 'lint', ->
|
|||||||
.pipe(coffeelint.reporter())
|
.pipe(coffeelint.reporter())
|
||||||
|
|
||||||
gulp.task 'watch', [ 'test', 'lint' ], ->
|
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