Fix Coffeelint indentation warnings

This commit is contained in:
Juan Cruz Viotti 2014-10-31 09:50:50 -04:00
parent 83dfd2c10b
commit a491627354

View File

@ -5,25 +5,25 @@ coffeelint = require('gulp-coffeelint')
mochaNotifierReporter = require('mocha-notifier-reporter')
OPTIONS =
config:
coffeelint: path.join(__dirname, 'coffeelint.json')
files:
coffee: [ 'lib/**/*.coffee', 'gulpfile.coffee' ]
tests: 'lib/**/*.spec.coffee'
config:
coffeelint: path.join(__dirname, 'coffeelint.json')
files:
coffee: [ 'lib/**/*.coffee', 'gulpfile.coffee' ]
tests: 'lib/**/*.spec.coffee'
gulp.task 'test', ->
gulp.src(OPTIONS.files.tests, read: false)
.pipe(mocha({
reporter: mochaNotifierReporter.decorate('list')
}))
gulp.src(OPTIONS.files.tests, read: false)
.pipe(mocha({
reporter: mochaNotifierReporter.decorate('list')
}))
gulp.task 'lint', ->
gulp.src(OPTIONS.files.coffee)
.pipe(coffeelint({
optFile: OPTIONS.config.coffeelint
}))
.pipe(coffeelint.reporter())
gulp.src(OPTIONS.files.coffee)
.pipe(coffeelint({
optFile: OPTIONS.config.coffeelint
}))
.pipe(coffeelint.reporter())
gulp.task 'watch', [ 'test', 'lint' ], ->
gulp.watch(OPTIONS.files.tests, [ 'test' ])
gulp.watch(OPTIONS.files.coffee, [ 'lint' ])
gulp.watch(OPTIONS.files.tests, [ 'test' ])
gulp.watch(OPTIONS.files.coffee, [ 'lint' ])