fork https://github.com/synrc/active

221V 4d1b96ce43 upd readme 3 years ago
ebin 05d9dc7690 compiling without mad, with Emakefile 3 years ago
include 0c82d62f3f active v1.9 init 3 years ago
src 05d9dc7690 compiling without mad, with Emakefile 3 years ago
.gitignore 0c82d62f3f active v1.9 init 3 years ago
LICENSE 0c82d62f3f active v1.9 init 3 years ago
README.md 4d1b96ce43 upd readme 3 years ago

README.md

ACTIVE: Continuous Compilation - https://github.com/synrc/active v1.9 fork (upd to v6.1)

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 Emakefile.

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 put this app into your apps|deps dir;
add next code into your sys.config
for compiling erlydtl templates in apps/yor_app/priv/templates/

{active,
 [{compile_on_templates, true}]}

NOTE: on Linux please install inotify-tools.

Credits

  • Maxim Sokhatsky
  • Vladimir Kirillov

OM A HUM