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

Change asset pipeline default to Propshaft in Rails 8 #51799

Merged
merged 11 commits into from
May 26, 2024
Merged

Conversation

dhh
Copy link
Member

@dhh dhh commented May 12, 2024

Sprockets has served us well, but it's time to hand over the torch to Propshaft in Rails 8.

@dhh dhh added this to the 8.0.0 milestone May 12, 2024
@rails-bot rails-bot bot added the railties label May 12, 2024
@rafaelfranca
Copy link
Member

Lots of tests broken, but once we fix them, we can merge this. main is already Rails 8

@@ -75,7 +75,7 @@ def self.add_shared_options_for(name)

class_option :skip_asset_pipeline, type: :boolean, aliases: "-A", default: nil

class_option :asset_pipeline, type: :string, aliases: "-a", default: "sprockets",
class_option :asset_pipeline, type: :string, aliases: "-a", default: "propshaft",
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be done in a follow-up PR, but are there documentation changes that we'd like to do as well?

@dhh
Copy link
Member Author

dhh commented May 15, 2024

There's a fair amount of work in switching all the tests that assume sprockets over. If anyone is interested in helping with this transition, I'd love some assistance, while I tune up Propshaft with the other stuff we're missing before a release.

@fedesapuppo
Copy link

I'd very much like to help with the transition. I'm not an expert, just an enthusiast. If you think it's something I could help with, I gladly offer my assistance 🚀

Copy link

@ItaloCobains ItaloCobains left a comment

Choose a reason for hiding this comment

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

Sounds good.

Co-authored-by: Lázaro Nixon <lazaronixon@hotmail.com>
@dhh
Copy link
Member Author

dhh commented May 26, 2024

Will need to follow up with documentation changes to match the new default. But will do that in a separate PR.

@dhh dhh merged commit 1b3fc3c into main May 26, 2024
5 checks passed
@dhh dhh deleted the propshaft-by-default branch May 26, 2024 03:48
theodorton added a commit to Skalar/shoulda-matchers that referenced this pull request May 27, 2024
Propshaft is default from Rails 8. See rails/rails#51799
theodorton added a commit to Skalar/shoulda-matchers that referenced this pull request May 27, 2024
Propshaft is default from Rails 8. See rails/rails#51799
theodorton added a commit to Skalar/shoulda-matchers that referenced this pull request May 27, 2024
Propshaft is default from Rails 8. See rails/rails#51799
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants