Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
Updated bash script. Updated readme. Updated sass_entensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil LaPier committed Jul 15, 2011
1 parent 67db341 commit a5efc3c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
7 changes: 6 additions & 1 deletion generate-sass.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,19 @@
# ./generate-sass.sh

echo Creating directory...
mkdir -p $PWD/bourbon
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 Renaming files...
find $PWD/bourbon -name "*.css.scss" | while read i;
do mv "$i" "${i%.css.scss}.scss";
done

echo Done.

4 changes: 1 addition & 3 deletions lib/bourbon/sass_extensions/functions.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
module Bourbon::SassExtensions::Functions
end

%w(compact).each do |func|
require "bourbon/sass_extensions/functions/#{func}"
end
require "bourbon/sass_extensions/functions/compact"

module Sass::Script::Functions
include Bourbon::SassExtensions::Functions::Compact
Expand Down
7 changes: 6 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ Preliminary step: clone the repo and cd into the directory.

./generate-sass.sh

**Step 3:** Move the new *borubon* directory to your project's stylesheets directory.
**Step 3:** Move the new *bourbon* directory into your project's sass directory. *e.g. stylesheets/sass/*

**Step 4:** Bourbon requires an additional sass extension to output properly. You must watch your sass files with the following flag appended: *-r ./bourbon/lib/bourbon.rb*

# Example (project root directory)
sass --watch stylesheets/sass:stylesheets -r ./stylesheets/sass/bourbon/lib/bourbon.rb


#Using Bourbon Vanilla Mixins
Expand Down

0 comments on commit a5efc3c

Please sign in to comment.