C83 / THP_2.0

0 stars 0 forks source link

Configure guard #18

Open C83 opened 6 years ago

C83 commented 6 years ago

Why ?

Guard is a tool that watch for any change on certain files and then run some commands. It's useful 'cause we can use it to never forget to run tests/linting before commit/push.

Must have

Reading list

C83 commented 6 years ago

Guard integration

Installation
The simplest way to install Guard is to use Bundler.
Add Guard (and any other dependencies) to a Gemfile in your project’s root:
group :development do
  gem 'guard'
end
then install it by running Bundler:
$ bundle
Generate an empty Guardfile with:
$ bundle exec guard init
Run Guard through Bundler with:
$ bundle exec guard

Add plugins :

  gem 'guard'
  gem 'guard-annotate'
  gem 'guard-rspec', require: false
  gem 'guard-rubocop'

Then bundle exec guard init rspec guard init annotate guard init rubocop

Then, you can customize the behavior.