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

[WIP] Upgrade to Rails 6.0, add webpacker & react #72

Closed
wants to merge 9 commits into from

Conversation

eessex
Copy link
Contributor

@eessex eessex commented Mar 18, 2020

DO NOT MERGE

Pair project with @jpotts244

@eessex eessex requested a review from joeyAghion April 2, 2020 14:28
Copy link
Collaborator

@joeyAghion joeyAghion left a comment

Choose a reason for hiding this comment

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

I don't profess to understand most of this, but I assume it's mostly boilerplate for combining rails + webpack + react?

What's the motivation for adding react in particular? I'm biased, but in addition to requiring more/different engineering skills to make updates, it risks making tests less trustworthy (unless we also adopt a complex full browser harness).

@@ -2,9 +2,9 @@
version: "2"
services:
horizon:
env_file: ../.env
Copy link
Collaborator

Choose a reason for hiding this comment

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

One problem we've had in other projects is that hokusai dev will fail if this file isn't found. If you've found this useful, you might want to add a step to the set-up described in the README.

environment:
- RAILS_ENV=development
- RAILS_LOG_TO_STDOUT=true
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why remove this? (Do the defaults change in rails 6? If so the code that references it in the environment files can be removed.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We reference this in the build.yml so it shouldn't need to go into individual environments.

@eessex
Copy link
Contributor Author

eessex commented Apr 2, 2020

Perhaps this is my own bias because I'm inexperienced with haml, but I was frustrated by the difficulty of sharing styles/components/theme in the current setup. By using Palette I hope to significantly speed up the time it takes to build out views and eliminate the need to worry about theming.

@joeyAghion
Copy link
Collaborator

I don't think there's any HAML here! Just the ERB that's pretty rails-standard (and would remain whether react is in the picture or not).

If this is just about sharing partials or assets, I'd encourage you to give the existing pattern a shot. It shouldn't be too much of an obstacle, and I don't think we should switch to client-side rendering without a bigger reason.

@eessex eessex mentioned this pull request May 27, 2020
@eessex eessex closed this Jun 4, 2020
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.

3 participants