class Suspenders::StylesheetBaseGenerator
Public Instance Methods
add_css_config()
click to toggle source
# File lib/suspenders/generators/stylesheet_base_generator.rb, line 14 def add_css_config copy_file( "application.scss", "app/assets/stylesheets/application.scss", force: true ) end
add_stylesheet_gems()
click to toggle source
# File lib/suspenders/generators/stylesheet_base_generator.rb, line 5 def add_stylesheet_gems gem "bourbon", ">= 6.0.0" Bundler.with_unbundled_env { run "bundle install" } end
install_bitters()
click to toggle source
# File lib/suspenders/generators/stylesheet_base_generator.rb, line 22 def install_bitters run "bitters install --path app/assets/stylesheets" end
install_normalize_css()
click to toggle source
# File lib/suspenders/generators/stylesheet_base_generator.rb, line 26 def install_normalize_css run "bin/yarn add normalize.css" end
remove_prior_config()
click to toggle source
# File lib/suspenders/generators/stylesheet_base_generator.rb, line 10 def remove_prior_config remove_file "app/assets/stylesheets/application.css" end