Closed terracatta closed 1 year ago
Can confirm that this works.
This must be released to allow rails new --js bun
to work without --skip-hotwire
in Rails 7.1.0
See https://github.com/hotwired/turbo-rails/pull/494#issuecomment-1737185656 for details.
This PR is part of an overall effort to allow Rails developers to completely use the Bun JS runtime and bundler without needing to use Node.JS and Yarn.
This gem is automatically invoked when a new rails projects is created and before this PR would always use Yarn. After this PR this gem will detect which JS bundler is being used and use the correct one so that Yarn doesn't accidentally slip into your Rails project.
I have opened a companion PR to the turbo-rails repo as well.
Example run of
javascript:install:bun
andbin/rails stimulus:install