Class: Nanoui::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Nanoui::Generators::InstallGenerator
- Defined in:
- lib/generators/nanoui/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_base ⇒ Object
8 9 10 |
# File 'lib/generators/nanoui/install_generator.rb', line 8 def copy_base directory "css/base", "app/assets/stylesheets/nanoui/base" end |
#copy_fonts ⇒ Object
12 13 14 |
# File 'lib/generators/nanoui/install_generator.rb', line 12 def copy_fonts directory "css/fonts", "app/assets/stylesheets/nanoui/fonts" end |
#print_instructions ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/generators/nanoui/install_generator.rb', line 16 def print_instructions say "" say "NanoUI installed!", :green say "" say "Next steps:" say " 1. Run: rails generate nanoui:component --all" say " Or add components individually:" say " rails generate nanoui:component button input card" say "" say " 2. Customize your theme in:" say " app/assets/stylesheets/nanoui/base/03_colors.css" say "" end |