2016-02-27 16:45:44 +00:00
|
|
|
import gulp from 'gulp';
|
|
|
|
import PATHS from './helpers/src-paths';
|
|
|
|
|
2017-12-19 13:42:06 +00:00
|
|
|
const log = require('loglevel');
|
|
|
|
|
2016-02-27 16:45:44 +00:00
|
|
|
gulp.task('watch', ['build'], () => {
|
2017-11-14 13:05:01 +00:00
|
|
|
const handleError = function watch(error) {
|
2017-12-19 13:42:06 +00:00
|
|
|
log.error(error);
|
2017-04-29 14:52:12 +00:00
|
|
|
};
|
2018-05-24 06:34:18 +00:00
|
|
|
gulp.watch(PATHS.APP_ALL, ['build-app']).on('error', handleError);
|
2016-02-27 16:45:44 +00:00
|
|
|
|
2018-05-24 06:34:18 +00:00
|
|
|
gulp.watch(PATHS.CLI_SRC_JS, ['build-cli']).on('error', handleError);
|
2016-02-27 16:45:44 +00:00
|
|
|
});
|