-
Notifications
You must be signed in to change notification settings - Fork 0
/
guardfile
47 lines (38 loc) · 1.22 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
43
44
45
46
47
# ~/.guardfile
# More info at https://github.com/guard/guard#readme
notification :off
puts "Using default guard file."
group :development do
if File.exists?("./config.rb")
# Compile on start.
puts `compass compile --time --quiet`
# https://github.com/guard/guard-compass
guard :compass do
watch(%r{(.*)\.s[ac]ss$})
end
end
## Uncomment if running a Drupal theme. Clears .info caches. Requires Drush.
# if Dir.glob("*.info").any?
# guard :shell do
# puts 'Monitoring theme info file.'
# watch(%r{.*\.info$}) { |m|
# puts 'Change detected: ' + m[0]
# `drush php-eval "system_rebuild_theme_data();"`
# puts 'Cleared info caches.'
# }
# end
# end
## Look for specified files in the current and child directories.
## `find` requires Ruby 1.9 or greater.
# require 'find'
# if Find.find(Dir.pwd).detect{|dir|dir=~/.+\.(css|js|html?|php|inc|theme)$/}
# guard :livereload do
# watch(%r{.+\.(css|js|html?|php|inc|theme)$})
# end
# end
# Uncomment block above and remove this if using Ruby 1.9 or greater.
# https://github.com/guard/guard-livereload.
guard :livereload do
watch(%r{.+\.(css|js|html?|php|inc|theme)$})
end
end