Emerge.Runtime.CodeReloader (Emerge v0.1.0)

Copy Markdown View Source

Watches Elixir source files, recompiles selected Mix apps, and rerenders live viewports.

The reloader is opt-in and configured entirely through child options.

Summary

Functions

Returns a specification to start this module under a supervisor.

Types

start_opt()

@type start_opt() ::
  {:dirs, [Path.t()]}
  | {:reloadable_apps, [atom()]}
  | {:debounce_ms, non_neg_integer()}
  | {:watcher, module()}
  | {:watcher_opts, keyword()}
  | {:compiler, module()}
  | {:compiler_opts, keyword()}
  | {:reloadable_compilers, [atom()]}
  | {:reloadable_args, [String.t()]}
  | {:mix_listener, module() | nil}
  | GenServer.option()

Functions

child_spec(init_arg)

@spec child_spec([start_opt()]) :: Supervisor.child_spec()

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)

@spec start_link([start_opt()]) :: GenServer.on_start()