ex_guard alternatives and similar packages
Based on the "Files and Directories" category.
Alternatively, view ex_guard alternatives based on common mentions on social networks and blogs.
-
dir_walker
Simple Elixir file-system directory tree walker. It can handle large filesystems, as the tree is traversed lazily. -
eye_drops
Configurable Elixir mix task to watch file changes and run the corresponding command. -
librex
Elixir library to convert office documents to other formats using LibreOffice. -
elixgrep
An elixir framework to implement concurrent versions of common unix utilities, grep, find, etc.. -
Belt
Extensible file upload library with support for SFTP, S3 and Filesystem storage.
ONLYOFFICE Docs โ document collaboration in your environment
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of ex_guard or a related project?
Popular Comparisons
README
ExGuard
ExGuard is a mix command to handle events on file system modifications, ExGuard heavily borrowed ideas/art works from Ruby Guard
Usage
Add
ex_guard
to your list of dependencies inmix.exs
:def deps do [{:ex_guard, "~> 1.3", only: :dev}] end
Create a file named
.exguard.exs
in your root application directory:use ExGuard.Config guard("unit-test", run_on_start: true) |> command("mix test --color") |> watch(~r{\.(erl|ex|exs|eex|xrl|yrl)\z}i) |> ignore(~r{deps}) |> notification(:auto)
Look at below sample file for more fine-grained config.
Run
mix guard
as soon as you change any file with above pattern, the test gets executed
Notification
Currently supports notification with tools:
- Terminal Title (Xterm)
- TMux (Universal)
- Terminal Notifier (mac only)
- Notify Send (linux distros)
In order to ExGuard sends notification, you need to make sure these tools are setup properly.
If you are using ExGuard mainly for Elixir test you may turn the notification off and use ExUnit Notifier instead.
Why ExGuard and not mix-test.watch or eye_drops or XYZ
It's just a matter of taste!
With ExGuard you can run multiple commands and the config looks nice.
use ExGuard.Config
guard("elixir test", run_on_start: true)
|> command("mix test --color")
#only run related phoenix test when a file changes
|> watch({~r{lib/(?<lib_dir>.+_web)/(?<dir>.+)/(?<file>.+).ex$}i, fn m -> "test/#{m["lib_dir"]}/#{m["dir"]}/#{m["file"]}_test.exs" end})
# only if the above pattern doesn't match try to match all elixir/erlang source
|> watch(~r{\.(erl|ex|exs|eex|xrl|yrl)\z}i)
|> ignore(~r{deps})
|> notification(:off) #Disabled it and using ex_unit_notifier instead
guard("elm test", run_on_start: true)
|> command("elm-test assets/tests/")
|> watch(~r{\.(elm)\z}i)
|> ignore(~r{elm-stuff})
|> notification(:auto)