-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmix.exs
83 lines (76 loc) · 2 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
defmodule Exampple.MixProject do
use Mix.Project
def project do
[
app: :exampple,
version: "0.10.6",
description: "eXaMPPle is a XMPP Component Framework",
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
consolidate_protocols: Mix.env() != :test,
dialyzer: [plt_add_apps: [:mix]],
deps: deps(),
aliases: aliases(),
package: package(),
docs: docs(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.json": :test,
"coveralls.html": :test,
"coveralls.post": :test,
"coveralls.github": :test,
actions: :test
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :crypto, :ssl],
mod: {Exampple.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:gen_state_machine, "~> 3.0"},
{:saxy, "~> 1.3"},
{:telemetry, "~> 1.0"},
{:telemetry_poller, "~> 1.0"},
{:telemetry_metrics, "~> 0.6"},
{:uuid, "~> 1.1"},
{:ex_doc, ">= 0.0.0", optional: true, only: :dev},
{:dialyxir, "~> 1.0", optional: true, only: :dev, runtime: false},
{:excoveralls, "~> 0.14", optional: true, only: :test}
]
end
defp aliases do
[
actions: [
"local.hex --force",
"local.rebar --force",
"deps.get",
"coveralls.github"
]
]
end
defp package do
[
files: ["config", "lib", "mix.exs", "mix.lock", "README*", "COPYING*"],
maintainers: ["Manuel Rubio"],
licenses: ["LGPL 2.1"],
links: %{"GitHub" => "https://github.com/altenwald/exampple"}
]
end
defp docs do
[
main: "readme",
extras: ["README.md"]
]
end
end