UNPKG

autoreload-gulp

Version:

Reloads gulp process when gulpfile.js or an imported relative dependency change

17 lines (12 loc) 318 B
import gulp from 'gulp'; import autoreload from './src/autoreload-gulp'; const hello = done => { console.log('Hello!'); done(); }; gulp.task('hello', hello); gulp.task('watch', gulp.series('hello', done => { gulp.watch('src/autoreload-gulp', hello); done(); })); gulp.task('default', autoreload('watch'));