Class: Suspenders::StylesheetBaseGenerator

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

Instance Method Summary collapse

Methods inherited from Generators::Base

default_source_root

Methods included from Actions

#action_mailer_asset_host, #action_mailer_host, #configure_environment, #expand_json, #replace_in_file

Instance Method Details

#add_css_configObject



5
6
7
8
9
10
11
# File 'lib/suspenders/generators/stylesheet_base_generator.rb', line 5

def add_css_config
  copy_file(
    "application.sass",
    "app/assets/stylesheets/application.sass",
    force: true,
  )
end

#install_normalize_cssObject



17
18
19
# File 'lib/suspenders/generators/stylesheet_base_generator.rb', line 17

def install_normalize_css
  run "bin/yarn add normalize.css"
end

#remove_prior_configObject



13
14
15
# File 'lib/suspenders/generators/stylesheet_base_generator.rb', line 13

def remove_prior_config
  remove_file "app/assets/stylesheets/application.css"
end