enricostara/telegram-tl-node

View on GitHub
gulpfile.js

Summary

Maintainability
A
1 hr
Test Coverage
var gulp = require('gulp');
var jshint = require('gulp-jshint');
var mocha = require('gulp-mocha');

gulp.task('quality', function () {
    return gulp.src('./lib/**/*.js')
        .pipe(jshint())
        .pipe(jshint.reporter('default'));
});

gulp.task('test', function () {
    return gulp.src('./test/**/*.js')
        .pipe(mocha({reporter: 'mocha-better-spec-reporter', timeout: '10s'}));
});

gulp.task('cover', function () {
    return gulp.src('./test/**/*.js')
        .pipe(mocha({reporter: 'mocha-lcov-reporter', timeout: '20s'}));
});

gulp.task('default', ['quality', 'test']);