Permalink
Browse files

Configure guard-shell and guard-livereload.

  • Loading branch information...
1 parent edbcdbe commit 0b35f7b7a1f01106933c5bdfcde8811bddae9768 @demiazz committed Jan 27, 2012
Showing with 16 additions and 0 deletions.
  1. +16 −0 Guardfile
View
@@ -0,0 +1,16 @@
+guard 'shell' do
+ # Cakefile
+ watch(/^Cakefile$/) { |m| `cake build:all` }
+ # Library
+ watch(/^lib\/.*/) { |m| `cake build:lib`}
+ # Specs
+ watch(/^spec\/.*/) { |m| `cake build:spec` }
+end
+
+reload_url = 'http://localhost:3000'
+
+guard 'livereload' do
+ watch(/^jasmine-wkreporter.js$/) { |m| reload_url }
+ watch(/^jasmine-wkreporter.spec.js$/) { |m| reload_url }
+ watch(/^vendor\/.*/) { |m| reload_url }
+end

0 comments on commit 0b35f7b

Please sign in to comment.