UNPKG

autoreload-gulp

Version:

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

17 lines (12 loc) 338 B
var gulp = require('gulp'); var autoreload = require('./src/autoreload-gulp'); var hello = function (done) { console.log('Hello!'); done(); }; gulp.task('hello', hello); gulp.task('watch', gulp.series('hello', function (done) { gulp.watch('src/autoreload-gulp', hello); done(); })); gulp.task('default', autoreload('watch'));