aboutsummaryrefslogtreecommitdiff
path: root/tools/tasks/watch.serve.ts
blob: 2bb18f1d4df3ee94d940cfc5013d213b99fc4059 (plain)
1
2
3
4
5
6
7
8
9
10
11
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))
    );
  };
};