Skip to content

Instantly share code, notes, and snippets.

View chrishough's full-sized avatar
😸
How can I help you?

Chris Hough chrishough

😸
How can I help you?
View GitHub Profile
@chrishough
chrishough / Guardfile
Created March 10, 2020 00:23
Example Guardfile for Ruby on Rails Applications with the front end inside of Rails
clearing :on
directories %w(app lib config spec) \
.select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
group :cops do
guard 'rake', task: 'myapp:test:rubocop' do
watch(%r{(app|lib|spec)/(.+)\.(rb|rake)$})
watch(%r{config/(application|routes).rb})
end