Skip to content
Browse files

Added install script for use outside of rails. Updated readme

  • Loading branch information...
1 parent b716036 commit 1c0b4f7a002eac8e9321080c7726b608d0446db3 Phil LaPier committed Jul 4, 2011
Showing with 41 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +23 −0 generate-sass.sh
  3. +17 −1 readme.md
View
1 .gitignore
@@ -1,3 +1,4 @@
*swp
*gem
.sass-cache/
+sass/
View
23 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.
+
View
18 readme.md
@@ -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'
@@ -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.

0 comments on commit 1c0b4f7

Please sign in to comment.
Something went wrong with that request. Please try again.