Class: NumberFlow::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/number_flow/install/install_generator.rb

Constant Summary collapse

CONTROLLER_SOURCE =
'app/assets/javascripts/number_flow/controller.js'
CSS_SOURCE =
'app/assets/stylesheets/number_flow.css'
VITE_CONTROLLER_TARGET =
'app/frontend/controllers/number_flow_controller.js'
VITE_CSS_TARGET =
'app/frontend/stylesheets/number_flow.css'
VITE_ENTRYPOINT =
'app/frontend/entrypoints/application.js'

Instance Method Summary collapse

Instance Method Details

#installObject



22
23
24
25
26
27
28
# File 'lib/generators/number_flow/install/install_generator.rb', line 22

def install
  if options[:vite]
    install_vite
  else
    install_standard
  end
end