mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
Add common watch task
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user