I'm trying to use Gulp to watch for my source changes then compile, lint and reload my app.
From my understanding gulp.watch does not allow filtering of resources, so everything is reloaded if I updated a spec/test file. For example:
jsSrc = ['!./app/**/*spec.js', './app/**/*.js']
gulp.task('watch', function() {
gulp.watch(jsSrc, ['scripts', 'jsLint', 'reload']);
});
From my understanding gulp-watch allows filtering of resources, however how do I trigger another task.
gulp.task('watch', function() {
gulp.src(jsSrc)
.pipe(require('gulp-watch')())
// how do I call tasks? ['scripts', 'jsLint', 'reload']
});