Sha256: 8e93210dd7fdc1228eebcc29dde3e832d29c518c1a2740a5c27a5a187b8a205f
Contents?: true
Size: 889 Bytes
Versions: 1
Compression:
Stored size: 889 Bytes
Contents
require "rails/generators" module Suspenders class StylesheetBaseGenerator < Rails::Generators::Base source_root File.expand_path( File.join("..", "..", "..", "templates"), File.dirname(__FILE__)) def add_stylesheet_gems gem "bourbon", "5.0.0.beta.6" gem "neat", "~> 1.8.0" gem "refills", group: [:development, :test] Bundler.with_clean_env { run "bundle install" } end def add_css_config copy_file( "application.scss", "app/assets/stylesheets/application.scss", force: true, ) end def remove_prior_config remove_file "app/assets/stylesheets/application.css" end def install_refills generate "refills:import", "flashes" remove_dir "app/views/refills" end def install_bitters run "bitters install --path app/assets/stylesheets" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
suspenders-1.42.0 | lib/suspenders/generators/stylesheet_base_generator.rb |