Packages

ActiveEx is a sync replacement that uses native file-system OS async listeners to automatic compile and to reload after saving all *.ex and *.erl files of a project. It acts as a FS subscriber under supervision. NOTE: On Linux you need to install inotify-tools.

Current section

Files

Jump to
active_ex lib active_ex.ex
Raw

lib/active_ex.ex

defmodule ActiveEx do
use Supervisor
def start(), do: start([],[])
def start(_,_) do
Supervisor.start_link(__MODULE__, [], name: __MODULE__)
end
@impl true
def init(_init_arg) do
children = [
{ActiveEx.Events, []}
]
Supervisor.init(children, strategy: :one_for_one)
end
end