Open
Description
Thanks for the work. I have tried several project seeds, and so-far like this.
Here is a tweak to prevent file errors when clean is not finished before the rest of dev. I've only been using gulp for a day, but adapted from similar issues.
// -----------------------------------------------------------
// Dev task
gulp.task('dev', ['clean'], function() {
// - we need clean to finish completely before the rest of dev starts
gulp.start(['views', 'styles', 'lint', 'browserify']);
});
// -----------------------------------------------------------
// Clean task
gulp.task('clean', function() {
// use return so that gulp can know when clean is done.
return gulp.src('./dist/*/', { read: false }) // much faster
.pipe(rimraf({force: true}));
});
Metadata
Metadata
Assignees
Labels
No labels