Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

Commit

Permalink
Add guard + configure Guardfile four our project
Browse files Browse the repository at this point in the history
  • Loading branch information
jbourassa committed Dec 4, 2020
1 parent 9c91eb5 commit c5a3eb4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ group :test do
gem 'pry-byebug'
end

group :development do
gem 'guard'
gem 'guard-minitest'
end

gem 'rubocop', '~> 0.93.1', require: false
gem 'rubocop-performance', '~> 1.8.1', require: false
gem 'rubocop-shopify', '~> 1.0.6', require: false
Expand Down
7 changes: 7 additions & 0 deletions Guardfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

guard :minitest do
watch(%r{^test/(.*)_test.rb$})
watch(%r{^lib/theme_check/(.*)\.rb$}) { |m| "test/#{m[1]}_test.rb" }
watch(%r{^test/test_helper\.rb$}) { 'test' }
end

0 comments on commit c5a3eb4

Please sign in to comment.