aboutsummaryrefslogtreecommitdiff
path: root/tools/tasks/watch.serve.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tools/tasks/watch.serve.ts')
-rw-r--r--tools/tasks/watch.serve.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/tasks/watch.serve.ts b/tools/tasks/watch.serve.ts
new file mode 100644
index 0000000..2bb18f1
--- /dev/null
+++ b/tools/tasks/watch.serve.ts
@@ -0,0 +1,12 @@
+import * as runSequence from 'run-sequence';
+import {join} from 'path';
+import {APP_SRC} from '../config';
+import {notifyLiveReload} from '../utils';
+
+export = function watchServe(gulp, plugins) {
+ return function () {
+ plugins.watch(join(APP_SRC, '**'), e =>
+ runSequence('build.dev', () => notifyLiveReload(e))
+ );
+ };
+};