Sha256: a17fe833d372195f3d479c6066a760b6f4953f53eb46ab1a96ff6dd86ba75bcb

Contents?: true

Size: 631 Bytes

Versions: 2

Compression:

Stored size: 631 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]
    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
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
suspenders-1.41.0 lib/suspenders/generators/stylesheet_base_generator.rb
suspenders-1.40.0 lib/suspenders/generators/stylesheet_base_generator.rb