%%-*- mode: erlang -*-

{minimum_otp_vsn, "23"}.

{project_plugins, [rebar3_hex, rebar3_ex_doc]}.

{deps, [
    {zotonic_stdlib, "~> 1.6"},
    {ranch, "~> 2.2"},
    {cowlib, "~> 2.16"},
    {cowboy, "~> 2.14"}
]}.

{profiles, [
    {test, [
        {xref_checks, [
            undefined_function_calls,
            locals_not_used,
            deprecated_function_calls
        ]},
        {xref_ignores, [
        ]},
		{plugins, [
            rebar3_proper
        ]},
		{deps, [{proper,"1.4.0"}]}
    ]},
	{edoc_private, [
		{edoc_opts, [
			{private, true}
		]}
	]},
	{check, [
	    {dialyzer, [
          {warnings, [
              no_return
          ]}
        ]},
		{erl_opts, [
			debug_info
		]}
	]
	}
]}.


{edoc_opts, [
    {preprocess, true}, {stylesheet, "style.css"}
]}.

{hex, [
    {doc, #{provider => ex_doc}}
]}.

{ex_doc, [
    {extras, [
          {"README.md", #{title => "Overview"}},
          {"LICENSE", #{title => "License"}}
    ]},
    {main, "README.md"},
    {source_url, "https://github.com/zotonic/cowmachine"},
    {assets, #{ "assets" => "assets" }},
    {api_reference, true}
]}.