Skip to content

gfngfn/rebar_sesterl_plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rebar_sesterl: A Rebar3 plugin for building Sesterl programs

How to use

  1. 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 for foo.app.src.

  2. Invoke:

    $ rebar3 sesterl compile

    Then, by using ./sesterl.yaml, Sesterl generates Erlang code in ./_generated, before rebar3 compiles the resulting Erlang code.

    You can also compile and run tests by:

    $ rebar3 sesterl test