Permalink
Browse files

Cooked up quick Ruby/FSSM SCSS autocompile-on-file-change script.

  • Loading branch information...
1 parent 26df6d5 commit 4faff0421be760427c71d562d7e4ffff7398beab @46bit committed Mar 20, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 build-sass.rb
View
@@ -0,0 +1,11 @@
+#!/usr/bin/env ruby
+
+require 'rubygems'
+require 'fssm'
+
+FSSM.monitor(".", '**/*') do
+ pr = Proc.new { |b,r,t| `sass assets/css/master.scss assets/css/master.css`; puts "Rendered" }
+ update { pr.call }
+ create { pr.call }
+ delete { pr.call }
+end

0 comments on commit 4faff04

Please sign in to comment.