javascript - Can't get gulp watch to trigger build function on file change within supposedly watched folder -
i've tried couple of ways gulp watch folder of files in order rebuild on file change , stop me having manually. i'm sure in grunt worked adding watch task array of build tasks , finish initial build leaving watch open listen changes during development session. i've tried this, taken this example gulp readme - i've removed batch call want build trigger on every event. gulp.task('watch', function () { watch('src/**/*.js', function (events, done) { gulp.start('build', done); }); }); the call gulp watch works , appears watching, error displayed make change file in folder. my build function works - i've been not happily triggering manually far! /users/tonileigh/node_modules/gulp/node_modules/orchestrator/index.js:89 throw new error('pass strings or arrays of strings'); ^ error: pass strings or arrays of strings @ gulp.orchestrator.start (/users/tonileigh/no...