Permalink
Browse files

Enable the usage of LiveReload

  • Loading branch information...
1 parent 148b46b commit d9f1d1d7e5c2c843724a809327e40c2f95130847 @fesplugas fesplugas committed Aug 30, 2011
Showing with 19 additions and 0 deletions.
  1. +8 −0 Gemfile
  2. +11 −0 Guardfile
View
@@ -60,3 +60,11 @@ group :test do
gem "shoulda-context", "~> 1.0.0.beta1"
gem "mocha" # Make sure mocha is loaded at the end ...
end
+
+# Remember to install the Chrome or Safari extension, otherwise it doesn't
+# make sense to have this here.
+group :development do
+ gem "guard-livereload"
+ gem "rb-fsevent"
+ gem "growl_notify"
+end
View
@@ -0,0 +1,11 @@
+# A sample Guardfile
+# More info at https://github.com/guard/guard#readme
+
+guard 'livereload' do
+ watch(%r{app/.+\.(erb|haml)})
+ watch(%r{app/helpers/.+\.rb})
+ watch(%r{(public/|app/assets).+\.(css|js|html)})
+ watch(%r{(app/assets/.+\.css)\.s[ac]ss}) { |m| m[1] }
+ watch(%r{(app/assets/.+\.js)\.coffee}) { |m| m[1] }
+ watch(%r{config/locales/.+\.yml})
+end

0 comments on commit d9f1d1d

Please sign in to comment.