Closed bytesnz closed 5 years ago
Hey,
This seems a bit redundant, as gulp already supports globs.
gulp.watch(["js/**/*.js"], ["scripts"])
will watch all .js
files in the <root>/js
-folder for example.
There's no need to list every file.
Hello,
Yes, correct. Though you may have files that are in those folders that aren't included in that task, you may have scripts included in different directories or you may have different files that are all over the show in which case a glob may not work.
I think this may be out of scope for this plugin, so I'm going to close this PR for now.
Hello,
Very helpful basic way of including files in other files - exactly what I needed. To enable me to be lazy and not create a list of all the source files for a gulp watch command, I have added and files function to the include function to generate an array containing the files that will be involved in an include. I have added tests and a blurb to the README as well.
Hope you like it/find it useful.