forked from GPCsolutions/mapotempo-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Guardfile
executable file
·42 lines (37 loc) · 1.25 KB
/
Guardfile
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
# Limit directory being watched
directories %w(app db config lib test)
# Clear console when launching guard
clearing :on
# Display notification in OS
# notification :libnotify, timeout: 5, transient: true, append: false, urgency: :critical
notification :off
# Don't display a pry console
interactor :off
group :server do
guard 'migrate' do
watch(%r{^db/migrate/(\d+).+\.rb})
end
# Option "force_run: true" does not work on Windows
guard :rails, port: 3000, timeout: 60 do
# watch(%r{^Gemfile\.lock$})
watch(%r{^app/api/(.+)\.rb})
watch(%r{^app/jobs/(.+)\.rb})
watch(%r{^config/.+(?<!locales)/.*})
watch(%r{^config/*/[^.][^/]+\.(rb|yml)(?<!i18n-js\.yml)})
watch(%r{^lib/.*})
end
end
# guard 'delayed', number_of_workers: 2, environment: 'development' do
# watch(%r{^app/jobs/(.+)\.rb})
# watch(%r{^app/models/(.+)\.rb})
# watch(%r{^config/initializers/.+\.rb})
# end
# guard 'process', name: 'i18n-js', command: 'rake i18n:js:export' do
# watch(%r{^config/i18n-js\.yml})
# watch(%r{^config/locales/js\..+\.yml})
# end
# guard :minitest do
# watch(%r{^test/(.*)\/?test_(.*)\.rb$})
# watch(%r{^lib/(.*/)?([^/]+)\.rb$}) { |m| "test/#{m[1]}test_#{m[2]}.rb" }
# watch(%r{^test/test_helper\.rb$}) { 'test' }
# end