{erl_opts, [debug_info]}.

{deps, []}.

{shell, [
    {apps, [beamtea]}
]}.

%% `rebar3 as examples shell` puts the example programs on the code path.
{profiles, [
    {examples, [
        {extra_src_dirs, ["examples"]}
    ]}
]}.

{eunit_opts, [verbose]}.

%% API docs: `rebar3 edoc` generates HTML into ./doc from the @doc/@spec
%% annotations on every module. `preprocess` is needed for the include file.
{edoc_opts, [
    {preprocess, true},
    {includes, ["include"]},
    {title, "beamtea"},
    {application, beamtea},
    {subpackages, false}
]}.

{xref_checks, [
    undefined_function_calls,
    locals_not_used,
    deprecated_function_calls
]}.

%% Publishing: `rebar3 hex publish` (needs `rebar3 hex user auth` first).
{project_plugins, [rebar3_hex, rebar3_ex_doc]}.

%% Docs for hexdocs.pm, built with ex_doc.
{ex_doc, [
    {source_url, <<"https://github.com/tsirysndr/beamtea">>},
    {extras, [<<"README.md">>, <<"LICENSE">>]},
    {main, <<"readme">>}
]}.

%% Hex package: ship the sources, examples, launcher and docs.
{hex, [
    {doc, ex_doc},
    {files, [
        "src",
        "include",
        "examples",
        "bin",
        "rebar.config",
        "rebar.lock",
        "README.md",
        "LICENSE",
        "Makefile"
    ]}
]}.
