public
Created

saimonmoore's guardfile

  • Download Gist
Guardfile
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
# A sample Guardfile
# More info at http://github.com/guard/guard#readme
 
guard 'livereload', :api_version => '1.5' do
watch(%r{app/.+\.(rb|erb|haml|js|sass)$})
watch(%r{app/helpers/.+\.rb$})
watch(%r{public/.+\.(sass|css|js|html)$})
watch(%r{config/locales/.+\.yml$})
end
 
guard 'ego' do
watch('Guardfile')
end
 
guard 'bundler' do
watch('^Gemfile')
# Uncomment next line if Gemfile contain `gemspec' command
# watch('^.+\.gemspec')
end
 
#!!! IMPORTANT: place Spork guard before rspec/cucumber guards !!!
#guard 'spork' do
#watch('^config/application.rb$')
#watch('^config/environment.rb$')
#watch('^config/environments/.*\.rb$')
#watch('^config/initializers/.*\.rb$')
#watch('^spec/spec_helper.rb')
#end
#opts
#:wait => 30 # Seconds to wait server launch, default 20
#:cucumber => false
#:rspec => false
#:bundler => false # don't use "bundle exec"
#:rspec_port => xxxx # default 8989
#:cucumber_port => xxxx # default 8990
 
 
#guard 'rspec' do
#watch('^spec/(.*)_spec.rb')
#watch('^app/(.*)\.rb') { |m| "spec/#{m[1]}_spec.rb" }
#watch('^lib/(.*)\.rb') { |m| "spec/lib/#{m[1]}_spec.rb" }
#watch('^spec/spec_helper.rb') { "spec" }
#watch('^config/routes.rb') { "spec/routing" }
#watch('^app/controllers/application_controller.rb') { "spec/controllers" }
#watch('^spec/factories.rb') { "spec/models" }
#end
#opts
#:color => false
#:drb => true
#:bundler => false # don't use "bundle exec"
#:rvm => ['1.8.7', '1.9.2'] # directly run your specs on multiple ruby
#:formatter => "instafail" # show failing specs instantly
#:fail_fast => true # RSpec 2.1+ only
#
 
#guard 'cucumber' do
#watch(%r{features/.+\.feature})
#watch(%r{features/support/.+}) { 'features' }
#watch(%r{features/step_definitions/.+}) { 'features' }
#end
#opts
#:color => false # Disable colored output
#:drb => true # Enable Spork DRb server
#:port => 1234 # Set custom Spork port
#:bundler => false # Don't use "bundle exec"
#:rvm => ['1.8.7', '1.9.2'] # Directly run your specs on multiple ruby
#:profile => 'cucumber_profile' # Let cucumber use another profile than the default one
 
 
 
# Add files and commands to this file, like the example:
# watch('file/path') { `command(s)` }
#
#guard 'shell' do
#watch('(.*).txt') {|m| `tail #{m[0]}` }
#end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.