Last active
August 29, 2015 14:26
-
-
Save dublx/8e89477bb3a91aa5bd5c to your computer and use it in GitHub Desktop.
Revisions
-
dublx revised this gist
Aug 5, 2015 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,4 @@ //npm install --save-dev gulp gulp-mocha gulp-util var gulp = require('gulp'); var mocha = require('gulp-mocha'); var gutil = require('gulp-util'); -
dublx revised this gist
Aug 5, 2015 . No changes.There are no files selected for viewing
-
dublx created this gist
Aug 5, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ var gulp = require('gulp'); var mocha = require('gulp-mocha'); var gutil = require('gulp-util'); gulp.task('mocha', function() { return gulp.src(['test/**/*.js'], { read: false }) .pipe(mocha({ reporter: 'spec' })) .on('error', gutil.log); }); gulp.task('watch-mocha', function() { gulp.run('mocha'); gulp.watch(['lib/**', 'test/**'], ['mocha']); }); gulp.task('default',['watch-mocha'])