Sha256: e6646fdd5f7bb1b11e7ee3dea54c55bb827940c96d3a625e7111d321837de763
Contents?: true
Size: 832 Bytes
Versions: 8
Compression:
Stored size: 832 Bytes
Contents
module Pah module Templates class Bourbon < Pah::Template def call css_path = 'app/assets/stylesheets/' application_css_path = "#{css_path}application.css" prepend_to_file application_css_path do <<IMPORTS @import 'normalize-rails'; @import 'bourbon'; @import 'base/base'; @import 'neat'; IMPORTS end gsub_file application_css_path, /\*= require_tree \./, '*' inside(css_path) do system 'bundle exec bitters install' end gsub_file "#{css_path}base/_base.scss", %r{// @import "grid-settings";}, '@import "grid-settings";' system "mv #{application_css_path} #{css_path}application.css.scss" git rm: "#{application_css_path} -q" git add: css_path git_commit 'Install bourbon.' end end end end
Version data entries
8 entries across 8 versions & 1 rubygems