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

Move back to npm #9

Closed
bunnymatic opened this issue Jul 22, 2019 · 3 comments
Closed

Move back to npm #9

bunnymatic opened this issue Jul 22, 2019 · 3 comments

Comments

@bunnymatic
Copy link

It seems like npm is gaining favor again and yarn is losing support.

Should we think about moving this app back to assume only npm and not include yarn?

Let's discuss. If we decide, I can probably put together a PR.

thoughts: @will-wow @alexwdaniel @mattbrictson @hannahhoward

@mattbrictson
Copy link
Contributor

The tide does seem to be shifting back to npm but there is one major holdout: webpacker, which is bundled by default with all new Rails apps. My understanding is that yarn is hardcoded into the build system: rails/webpacker#1746

If we anticipate that we will regularly be combining React and Rails via webpacker then it seems that using yarn would be the path of least resistance.

That said, I am not a fan of webpacker in general and would probably explore an alternative for integrating React and Rails.

Just curious, what is the main argument for npm over yarn? It's bundled with Node so one less thing to install?

mattbrictson added a commit that referenced this issue May 23, 2021
Upgrade to Yarn 1.12.1, Node 10.13 (LTS), React 16.6, etc.
@bunnymatic
Copy link
Author

It's been 2 years and we're still using yarn. I feel like the main argument is, as you said, one less install. But, it looks like webpacker is still using yarn. I think it's general install time and lock management may still be a little better. So maybe we close this until the tide really turns.

@mattbrictson
Copy link
Contributor

In the last 2 years I have grown to appreciate webpacker. Considering webpacker is a standard part of Rails, I am probably going to follow their lead on yarn.

Also some more recent developments:

I'll close this issue for now.

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

No branches or pull requests

2 participants