-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
60 lines (52 loc) · 1.28 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
defmodule Nexus.MixProject do
use Mix.Project
@version "0.5.0"
@source_url "https://github.com/zoedsoupe/nexus"
def project do
[
app: :nexus_cli,
version: @version,
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
escript: [main_module: Escript.Example],
package: package(),
source_url: @source_url,
description: description(),
elixirc_paths: elixirc_paths(Mix.env())
]
end
def application do
[extra_applications: [:logger]]
end
defp elixirc_paths(:dev), do: ["lib", "examples/"]
defp elixirc_paths(:test), do: ["lib", "examples/"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:ex_doc, "~> 0.27", only: :dev, runtime: false},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false}
]
end
defp package do
%{
name: "nexus_cli",
licenses: ["WTFPL"],
contributors: ["zoedsoupe"],
links: %{"GitHub" => @source_url},
files: ~w(lib/nexus lib/nexus.ex LICENSE README.md mix.* examples)
}
end
defp docs do
[
main: "readme",
extras: ["README.md"]
]
end
defp description do
"""
An `Elixir` library to write command line apps in a cleaner and elegant way!
"""
end
end