Nativefier/gulp/watch.js

14 lines
358 B
JavaScript
Raw Normal View History

2016-02-27 17:45:44 +01:00
import gulp from 'gulp';
import PATHS from './helpers/src-paths';
const log = require('loglevel');
2016-02-27 17:45:44 +01:00
gulp.task('watch', ['build'], () => {
const handleError = function watch(error) {
log.error(error);
};
2018-05-24 08:34:18 +02:00
gulp.watch(PATHS.APP_ALL, ['build-app']).on('error', handleError);
2016-02-27 17:45:44 +01:00
2018-05-24 08:34:18 +02:00
gulp.watch(PATHS.CLI_SRC_JS, ['build-cli']).on('error', handleError);
2016-02-27 17:45:44 +01:00
});