forked from sweetpi/i2c-lcd
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.coffee
40 lines (37 loc) · 998 Bytes
/
gulpfile.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
gulp = require('gulp')
watch = require('gulp-watch')
plumber = require('gulp-plumber')
coffee = require('gulp-coffee')
#mocha = require('gulp-mocha')
coffeelint = require('gulp-coffeelint')
gulp.task('default', ->
watch(glob: 'src/**/*.coffee', verbose: true)
.pipe(plumber()) # This will keeps pipes working after error event
.pipe(coffeelint({
no_unnecessary_fat_arrows: {
level: 'ignore'
},
max_line_length: {
value: 120
}
}))
.pipe(coffeelint.reporter())
.pipe(coffee(bare: yes))
.pipe(gulp.dest('lib'))
)
# gulp.task 'test', ->
# gulp.src('test/*.coffee', read: false)
# .pipe(mocha(
# reporter: 'spec'
# ))
# gulp.task 'coverage', ->
# gulp.src('test/*.coffee', read: false)
# .pipe(coffee(bare: yes))
# .pipe(cover.instrument({
# pattern: ['**/test/*'],
# debugDirectory: 'debug'
# }))
# .pipe(mocha({}))
# .pipe(cover.report({
# outFile: 'coverage.html'
# }));