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

Add hotwire-livereload #164

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
"\n gem \"dotenv-rails\""
end

inject_into_file "Gemfile", after: "group :development do" do
"\n gem \"hotwire-livereload\""
end

# Assets
########################################
run "rm -rf app/assets/stylesheets"
Expand Down Expand Up @@ -195,6 +199,10 @@ def home
########################################
run "curl -L https://raw.githubusercontent.com/lewagon/rails-templates/master/.rubocop.yml > .rubocop.yml"

# Live refresh
########################################
run "rails livereload:install"

# Git
########################################
git :init
Expand Down
8 changes: 8 additions & 0 deletions minimal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
"\n gem \"dotenv-rails\""
end

inject_into_file "Gemfile", after: "group :development do" do
"\n gem \"hotwire-livereload\""
end

# Assets
########################################
run "rm -rf app/assets/stylesheets"
Expand Down Expand Up @@ -120,6 +124,10 @@
########################################
run "curl -L https://raw.githubusercontent.com/lewagon/rails-templates/master/.rubocop.yml > .rubocop.yml"

# Live refresh
########################################
run "rails livereload:install"

# Git
########################################
git :init
Expand Down