Skip to content
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

Closed

Conversation

erikkemperman
Copy link
Member

@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.

@phated
Copy link
Member

phated commented Apr 25, 2017

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 😛

@erikkemperman
Copy link
Member Author

erikkemperman commented Apr 25, 2017

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.

@phated
Copy link
Member

phated commented Apr 25, 2017

That use case is still valid but the sourcemaps logic adds filesystem operations. Maybe it makes better sense to keep vinyl-prepare without sourcemaps and integrate them in vinyl-fs directly.

@erikkemperman
Copy link
Member Author

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.

@erikkemperman
Copy link
Member Author

Cool, I did not know I could resolve merge conflicts on a PR in the github webinterface!

@phated
Copy link
Member

phated commented Apr 26, 2017

@erikkemperman oops, I just made everything real awkward with this merge because I rebased prepare-stream branch with master. Can you rebase again?

@phated
Copy link
Member

phated commented Apr 26, 2017

Actually, can you split the non-prepare-write changes into separate PRs? I'd like to get those landed separately (automated changelog)

@phated
Copy link
Member

phated commented Apr 26, 2017

I'm actually just going to cherrypick them into master because I drank a lot of coffee today and am very impatient 😛

@phated phated changed the base branch from prepare-stream to master April 26, 2017 21:32
@phated phated changed the base branch from master to prepare-stream April 26, 2017 21:32
@phated phated force-pushed the prepare-stream branch 3 times, most recently from f89818e to d15c883 Compare April 26, 2017 23:31
@phated
Copy link
Member

phated commented Apr 26, 2017

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.

@phated phated closed this Apr 26, 2017
@phated
Copy link
Member

phated commented Apr 26, 2017

As always, many thanks @erikkemperman

@erikkemperman
Copy link
Member Author

Thanks for moving this along!

@erikkemperman erikkemperman deleted the refactor-prepare-read branch May 5, 2017 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants