1
0
mirror of https://github.com/jiahaog/Nativefier synced 2024-07-02 08:30:49 +02:00
Nativefier/gulp/watch.js
2016-02-28 00:45:44 +08:00

17 lines
437 B
JavaScript

import gulp from 'gulp';
import PATHS from './helpers/src-paths';
gulp.task('watch', ['build'], () => {
var handleError = function(error) {
console.error(error);
};
gulp.watch(PATHS.APP_ALL, ['build-app'])
.on('error', handleError);
gulp.watch(PATHS.CLI_SRC_JS, ['build-cli'])
.on('error', handleError);
gulp.watch(PATHS.TEST_SRC_JS, ['build-tests'])
.on('error', handleError);
});