Add common watch task

This commit is contained in:
Blade Barringer
2015-08-05 08:15:53 -05:00
parent e7705a7d77
commit 2d59bcab61

View File

@@ -54,6 +54,16 @@ gulp.task('test:common', ['test:prepare:build'], (cb) => {
pipe(runner);
});
gulp.task('test:common:clean', (cb) => {
pipe(exec(testBin("mocha test/common"), () => cb()));
});
gulp.task('test:common:watch', [
'test:common:clean'
], () => {
gulp.watch(['common/script/**', 'test/common/**'], ['test:common:clean']);
});
gulp.task('test:common:safe', ['test:prepare:build'], (cb) => {
let runner = exec(
testBin('mocha test/common'),