-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGuardfile
More file actions
35 lines (29 loc) · 847 Bytes
/
Copy pathGuardfile
File metadata and controls
35 lines (29 loc) · 847 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
33
34
35
interactor :off
logger device: 'guard.log'
guard :bundler do
require 'guard/bundler'
require 'guard/bundler/verify'
helper = Guard::Bundler::Verify.new
files = ['Gemfile']
files += Dir['*.gemspec'] if files.any? { |f| helper.uses_gemspec?(f) }
# Assume files are symlinked from somewhere
files.each { |file| watch(helper.real_path(file)) }
end
guard :rails, daemon: true do
watch('Gemfile.lock')
watch(%r{^(config|lib)/.*})
end
guard :livereload do
watch(%r{app/assets/.+\.(css|js|html)})
watch(%r{app/controllers/.+\.rb})
watch(%r{app/helpers/.+\.rb})
watch(%r{app/lib/.+\.rb})
watch(%r{app/models/.+\.rb})
watch(%r{app/views/.+\.(erb|haml|slim)$})
watch(%r{config/locales/.+\.yml})
watch(%r{lib/.+\.rb})
watch(%r{public/.+\.(css|js|html)})
end
# TODO: on commit
# - run tests
# - deploy to shelly cloud