Class: NumberFlow::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- NumberFlow::Generators::InstallGenerator
- 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
#install ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/generators/number_flow/install/install_generator.rb', line 22 def install if [:vite] install_vite else install_standard end end |