forked from enricostara/telegram.link
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
29 lines (26 loc) · 855 Bytes
/
gulpfile.js
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
var gulp = require('gulp');
var jshint = require('gulp-jshint');
var mocha = require('gulp-mocha');
var docco = require('gulp-docco');
var del = require('del');
gulp.task('doc', function () {
del(['./doc'], function () {
gulp.src('./lib/**/*.js')
.pipe(docco(/*{'layout': 'linear'}*/))
.pipe(gulp.dest('./doc'));
});
});
gulp.task('quality', function () {
return gulp.src('./lib/**')
.pipe(jshint())
.pipe(jshint.reporter('default'));
});
gulp.task('test', function () {
return gulp.src('./test/**/*test.js')
.pipe(mocha({reporter: 'mocha-better-spec-reporter', timeout: '20s'}));
});
gulp.task('cover', function () {
return gulp.src('./test/**/*test.js')
.pipe(mocha({reporter: 'mocha-lcov-reporter', timeout: '120s'}));
});
gulp.task('default', ['quality', 'test']);