Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Use underlying wrangler-js #75

Merged
merged 16 commits into from
May 21, 2019
Merged

Use underlying wrangler-js #75

merged 16 commits into from
May 21, 2019

Conversation

xtuc
Copy link
Member

@xtuc xtuc commented Apr 29, 2019

refs #69

I have a private demo: https://github.com/xtuc/wrangler-tmp, please let me know if you want access.

I would appreciate some early feedback.

@steveklabnik
Copy link
Contributor

It's not entirely clear to me what this PR actually does.

That being said, it looks like this adds a dependency on a node environment. One of the advantages of Rust for CLI stuff is that you don't need to have a bunch of stuff installed to use it; regardless of other details, this feels like a regression to me.

Copy link
Contributor

@ashleygwilliams ashleygwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @xtuc ! thanks for this- i see what this PR is doing but i think it's something that we will want to do slightly differently. i'd like the vast majority of the logic to exist in wrangler- which is to say i think the logic that currently exists in wrangler-js needs to be rewritten in rust. i would like wrangler to be checking for the presence of node, npm, webpack, ensuring their versions are correct. wrangler should be orchestrating, not wrangler-js. this way we can version check, type check, etc.

to get started on that, i'd like to see the steps and dependencies that wrangler-js performs/needs, be listed out in the issue. from there we can discuss moving the functionality to wrangler!

@xtuc
Copy link
Member Author

xtuc commented Apr 30, 2019

@steveklabnik you can find more information at https://github.com/cloudflare/wrangler/wiki/Draft-Webpack-design.

I agree that having a single binary would be simpler, but given that we will depend JavaScript code, I'm not sure what's the best solution.

One thing I have in mind is that I could be opt-in, for Rust based project invoke wasm-pack and if you install xxx run Webpack based project. What I don't link about that is that the wasm-pack workflow could be run using Webpack too, which adds some features and is actually an implementation details from the user's percpective.

@xtuc
Copy link
Member Author

xtuc commented Apr 30, 2019

I think it would be easier to have two branches, there are too many moving parts to be in master.

@xtuc xtuc changed the base branch from master to refactor-webpack May 21, 2019 10:10
@xtuc xtuc marked this pull request as ready for review May 21, 2019 10:10
@xtuc xtuc requested a review from ashleygwilliams May 21, 2019 10:54
@xtuc xtuc merged commit 97376c0 into refactor-webpack May 21, 2019
@xtuc xtuc deleted the feat-wranglerjs branch May 21, 2019 12:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants