-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGuardfile
More file actions
32 lines (27 loc) · 848 Bytes
/
Guardfile
File metadata and controls
32 lines (27 loc) · 848 Bytes
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
# encoding: utf-8
guard 'bundler' do
watch('Gemfile')
end
guard 'nanoc' do
watch('config.yaml')
watch('config/compass.rb')
watch('Rules')
watch(%r{layouts/.*})
watch(%r{content/.*})
watch('lib/helpers.rb')
end
guard 'rspec', :version => 2 do
watch(%r{^spec/(.*)_spec\.rb})
watch(%r{^lib/(.*)\.rb}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch(%r{^app/(.*)\.rb}) { |m| "spec/app/#{m[1]}_spec.rb" }
watch('app/website.rb') { |m| "spec/app" }
watch('config/application.rb') { "spec" }
watch('spec/spec_helper.rb') { "spec" }
end
guard 'livereload', :api_version => '1.6' do
watch(%r{public/.+\.(css|js|html|jpg)$})
end
guard 'passenger' do
watch(%r{^lib\/.*\.rb$})
watch(%r{^config\/.*\.rb$})
end