Class: Suspenders::StylesheetBaseGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/suspenders/generators/stylesheet_base_generator.rb

Instance Method Summary collapse

Instance Method Details

#add_css_configObject



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_cssObject



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_configObject



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