-
Notifications
You must be signed in to change notification settings - Fork 52
/
mix.exs
73 lines (67 loc) · 1.83 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
defmodule ThousandIsland.MixProject do
use Mix.Project
def project do
[
app: :thousand_island,
version: "1.3.7",
elixir: "~> 1.13",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: dialyzer(),
name: "Thousand Island",
description: "A simple & modern pure Elixir socket server",
source_url: "https://github.com/mtrudel/thousand_island",
package: [
maintainers: ["Mat Trudel"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/mtrudel/thousand_island"},
files: ["lib", "mix.exs", "README*", "LICENSE*", "CHANGELOG*"]
],
docs: docs()
]
end
def application do
[extra_applications: [:logger, :ssl]]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps() do
[
{:telemetry, "~> 0.4 or ~> 1.0"},
{:machete, ">= 0.0.0", only: [:dev, :test]},
{:ex_doc, "~> 0.25", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:credo, "~> 1.5", only: [:dev, :test], runtime: false}
]
end
defp dialyzer do
[
plt_core_path: "priv/plts",
plt_file: {:no_warn, "priv/plts/dialyzer.plt"},
plt_add_deps: :apps_direct,
plt_add_apps: [:public_key],
flags: [
"-Werror_handling",
"-Wextra_return",
"-Wmissing_return",
"-Wunknown",
"-Wunmatched_returns",
"-Wunderspecs"
]
]
end
defp docs do
[
main: "ThousandIsland",
logo: "assets/ex_doc_logo.png",
groups_for_modules: [
Transport: [
ThousandIsland.Transport,
ThousandIsland.Transports.TCP,
ThousandIsland.Transports.SSL
]
]
]
end
end