wiledal / gulp-include

Enables functionality similar to that of snockets / sprockets or other file insertion compilation tools.
157 stars 68 forks source link

Added function to create an array of the files that will be involved in an include #34

Closed bytesnz closed 5 years ago

bytesnz commented 9 years ago

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.

wiledal commented 9 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.

bytesnz commented 9 years ago

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.

KenEucker commented 5 years ago

I think this may be out of scope for this plugin, so I'm going to close this PR for now.