Skip to content
ExGuard is a mix command to handle events on file system modifications
Elixir
Latest commit cb7189b May 3, 2016 @slashmili Bump the version

README.md

ExGuard

ExGuard is a mix command to handle events on file system modifications, ExGuard heavily borrowed ideas/art works from Guard

ExGuard

Build Status Hex.pm Docs Hex.pm Deps Status Hex.pm

Usage

  1. Add ex_guard to your list of dependencies in mix.exs:

    def deps do
      [{:ex_guard, "~> 1.1.0", only: :dev}]
    end
    
  2. Create a file named .exguard.exs in your root application directory:

      use ExGuard.Config
    
      guard("unit-test")
      |> command("mix test --color")
      |> watch(~r{\.(erl|ex|exs|eex|xrl|yrl)\z}i)
      |> notification(:auto)

    Look at .exguard.exs for more fine-grained config

  3. run mix guard as soon as you change any file with above pattern, the test gets executed

Notification

Currently supports notification with tools:

In order to ExGuard sends notification, you need to make sure these tools are setup properly.

Something went wrong with that request. Please try again.