actum / gulp-dev-stack

Actum dev stack based on gulp
MIT License
11 stars 7 forks source link

Watch #5

Closed janpanschab closed 9 years ago

janpanschab commented 9 years ago

Try gulp-watch or este-watch. Default gulp.watch does not trigger new or deleted files.

omladek commented 9 years ago

In gulpfile.babel.js you have to escape the expression for subfolders like this (tested on yachcharter):

gulp.watch(${lessPath}/\**\/\*.less, ['less']); gulp.watch(${srcPath}/\**\/\*.swig, ['swig']);

vbulant commented 9 years ago

So, the problem is that gulp.watch has problems with globs starting with ./. And gulp-watch as well, apparently: https://github.com/floatdrop/gulp-watch/issues/1

So I added function that sanitizes globs before passing them to watch. I think it is better than manually removing ./ from path contants.