ExGuard v1.3.3 mix guard View Source

ExGuard automates various tasks by running custom rules whenever file or directories are modified.


usage: mix guard [--config=.exguard.exs]
help: mix help guard


add ex_guard to mix.exs

def deps do
  [{:ex_guard, "~> 1.1.1", only: :dev}]

Sample config file

Create .exguard.exs in your root mix directory:

use ExGuard.Config

|> command("mix test --color")
#config that match specific files:
|> watch({~r{lib/(?<dir>.+)/(?<file>.+).ex$}, fn(m) -> "test/#{m["dir"]}/#{m["file"]}_test.exs" end})
#if a file doesn't match with above pattern, this below pattern will be tested and applied
|> watch(~r{\\.(erl|ex|exs|eex|xrl|yrl)\\z}i)
|> ignore(~r/priv/)

Run mix guard and happy coding.

Check out here for more fine-grained configs.


Notify the result of execution through:

Link to this section Summary

Link to this section Functions