Sha256: 65b7a8598486ae0997c732d776581516b1b5d22df43a77329d69a49dac7edb55

Contents?: true

Size: 677 Bytes

Versions: 3

Compression:

Stored size: 677 Bytes

Contents

require_relative "base"

module Suspenders
  class StylesheetBaseGenerator < Generators::Base
    def add_stylesheet_gems
      gem "bourbon", ">= 5.0.1"
      gem "neat", ">= 3.0.1"
      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_bitters
      run "bitters install --path app/assets/stylesheets"
    end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
suspenders-1.53.0 lib/suspenders/generators/stylesheet_base_generator.rb
suspenders-1.52.0 lib/suspenders/generators/stylesheet_base_generator.rb
suspenders-1.51.0 lib/suspenders/generators/stylesheet_base_generator.rb