-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
59 lines (53 loc) · 1.46 KB
/
mix.exs
File metadata and controls
59 lines (53 loc) · 1.46 KB
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
defmodule Together.MixProject do
use Mix.Project
def project do
[
app: :together,
version: "0.1.0",
elixir: "~> 1.18",
start_permanent: Mix.env() == :prod,
deps: deps(),
# Docs
docs: docs(),
name: "Together Elixir Common",
source_url: "https://github.com/togethercomputer/elixir-common",
homepage_url: "https://github.com/togethercomputer/elixir-common",
# Dialyzer
dialyzer: [
# Put the project-level PLT in the priv/ directory (instead of the default _build/ location)
plt_file: {:no_warn, "priv/plts/project.plt"},
plt_add_apps: [:ex_unit, :mix]
]
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:ecto, "~> 3.5", optional: true},
# Available in `test` to avoid recompilation in CI just for docs
{:ex_doc, "~> 0.38", only: [:dev, :test], runtime: false}
]
end
defp docs do
[
main: "readme",
extras: [
"README.md": [title: "Introduction"],
"CODE_OF_CONDUCT.md": [title: "Code of Conduct"],
"CONTRIBUTING.md": [title: "Contributing"],
LICENSE: [title: "License"]
],
formatters: ["html"],
groups_for_modules: [
Testing: [~r/Together.Test/]
],
source_ref: "main"
]
end
end