Skip to content

erlang-one/active

This branch is 67 commits behind 5HT/active:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5811b75 · Mar 3, 2017

History

66 Commits
Sep 11, 2015
Sep 17, 2016
May 10, 2014
May 13, 2014
Jan 21, 2016
Jun 3, 2016
Mar 3, 2017

Repository files navigation

ACTIVE

Active is a sync replacement that uses native file-system OS async listeners to compile and reload Erlang files, DTL templates and other files. It acts as FS subscriber under supervision and uses mad under the hood.

Listen Folders

One-level

app(App,["ebin",Module|_]) -> load_ebin(App,Module);
app(App,["priv"|_]) -> compile(App);
app(App,["src"|_]) -> compile(App);
app(_,_)-> ok.

Two-level

otp(["deps",App|Rest]) -> app(App,Rest);
otp(["apps",App|Rest]) -> app(App,Rest);
otp([Some|Path]) -> app(top(),[Some|Path]);
otp(_) -> ok.

Usage

On Mac/Linux/Windows just include into your rebar.config:

{active, ".*", {git, "git://github.com/synrc/active", {tag,"1.9"}}}

NOTE: on Linux please install inotify-tools.

Credits

  • Maxim Sokhatsky
  • Vladimir Kirillov

OM A HUM

Packages

No packages published

Languages

  • Erlang 94.3%
  • Elixir 5.7%