Created
October 1, 2020 11:05
-
-
Save awalterschulze/c25f02be87aa1991c18145814df7ee4a to your computer and use it in GitHub Desktop.
erlfmt rebar example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clean: | |
rm -rf _build/default/plugins/erlfmt | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{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}"} | |
]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{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, []} | |
]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-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