@ -54,7 +54,7 @@ guard 'livereload' do
|
||||
watch(%r{config/locales/.+\.yml})
|
||||
end
|
||||
|
||||
guard :minitest, spring: "bin/rails test" do # all_after_pass: true
|
||||
guard :minitest, spring: "bin/rails test", all_after_pass: true do
|
||||
watch(%r{^app/(.+)\.rb$}) { |m| "test/#{m[1]}_test.rb" }
|
||||
watch(%r{^app/controllers/(admin|application)_controller\.rb$}) { 'test/controllers' }
|
||||
watch(%r{^app/controllers/(.+)_controller\.rb$}) { |m| "test/integration/#{m[1]}_test.rb" }
|
||||
@ -71,7 +71,7 @@ end
|
||||
# ESLint
|
||||
guard :shell, all_on_start: true do
|
||||
watch %r{app/assets/javascripts/*/.*} do |file|
|
||||
system %(echo "ESLinting \033[32m#{file[0]}\033[0m")
|
||||
system %(echo "ESLint:\033[32m #{file[0]}\033[0m")
|
||||
system %(eslint #{file[0]})
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user