Copy and paste this code into your terminal
The contents of this script as show. Any updates will be reflected in the below code and the snippet.
def puts_red(heredoc) puts set_color heredoc, :red end if !defined?(Webpacker) puts_red 'Webpacker was not installed. Adding it now...' gem 'webpacker' rails_command 'webpacker:install' end gem 'stimulus_reflex' run 'bundle install' rails_command 'stimulus_reflex:install'