Class: Generators::Avo::Js::InstallGenerator

Inherits:
BaseGenerator
  • Object
show all
Defined in:
lib/generators/avo/js/install_generator.rb

Instance Method Summary collapse

Methods inherited from BaseGenerator

#initialize

Constructor Details

This class inherits a constructor from Generators::Avo::BaseGenerator

Instance Method Details

#create_filesObject



15
16
17
18
19
20
21
22
23
24
# File 'lib/generators/avo/js/install_generator.rb', line 15

def create_files
  case options[:bundler].to_s
  when "importmap"
    install_for_importmap
  when "esbuild"
    install_for_esbuild
  else
    say "We don't know how to install Avo JS for this bundler \"#{options[:bundler]}\""
  end
end