Class: Suspenders::StylesheetBaseGenerator
Instance Method Summary
collapse
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_config ⇒ Object
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_css ⇒ Object
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_config ⇒ Object
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
|