-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use bun for installation if applicable (#494)
* Use bun for installation if applicable * Namespace rake helpers so they don't conflict * Implement review suggestions
- Loading branch information
1 parent
037a307
commit 8585e6a
Showing
2 changed files
with
44 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
if (js_entrypoint_path = Rails.root.join("app/javascript/application.js")).exist? | ||
say "Import Turbo" | ||
append_to_file "app/javascript/application.js", %(import "@hotwired/turbo-rails"\n) | ||
else | ||
say "You must import @hotwired/turbo-rails in your JavaScript entrypoint file", :red | ||
end | ||
|
||
say "Install Turbo" | ||
run "bun add @hotwired/turbo-rails" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters