gulpjs / glob-stream

Readable streamx interface over anymatch.
MIT License
178 stars 53 forks source link

feat!: Replace glob anymatch & custom directory walk #118

Closed phated closed 1 year ago

phated commented 1 year ago

Work-in-progress to replace our usage of glob with walkdir + anymatch. I'll be swapping out the walkdir for a custom fork and I'm still fixing bugs in to-absolute-glob.

The general idea here is to make glob-stream globbing work as close to chokidar as we possibly can. Using multiple globbing libraries has produced way too many edge cases between our various APIs (I think I counted 6 opened currently).

As of PR #115, we no longer support ordered globs. We were probably the only tool that has done this and it just adds to our headaches. If users want ordered globs, they can use ordered-read-streams to combine gulp.src calls. This means that we'll only be generating a single stream from glob-stream (and thus only do 1 filesystem walk).

closes #111

phated commented 1 year ago

I had to fork to-absolute-glob and release our own version to move this along, but I think it is ready now.