mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-22 02:52:49 +01:00
14 lines
347 B
Ruby
14 lines
347 B
Ruby
# frozen_string_literal: true
|
|
|
|
guard 'livereload' do
|
|
extensions = %i[css js png gif jpg]
|
|
watch(%r{lib/web/public/.+\.(#{extensions * '|'})})
|
|
watch(%r{lib/web/views/.+\.erb$})
|
|
end
|
|
|
|
guard :minitest do
|
|
watch(%r{^spec/(.*)_spec\.rb$})
|
|
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
|
watch(%r{^spec/helper\.rb$}) { 'spec' }
|
|
end
|