I have a simple default task for transfusion of modified js files:
gulp.task('default', function() {
gulp.watch(base + 'javascripts/**/*.js', function() {
gulp.run('jshint');
});
});
The problem is that the task jshintreturns the files again:
gulp.task('jshint', function() {
gulp.src([base + 'javascripts/*.js'])
.pipe(jshint())
.pipe(jshint.reporter('default'));
});
What happens is that all the files are lithiated, not just changed.
Is there a way to transfer only modified files to jshint?
andig source
share