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

Remove bootstrap gem from gemfile #2794

Merged
merged 3 commits into from
Dec 5, 2024
Merged

Remove bootstrap gem from gemfile #2794

merged 3 commits into from
Dec 5, 2024

Conversation

jrochkind
Copy link
Contributor

@jrochkind jrochkind commented Dec 3, 2024

We now use bootstrap 5 via npm with vite, not from the rubygem. The rubygem is unneeded.

Future versions were having some dependency conflicts and setup changes that we don't need to deal with, as we don't need it!

Shuffle around dependencies required when bootstrap's indirect dependencies disappear. We require sprockets-rails directly, and for some reason it requires sassc-rails even though we aren't actually using it.

We are at this point not compiling/bundling anything with sprockets, it's all through vite, so removing all non-default sprockets config that doesn't apply anymore too.

We should be set up for an easy switch to rails-preferred propshaft in the future, as we are not using sprockets for bundling/compiling, only for what propshaft easily swaps in for. Recorded for future work at #2798

@jrochkind
Copy link
Contributor Author

After merging and updating locally, you may need to run rm -rf tmp/cache.

We now use bootstrap 5 via npm with vite, not from the rubygem. The rubygem is unneeded.

Remove duplicate sprockets/sprockets-rails in gemfile, only sprockets-rails, higher in gemfile. Having them both with sprockets first was effecting load order in a weird way that prevented startup, in the absence of sassc-rails which had been a bootstrap gem indirect dependency.
@jrochkind jrochkind force-pushed the remove_bootstrap_gem branch from 3c58a9a to 1b2b833 Compare December 3, 2024 17:12
Shuffle around dependencies required when bootstrap's indirect dependencies disappear. We require sprockets-rails directly, and for some reason it requires sassc-rails even though we aren't actually using it.

We are at this point not compiling/bundling anything with sprockets, it's all through vite, so removing all non-default sprockets config that doesn't apply anymore too.

we should be set up for an easy switch to rails-preferred propshaft in the future, as we are not using sprockets for bundling.
@jrochkind
Copy link
Contributor Author

approved by eddie verbally

@jrochkind jrochkind merged commit 5382b35 into master Dec 5, 2024
1 check passed
@jrochkind jrochkind deleted the remove_bootstrap_gem branch December 5, 2024 16:55
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.

1 participant