mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-24 07:46:39 +00:00
Fix Coffeelint indentation warnings
This commit is contained in:
parent
83dfd2c10b
commit
a491627354
@ -5,25 +5,25 @@ coffeelint = require('gulp-coffeelint')
|
|||||||
mochaNotifierReporter = require('mocha-notifier-reporter')
|
mochaNotifierReporter = require('mocha-notifier-reporter')
|
||||||
|
|
||||||
OPTIONS =
|
OPTIONS =
|
||||||
config:
|
config:
|
||||||
coffeelint: path.join(__dirname, 'coffeelint.json')
|
coffeelint: path.join(__dirname, 'coffeelint.json')
|
||||||
files:
|
files:
|
||||||
coffee: [ 'lib/**/*.coffee', 'gulpfile.coffee' ]
|
coffee: [ 'lib/**/*.coffee', 'gulpfile.coffee' ]
|
||||||
tests: 'lib/**/*.spec.coffee'
|
tests: 'lib/**/*.spec.coffee'
|
||||||
|
|
||||||
gulp.task 'test', ->
|
gulp.task 'test', ->
|
||||||
gulp.src(OPTIONS.files.tests, read: false)
|
gulp.src(OPTIONS.files.tests, read: false)
|
||||||
.pipe(mocha({
|
.pipe(mocha({
|
||||||
reporter: mochaNotifierReporter.decorate('list')
|
reporter: mochaNotifierReporter.decorate('list')
|
||||||
}))
|
}))
|
||||||
|
|
||||||
gulp.task 'lint', ->
|
gulp.task 'lint', ->
|
||||||
gulp.src(OPTIONS.files.coffee)
|
gulp.src(OPTIONS.files.coffee)
|
||||||
.pipe(coffeelint({
|
.pipe(coffeelint({
|
||||||
optFile: OPTIONS.config.coffeelint
|
optFile: OPTIONS.config.coffeelint
|
||||||
}))
|
}))
|
||||||
.pipe(coffeelint.reporter())
|
.pipe(coffeelint.reporter())
|
||||||
|
|
||||||
gulp.task 'watch', [ 'test', 'lint' ], ->
|
gulp.task 'watch', [ 'test', 'lint' ], ->
|
||||||
gulp.watch(OPTIONS.files.tests, [ 'test' ])
|
gulp.watch(OPTIONS.files.tests, [ 'test' ])
|
||||||
gulp.watch(OPTIONS.files.coffee, [ 'lint' ])
|
gulp.watch(OPTIONS.files.coffee, [ 'lint' ])
|
||||||
|
Loading…
Reference in New Issue
Block a user