Class: CssZero::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- CssZero::InstallGenerator
- Defined in:
- lib/generators/css_zero/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_base_css ⇒ Object
6 7 8 |
# File 'lib/generators/css_zero/install/install_generator.rb', line 6 def copy_base_css copy_file "app/assets/stylesheets/base.css" end |
#copy_javascript_helpers ⇒ Object
10 11 12 |
# File 'lib/generators/css_zero/install/install_generator.rb', line 10 def copy_javascript_helpers directory "app/javascript/helpers" end |
#pin_javascript_helpers ⇒ Object
14 15 16 17 |
# File 'lib/generators/css_zero/install/install_generator.rb', line 14 def pin_javascript_helpers return unless install_with_importmap? append_to_file "config/importmap.rb", %(pin_all_from "app/javascript/helpers", under: "helpers"\n) end |