Permalink
Browse files

move Guardfile to sample

  • Loading branch information...
1 parent 38cff2a commit 7a734864737b5bdeff064e1714f9f07be70edaec @essa essa committed Sep 4, 2012
Showing with 24 additions and 14 deletions.
  1. +3 −0 .gitignore
  2. +21 −14 Guardfile → Guardfile.sample
View
3 .gitignore
@@ -39,3 +39,6 @@
# Ignore ctags
tags
+
+# Ignore Guardfile because it may be different by environment.
+Guardfile
View
35 Guardfile → Guardfile.sample
@@ -1,19 +1,26 @@
-# A sample Guardfile
-# More info at https://github.com/guard/guard#readme
+# A sample Guardfile for cojiro BDD
+# see https://github.com/netalab/cojiro/wiki/StartingDevelopment
+# for detail
+#
+# invoke this by
+# $ Xvfb :99 -ac&
+# $ DISPLAY=:99 rbenv exec bundle exec guard
-guard 'rails' do
- watch('Gemfile.lock')
- watch(%r{^(config|lib)/.*})
-end
+# Uncomment this if you want to start debugging server with guard
+# guard 'rails' do
+# watch('Gemfile.lock')
+# watch(%r{^(config|lib)/.*})
+# end
-guard 'livereload' do
- watch(%r{app/views/.+\.(erb|haml|slim)})
- watch(%r{app/helpers/.+\.rb})
- watch(%r{public/.+\.(css|js|html)})
- watch(%r{config/locales/.+\.yml})
- # Rails Assets Pipeline
- watch(%r{(app|vendor)/assets/\w+/(.+\.(css|js|html)).*}) { |m| "/assets/#{m[2]}" }
-end
+# Uncomment this if you use livereload extention
+# guard 'livereload' do
+# watch(%r{app/views/.+\.(erb|haml|slim)})
+# watch(%r{app/helpers/.+\.rb})
+# watch(%r{public/.+\.(css|js|html)})
+# watch(%r{config/locales/.+\.yml})
+# # Rails Assets Pipeline
+# watch(%r{(app|vendor)/assets/\w+/(.+\.(css|js|html)).*}) { |m| "/assets/#{m[2]}" }
+# end
guard 'spork', :cucumber_env => { 'RAILS_ENV' => 'test' }, :rspec_env => { 'RAILS_ENV' => 'test' } do
watch('config/application.rb')

0 comments on commit 7a73486

Please sign in to comment.