Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gfngfn/rebar_sesterl_plugin

A Rebar3 plugin for compiling Sesterl programs (https://github.com/gfngfn/Sesterl)
https://github.com/gfngfn/rebar_sesterl_plugin

erlang rebar3-plugin sesterl

Last synced: about 2 months ago
JSON representation

A Rebar3 plugin for compiling Sesterl programs (https://github.com/gfngfn/Sesterl)

Awesome Lists containing this project

README

        

# `rebar_sesterl`: A Rebar3 plugin for building Sesterl programs

## How to use

1. Generate `./rebar.config` from `./sesterl.yaml` by Sesterl:

```console
$ sesterl config ./
```

The command above writes the following description to `rebar.config`:

```erlang
{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:

```console
$ 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:

```console
$ rebar3 sesterl test
```