Class: Suspenders::StylesheetBaseGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Suspenders::StylesheetBaseGenerator
- Defined in:
- lib/suspenders/generators/stylesheet_base_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_css_config ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/suspenders/generators/stylesheet_base_generator.rb', line 9 def add_css_config copy_file( "application.sass", "app/assets/stylesheets/application.sass", force: true, ) end |
#install_normalize_css ⇒ Object
21 22 23 |
# File 'lib/suspenders/generators/stylesheet_base_generator.rb', line 21 def install_normalize_css run "bin/yarn add normalize.css" end |
#remove_prior_config ⇒ Object
17 18 19 |
# File 'lib/suspenders/generators/stylesheet_base_generator.rb', line 17 def remove_prior_config remove_file "app/assets/stylesheets/application.css" end |