-
-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor prepare read #229
Refactor prepare read #229
Conversation
Thanks. I'm having a really hard time thinking that vinyl-prepare is worth the effort because it feels like a very leaky abstraction (especially when I try to implement sourcemaps into it). I'm currently letting my subconscious solve it 😛 |
I don't know -- the original use case for it still seems valid, "dry run dest" if memory serves. And it unclutters vinyl-fs slightly. Anyway, if your subconscious decides against the split please do let me know... I've ended up conflating a bunch of issues here, and might try separating out the other bits (function-values for options, rename followSymlinks, symmetrical directory layout). EDIT Also validation of dates/timestamps. So that's #139, #191, #205, in addition to finishing #193. |
That use case is still valid but the sourcemaps logic adds filesystem operations. Maybe it makes better sense to keep |
I understand about keeping file ops out of vinyl-prepare. Just out of curiosity, what kind of trouble are you running into with sourcemaps? For what it's worth I changed essentially nothing around sourcemaps because I knew you were working on https://github.com/gulpjs/vinyl-sourcemap. |
Cool, I did not know I could resolve merge conflicts on a PR in the github webinterface! |
@erikkemperman oops, I just made everything real awkward with this merge because I rebased |
Actually, can you split the non- |
I'm actually just going to cherrypick them into master because I drank a lot of coffee today and am very impatient 😛 |
f89818e
to
d15c883
Compare
I believe I have this fully cherry-picked into the proper branches (wasn't as easy as I thought it would be) and passing CI. |
As always, many thanks @erikkemperman |
Thanks for moving this along! |
@phated
Ref erikkemperman/vinyl-prepare@3558db3#commitcomment-21860733
This is the counterpart to gulpjs/vinyl-prepare#11.
I've rebased your latest version of the prepare-stream branch onto latest master and then bolted my work on top of that. Took some doing, at first I didn't notice you had considerably altered your "split prepareWrite" commit.
It won't merge automatically, but the idea is my branch could be a drop-in replacement for prepare-stream.