1 | gulp = require 'gulp'
|
2 | watch = require 'gulp-watch'
|
3 | coffee = require 'gulp-coffee'
|
4 | mocha = require 'gulp-mocha'
|
5 |
|
6 | gulp.task 'test', ->
|
7 | gulp.src(['test/*.coffee'], read: false)
|
8 | .pipe mocha reporter: 'min'
|
9 |
|
10 | gulp.task 'watch', ->
|
11 | gulp.watch ['**/*.coffee'], ['test']
|
12 | .on 'error', -> @emit 'end'
|