-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Rename javascript folder to frontend #1833
Conversation
@gauravtiwari Wouldn't it be better for now to call the folder It solves the discussion about |
See also this tutorial: https://evilmartians.com/chronicles/evil-front-part-1
Or in this one: https://shakacode.gitbooks.io/react-on-rails/content/docs/tutorial.html
And this one: https://devato.com/new-rails-5-2-app-with-webpacker-and-react/
|
We use the |
@jakeNiemiec New users probably won't start by customizing As far as I can tell this change will only influence new users, it shouldn't break existing webpacker configurations, because updating the package won't change the With Rails 6 webpacker will probably replace the sprockets assets pipeline. It would be good to help people move away from |
In my opinion, I think that for a Single Page Application, is a little weird naming it |
Problem is @Zyphrax that DHH is not of the same opinion rails/rails#33079 (comment) :
|
Here's an idea that I think could satisfy both types of users:
The result would be that regular |
@ameft If not Rails 6, then probably Rails 7. Sprockets isn't dead yet, but when the Rails community starts moving over to Webpack there would be little use to maintain two asset pipelines. The pull request / discussion is about the (default) name of the But lets not make it a big deal, it was just a suggestion 🙂 |
@Zyphrax the name right now is |
@jakeNiemiec @gauravtiwari @dhh Given the prevalence of Webpack for all frontend (aka client) assets, should we revisit the default? |
Nothing has changed on the fundamentals for me. We're happily using Webpack for JavaScript and the asset pipeline for styles and static assets in a brand new app. I find it to be a great combination. Happy to entertain a patch that makes it easier to rename this for people who'd like to do that, if there are any blockers in that department, but no appetite for changing the defaults at the moment. |
With all the styles, images and other resources it might be better to call the folder
frontend
instead ofjavascript
. This makes it easier to understand what the purpose of the folder is.I did not rename the
lib/install/javascript
in the repository to prevent unnecessary conflicts.Edit:
I have now also renamed the
lib/install/javascript
andtest/test_app/app/javascript
folders and a few more references toapp/javascript
that I missed. This should fix the failing tests.