templates/Guardfile in qedproject-0.2.1 vs templates/Guardfile in qedproject-0.3.0
- old
+ new
@@ -14,16 +14,26 @@
<% if self.testing -%>
guard "coffeescript", :input => "spec", :output => "spec"
<% end -%>
<% end -%>
<% if self.jammit -%>
-guard "jammit" do
+guard "jammit", :force => true do
watch(/^javascripts\/(.*)\.js/)
watch(/^stylesheets\/(.*)\.css/)
<% if self.coffeescript -%>
watch(/^tmp\/(.*)\.js/)
<% end -%>
<% if self.sass -%>
watch(/^tmp\/(.*)\.css/)
<% end -%>
end
-<% end -%>
+<% end -%>
+
+guard 'livereload' do
+ watch(%r{public/.+\.(css|js|html)})
+<% if self.jammit -%>
+ watch(%r{public/assets/.+\.(css|js|html)})
+<% else %>
+ watch(%r{public/javascripts/.+\.js})
+ watch(%r{public/stylesheets/.+\.css})
+<% end -%>
+end
\ No newline at end of file