Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use Rake to generate Bourbon for non-Rails use.

  • Loading branch information...
commit a647cff5235c3526a2419cef984fffaeb2d8eb71 1 parent 1d187fe
@gabebw gabebw authored
Showing with 12 additions and 22 deletions.
  1. +12 −0 Rakefile
  2. +0 −22 generate-bourbon.sh
View
12 Rakefile
@@ -1,2 +1,14 @@
require 'bundler'
Bundler::GemHelper.install_tasks
+
+directory 'bourbon/lib'
+
+desc "Generate bourbon directory for use outside Rails"
+task :generate => 'bourbon/lib' do
+ FileUtils.cp_r(Dir['app/assets/stylesheets/*'], 'bourbon/')
+ FileUtils.cp_r(Dir['lib/*'], 'bourbon/lib/')
+
+ FileUtils.rm_r('bourbon/lib/tasks')
+ FileUtils.rm('bourbon/lib/bourbon/engine.rb')
+ FileUtils.rm('bourbon/lib/bourbon/version.rb')
+end
View
22 generate-bourbon.sh
@@ -1,22 +0,0 @@
-#!/bin/sh
-
-# README
-# This will generate a bourbon directory and convert all .css.scss to .scss extensions.
-# The bourbon directory is for 'sass --watch' use outside of rails.
-# Step 1: Make install executable by changing permission
-# chmod a+x generate-bourbon.sh
-
-# Step 2: Generate Files
-# ./generate-bourbon.sh
-
-echo Creating directory...
-mkdir -p $PWD/bourbon/lib
-
-echo Copying files...
-cp -a $PWD/app/assets/stylesheets/* $PWD/bourbon
-cp -a $PWD/lib/* $PWD/bourbon/lib
-rm -r $PWD/bourbon/lib/tasks
-rm -r $PWD/bourbon/lib/bourbon/engine.rb
-rm -r $PWD/bourbon/lib/bourbon/version.rb
-
-echo Done.
Please sign in to comment.
Something went wrong with that request. Please try again.