diff --git a/devise.rb b/devise.rb index 52737da..416542c 100644 --- a/devise.rb +++ b/devise.rb @@ -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" @@ -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 diff --git a/minimal.rb b/minimal.rb index dd449a4..f9401f9 100644 --- a/minimal.rb +++ b/minimal.rb @@ -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" @@ -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