Sha256: 9784906734de5872f2829d97cc54373eb68d6d18e2804cd38eb612d87afa8a5e
Contents?: true
Size: 1.35 KB
Versions: 6
Compression:
Stored size: 1.35 KB
Contents
module Pave class Theme include Pave::Shell attr_reader :name def self.create(name) new(name).setup end def self.watch(browser) system("pave livereload #{browser} &") system("sass --watch ./themes/ --style compressed") end def initialize(name) @name = name end def install_sass say "Installing SASS..." sh "gem install sass" end def install_bourbon say "Installing Bourbon..." sh "gem install bourbon" sh "cd themes/#{self.name}/css/ && bourbon install && cd -" end def install_neat say "Installing Neat..." sh "gem install neat" sh "cd themes/#{self.name}/css/ && neat install && cd -" end def install_bitters say "Installing Bitters" sh "gem install bitters" sh "cd themes/#{self.name}/css/ && bitters install && cd -" end def copy_theme sh "cp -a #{Pave.template_folder}/themes/blank #{Dir.pwd}/themes/#{self.name}" end def setup say "Creating theme..." copy_theme install_sass install_bourbon install_neat install_bitters say "Docs for Neat: http://neat.bourbon.io/" say "Docs for Bitters: https://github.com/thoughtbot/bitters" say "" say "Theme installed. Run `pave watch` to generate css from your sass files." end end end
Version data entries
6 entries across 6 versions & 1 rubygems