Closed MartinMuzatko closed 7 years ago
Hey there!
I was looking for a way to recursively filter folders based on a name and then merge it back in with gulp-rename. Unfortunately, it seems like I'm terrible with globs or I miss some details.
gulp-rename
This is my setup:
gulp.task('gen', () => { return gulp.src('src/**/*') .pipe(filter(['*', '!**/_wkc'])) .pipe(gulp.dest('./dist')); })
This looks easy, but I never get the right setup.
['*','!**/_wkc']
['**','!src/_wkc']
['**','!**/_wkc']
['**','!_wkc']
I'm fiddling around with this for hours now.
Thanks a lot in advance
Support questions are better asked on Stack Overflow: http://stackoverflow.com/questions/tagged/gulp Paste in the link to the question here so others can follow ;)
Hey there!
I was looking for a way to recursively filter folders based on a name and then merge it back in with
gulp-rename
. Unfortunately, it seems like I'm terrible with globs or I miss some details.This is my setup:
This looks easy, but I never get the right setup.
['*','!**/_wkc']
only copies over the first level of folders - containing no files - but the _wkc folder is gone.['**','!src/_wkc']
copies over everything including files but also _wkc['**','!**/_wkc']
copies over everything (also files) but _wkc is now missing from the second folder of the second level of folders. (wat!?)['**','!_wkc']
same as['**','!src/_wkc']
I'm fiddling around with this for hours now.
Thanks a lot in advance