Sha256: b57c4fce642bd0743deba020f4f94600c12537d107d3f3b8b5a73fa6d2402410

Contents?: true

Size: 692 Bytes

Versions: 1

Compression:

Stored size: 692 Bytes

Contents

module Stationed
  module Generators
    module Plugins
      module Styles
        def finish_template
          gem 'bourbon'
          gem 'neat'
          gem 'bitters'
          remove_file 'app/assets/stylesheets/application.css'
          copy_file 'application.scss', 'app/assets/stylesheets/application.scss'
          copy_file 'layout.scss', 'app/assets/stylesheets/_layout.scss'
          super
        end

        def run_bundle
          super
          run 'bitters install'
          FileUtils.mv 'bitters', 'app/assets/stylesheets/bitters'
          gsub_file 'app/assets/stylesheets/bitters/_bitters.scss', %r{// @import}, '@import'
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stationed-0.0.1 lib/stationed/generators/plugins/styles.rb