README.md
# ExGuard
ExGuard is a mix command to handle events on file system modifications, ExGuard heavily borrowed ideas/art works from [Guard](https://github.com/guard/guard)

[](https://travis-ci.org/slashmili/ex_guard)
[](https://hex.pm/packages/ex_guard)
[](https://hexdocs.pm/ex_guard/)
[](https://hex.pm/packages/ex_guard)
[](https://beta.hexfaktor.org/github/slashmili/ex_guard)
[]()
## Usage
1. Add ex_guard to your list of dependencies in `mix.exs`:
def deps do
[{:ex_guard, "~> 0.10.0", only: :dev}]
end
2. Create a file named `ExGuardfile` in your root application directory:
```elixir
use ExGuard.Config
guard("unit-test")
|> command("mix test --color")
|> watch(~r{\.(erl|ex|exs|eex|xrl|yrl)\z}i)
```
Look at [ExGuardfile](https://github.com/slashmili/ex_guard/blob/master/ExGuardfile) for more fine-grained config
3. run `mix guard` as soon as you change any file with above pattern, the test gets executed