-
Generate
./rebar.config
from./sesterl.yaml
by Sesterl:$ sesterl config ./
The command above writes the following description to
rebar.config
:{plugins, [ {rebar_sesterl, {git, "https://github.com/gfngfn/rebar_sesterl_plugin.git", {branch, "master"}}} ]}. {src_dirs, ["src", "_generated"]}.
Here,
./src
is used not only for putting Sesterl sources but also forfoo.app.src
. -
Invoke:
$ rebar3 sesterl compile
Then, by using
./sesterl.yaml
, Sesterl generates Erlang code in./_generated
, beforerebar3
compiles the resulting Erlang code.You can also compile and run tests by:
$ rebar3 sesterl test