ExSync
Yet another Elixir reloader.
System Support
ExSync deps on FileSystem
Usage
Create a new application:
mix new my_appAdd exsync to your
mix.exsdependencies:def deps do[ {:exsync, "~> 0.2", only: :dev} ]endStart your application the usual way, e.g.,
iex -S mix, then:ExSync.start()(Alternative) Always start ExSync when available, add the following to an application's
start/2:defmodule MyApp douse Applicationdef start(_type, _args) doimport Supervisor.Spec, warn: falsecase Code.ensure_loaded(ExSync) do{:module, ExSync} ->ExSync.start(){:error, :nofile} ->:okend# ... rest of your applications start script.endend
Usage for umbrella project
Create an umbrella project
mix new my_umbrella_app --umbrellaAdd exsync to your
mix.exsdependencies:def deps do[ {:exsync, "~> 0.2", only: :dev} ]endstart your umbrella project with
exsynctaskiex -S mix exsync