Guardfile 633 B

123456789101112131415
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. # A sample Guardfile
  3. # More info at https://github.com/guard/guard#readme
  4. guard :livereload, port: '35738' do
  5. watch(%r{app/views/.+\.(erb|haml|slim)$})
  6. watch(%r{app/helpers/.+\.rb})
  7. watch(%r{public/.+\.(css|js|html)})
  8. watch(%r{config/locales/.+\.yml})
  9. # Rails Assets Pipeline
  10. watch(%r{(app|vendor)(/assets/\w+/(.+\.(css|js|coffee|html|png|jpg))).*}) { |m| "/assets/#{m[3]}" }
  11. watch(%r{(app|vendor)(/assets/\w+/(.+)\.(scss))}) { |m| "/assets/#{m[3]}.css" }
  12. watch(%r{(app|vendor)(/assets/\w+/(.+)\.(svg))}) { |m| "/assets/#{m[3]}.svg" }
  13. end