Class: MitosisEditor::StylesGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- MitosisEditor::StylesGenerator
- Defined in:
- lib/generators/mitosis_editor/styles_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_css_files ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/generators/mitosis_editor/styles_generator.rb', line 9 def copy_css_files copy_file "mitosis-editor.css", "app/assets/stylesheets/mitosis-editor.css" copy_file "theme-light.css", "app/assets/stylesheets/theme-light.css" copy_file "theme-dark.css", "app/assets/stylesheets/theme-dark.css" end |
#show_readme ⇒ Object
18 19 20 21 |
# File 'lib/generators/mitosis_editor/styles_generator.rb', line 18 def show_readme puts "\nDone! CSS files copied to app/assets/stylesheets/" puts "You can customize the CSS variables in these files." end |