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