2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2014-07-07 10:19:15 +00:00
|
|
|
# A sample Guardfile
|
|
|
|
# More info at https://github.com/guard/guard#readme
|
|
|
|
|
2015-09-29 13:23:32 +00:00
|
|
|
guard :livereload, port: '35738' do
|
2014-07-07 10:19:15 +00:00
|
|
|
watch(%r{app/views/.+\.(erb|haml|slim)$})
|
|
|
|
watch(%r{app/helpers/.+\.rb})
|
2015-09-29 11:50:28 +00:00
|
|
|
watch(%r{public/.+\.(css|js|html)})
|
2014-07-07 10:19:15 +00:00
|
|
|
watch(%r{config/locales/.+\.yml})
|
|
|
|
# Rails Assets Pipeline
|
2015-09-29 12:50:18 +00:00
|
|
|
watch(%r{(app|vendor)(/assets/\w+/(.+\.(css|js|coffee|html|png|jpg))).*}) { |m| "/assets/#{m[3]}" }
|
2015-09-29 11:50:28 +00:00
|
|
|
watch(%r{(app|vendor)(/assets/\w+/(.+)\.(scss))}) { |m| "/assets/#{m[3]}.css" }
|
|
|
|
watch(%r{(app|vendor)(/assets/\w+/(.+)\.(svg))}) { |m| "/assets/#{m[3]}.svg" }
|
2014-07-07 10:19:15 +00:00
|
|
|
end
|