class SvelteOnRails::Generators::InstallGenerator
def hello_world
def hello_world return unless options[:hello_world] || options[:full] puts '-' * 80 puts ' ▶︎▶︎▶︎︎ INSTALLING Hello World component' puts '-' * 80 hw_i = SvelteOnRails::Installer::HelloWorld utils_i = SvelteOnRails::Installer::Utils utils_i.add_route(" get \"svelte_on_rails_hello_world/turbo_streams_channel\"", app_root: Rails.root) utils_i.add_route(" get \"svelte_on_rails_hello_world/turbo_stream_action\"", app_root: Rails.root) npm_i = SvelteOnRails::Installer::Npm npm_i.install_or_update_package('axios') @hello_world_path = hw_i.install_hello_world(['rails_vite_hello_world'], app_root: nil, force: true, silent: true) end