2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2025-01-25 16:18:27 +00:00
nativefier/gulp/watch.js

19 lines
449 B
JavaScript
Raw Normal View History

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