forked from danielgtaylor/node-desktop-uploader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGulpfile.coffee
31 lines (26 loc) · 803 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
coffee = require 'gulp-coffee'
coveralls = require 'gulp-coveralls'
gulp = require 'gulp'
istanbul = require 'gulp-istanbul'
lint = require 'gulp-coffeelint'
mocha = require 'gulp-mocha'
gulp.task 'compile', ->
gulp.src 'src/**/*.coffee'
.pipe lint()
.pipe lint.reporter()
.pipe coffee()
.pipe gulp.dest('lib')
gulp.task 'watch', ->
gulp.watch 'src/**/*.coffee', ['compile']
gulp.task 'test', ['compile'], ->
gulp.src 'lib/**/*.js'
.pipe istanbul()
.on 'finish', ->
gulp.src 'tests/**/*.coffee', read: false
.pipe mocha(reporter: 'spec')
.pipe istanbul.writeReports
reporters: ['text-summary', 'html', 'lcovonly']
gulp.task 'coveralls', ->
gulp.src 'coverage/lcov.info'
.pipe coveralls()
gulp.task 'default', ['compile', 'watch']