Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Initial import

  • Loading branch information...
commit f359cdc804b6b1d8461894b91abda62341ba3a99 0 parents
@vjpr authored
21 .livereload
@@ -0,0 +1,21 @@
+# Lines starting with pound sign (#) are ignored.
+
+# additional extensions to monitor
+#config.exts << 'haml'
+
+# exclude files with NAMES matching this mask
+#config.exclusions << '~*'
+# exclude files with PATHS matching this mask (if the mask contains a slash)
+#config.exclusions << '/excluded_dir/*'
+# exclude files with PATHS matching this REGEXP
+#config.exclusions << /somedir.*(ab){2,4}.(css|js)$/
+
+# reload the whole page when .js changes
+#config.apply_js_live = false
+# reload the whole page when .css changes
+#config.apply_css_live = false
+# reload the whole page when images (png, jpg, gif) change
+#config.apply_images_live = false
+
+# wait 100ms for more changes before reloading a page
+#config.grace_period = 0.1
BIN  CoffeeScript.Compiler.dll
Binary file not shown
BIN  Irony.dll
Binary file not shown
BIN  Jurassic.dll
Binary file not shown
0  README.md
No changes.
28 config.rb
@@ -0,0 +1,28 @@
+require 'html5-boilerplate'
+require 'compass_twitter_bootstrap'
+# Require any additional compass plugins here.
+
+
+# Set this to the root of your project when deployed:
+project_path = '../public'
+http_path = "/"
+css_dir = "stylesheets"
+sass_dir = "../sass"
+images_dir = "images"
+javascripts_dir = "javascripts"
+
+# You can select your preferred output style here (can be overridden via the command line):
+# output_style = :expanded or :nested or :compact or :compressed
+
+# To enable relative paths to assets via compass helper functions. Uncomment:
+relative_assets = true
+
+# To disable debugging comments that display the original location of your selectors. Uncomment:
+# line_comments = false
+
+
+# If you prefer the indented syntax, you might want to regenerate this
+# project again passing --syntax sass, or you can uncomment this:
+# preferred_syntax = :sass
+# and then run:
+# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
6 haml_helper.rb
@@ -0,0 +1,6 @@
+require 'haml'
+
+def render_file(filename)
+ contents = File.read(filename)
+ Haml::Engine.new(contents).render
+end
27 haml_watch.rb
@@ -0,0 +1,27 @@
+# Script to watch a directory for any changes to a haml file
+# and compile it.
+#
+# USAGE: ruby haml_watch.rb <directory_to_watch>
+#
+require 'rubygems'
+require 'fssm'
+
+#source_dir = Dir.pwd + "/" + ARGV.first
+#source_dir = ARGV.first
+
+source_dir = "../haml"
+dest_dir = "../"
+
+puts "Monitoring " + source_dir
+puts "Target Dir: " + dest_dir
+
+FSSM.monitor(source_dir, '**/*.haml') do
+ update do |base, relative|
+ input = source_dir + "/" + "#{relative}"
+ output = dest_dir + "/" + "#{relative.gsub!('.haml', '.html')}"
+ command = "haml #{input} #{output}"
+ %x{#{command}}
+ puts "Regenerated #{input} to #{output}"
+ end
+end
+
BIN  ncoffee.exe
Binary file not shown
9 watch.bat
@@ -0,0 +1,9 @@
+@echo off
+echo ******************************************************************
+echo SOURCE CODE WATCHER (HAML,COMPASS+SASS,LIVERELOAD)
+echo ******************************************************************
+
+start /B ruby haml_watch.rb
+start /B compass watch
+start /B livereload ../
+start /B ncoffee -w -o=../ ../coffeescript
Please sign in to comment.
Something went wrong with that request. Please try again.