Skip to content

Commit

Permalink
Added install script for use outside of rails. Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil LaPier committed Jul 4, 2011
1 parent b716036 commit 1c0b4f7
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
*swp
*gem
.sass-cache/
sass/
23 changes: 23 additions & 0 deletions generate-sass.sh
@@ -0,0 +1,23 @@
#!/bin/sh

# README
# This will generate a sass directory and convert all .css.scss to .scss extensions.
# The sass directory is for 'sass --watch' use outside of rails.
# Step 1: Make install executable by changing permission
# chmod a+x generate-sass.sh

# Step 2: Generate Files
# ./generate-sass.sh

echo Creating directory...
mkdir -p $PWD/sass

echo Copying files...
cp -a $PWD/app/assets/stylesheets/* $PWD/sass

echo Renaming files...
find $PWD/sass -name "*.css.scss" | while read i;
do mv "$i" "${i%.css.scss}.scss";
done
echo Done.

18 changes: 17 additions & 1 deletion readme.md
Expand Up @@ -6,7 +6,7 @@ The purpose of Bourbon Vanilla Sass Mixins is to provide a comprehensive framewo
Sass 3.1+


##Install
##Install for Rails
**Update your Gemfile**

gem 'bourbon'
Expand All @@ -33,6 +33,22 @@ This will copy the Sass files into your project's public/stylesheets/sass direct
@import 'bourbon/bourbon';


##Install without Rails
The following script will generate a sass directory and convert all .css.scss to .scss extensions. The sass directory is for 'sass --watch' use outside of rails.

Preliminary step: clone the repo and cd into the directory.

**Step 1:** Make script executable by changing file permission

chmod a+x generate-sass.sh

**Step 2:** Generate files

./generate-sass.sh

**Step 3:** Move the new sass directory to your project's stylesheets directory.


##Usage
Below are a few examples of mixin usage. Note that these are just a few, explore the repo to find out more.

Expand Down

0 comments on commit 1c0b4f7

Please sign in to comment.