node-telegram-bot
Version:
Telegram Bot API Wrapper for nodejs
31 lines (25 loc) • 836 B
JavaScript
var gulp = require('gulp')
, eslint = require('gulp-eslint')
, mocha = require('gulp-mocha')
, shell = require('gulp-shell')
, ghpages = require('gh-pages')
, path = require('path');
gulp.task('test', function () {
return gulp.src('test/index.js', { read: false })
.pipe(mocha({reporter: 'spec'}));
});
gulp.task('lint', function () {
return gulp.src(['lib/*.js'])
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failOnError());
});
gulp.task('doc', shell.task([
'./node_modules/jsdoc/jsdoc.js lib/*.js -d doc -t ./node_modules/ink-docstrap/template -c jsdoc.conf.json'
]));
gulp.task('publish', ['doc'], function () {
ghpages.publish(path.join(__dirname, 'doc'), console.error);
});
gulp.task('default', ['lint'], function () {
// This will only run if the lint task is successful...
});