-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add bun support #12
Add bun support #12
Conversation
0251ed1
to
9cc1553
Compare
9cc1553
to
3c02cda
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we update the desc
method in the line 10 of install_generator.rb
file and include the reference to bun
else | ||
create_file manifest, SPROCKETS_SETUP | ||
end | ||
add_to_manifest(manifest('app/javascript'), IMPORTMAP_SETUP) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be BUN_SETUP
or we will use the same as importmap?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add a new constant
@@ -11,7 +11,9 @@ class InstallGenerator < ::Rails::Generators::Base | |||
|
|||
# Setup HTMX | |||
def setup | |||
if importmap? | |||
if bun_configured? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To follow up the method naming style, can we rename to bun?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
CI is failing but I don't think that is related to this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks
Right, seems related to this Truffleruby issue |
Related to issue #10