UNPKG

lml-main

Version:

This is now a mono repository published into many standalone packages.

24 lines (18 loc) 514 B
var gulp = require('gulp') var files = ['index.js', 'test/*.js', 'gulpfile.js'] gulp.task('lint', function () { var eslint = require('gulp-eslint') return gulp.src(files) .pipe(eslint()) .pipe(eslint.format()) .pipe(eslint.failAfterError()) }) gulp.task('test', function () { var mocha = require('gulp-mocha') return gulp.src('test/*.js', {read: false}) .pipe(mocha()) }) gulp.task('default', ['lint', 'test']) gulp.task('watch', function () { gulp.watch(files, ['lint', 'test']) })