Skip to content

Instantly share code, notes, and snippets.

@awalterschulze
Created October 1, 2020 11:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awalterschulze/c25f02be87aa1991c18145814df7ee4a to your computer and use it in GitHub Desktop.
Save awalterschulze/c25f02be87aa1991c18145814df7ee4a to your computer and use it in GitHub Desktop.
erlfmt rebar example
clean:
rm -rf _build/default/plugins/erlfmt
{erl_opts, [debug_info]}.
{deps, []}.
{escript_incl_apps, [example, getopt]}.
{escript_main_app, example}.
{escript_name, example}.
{minimum_otp_vsn, "21"}.
{erlc_compiler, [{recursive, false}]}.
{provider_hooks, [
{pre, [
{ct, escriptize}
]}
]}.
{profiles, [
{release, [
{deps, [getopt]},
{erl_opts, [no_debug_info, deterministic]}
]},
{test, [
{deps, [getopt]}
]}
]}.
{plugins, [
rebar3_path_deps,
{erlfmt, {path, "../erlfmt"}}
]}.
{erlfmt, [
write,
{files, "{src,include,test}/*.{hrl,erl,app.src}"}
]}.
{application, example, [
{description, "example"},
{vsn, "0.7.0"},
{registered, []},
{applications, [kernel, stdlib]},
{env, []},
{modules, []},
{licenses, ["Apache-2.0"]},
{links, [{"GitHub", "https://github.com/WhatsApp/example"}]},
{exclude_files, []}
]}.
-module(example).
-export([main/1]).
main(_Args) ->
io:format("hello~n", []).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment