Skip to content

Commit

Permalink
Make use of profiles to minimize downstream dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Fred Dushin <fred@dushin.net>
  • Loading branch information
fadushin committed Nov 18, 2023
1 parent 3c45d6b commit c83c4f3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
## All rights reserved.
##

all: compile doc etest
all: compile etest doc

compile:
rebar3 compile

doc:
rebar3 ex_doc
rebar3 as doc ex_doc

etest:
cd test && ./run.sh
Expand All @@ -18,4 +18,4 @@ clean:
rm -rf _build

publish: doc
rebar3 hex publish --doc-dir docs
rebar3 as publish hex publish --doc-dir docs
14 changes: 11 additions & 3 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@
{skip_undefined_reference_warnings_on, ["README.md"]}
]}.

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

{plugins, [rebar3_hex, rebar3_ex_doc]}.
{profiles, [
{doc, [
{plugins, [rebar3_ex_doc]}
]},
{publish, [
{plugins, [rebar3_hex, rebar3_ex_doc]},
{hex, [
{doc, #{provider => ex_doc}}
]}
]}
]}.

0 comments on commit c83c4f3

Please sign in to comment.