-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
120 lines (110 loc) · 2.8 KB
/
mix.exs
File metadata and controls
120 lines (110 loc) · 2.8 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
defmodule OCI.MixProject do
use Mix.Project
def project do
[
app: :oci,
version: "0.1.0",
elixir: "~> 1.15",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
description:
"A Plug-based implementation of the OCI Distribution Specification (v2) registry server for Elixir applications. Provides a compliant HTTP API for container image distribution, supporting pull, push, and management operations.",
source_url: "https://github.com/massdriver-cloud/oci",
homepage_url: "https://github.com/massdriver-cloud/oci",
docs: docs(),
aliases: aliases(),
dialyzer: dialyzer(),
test_coverage: [
tool: ExCoveralls,
filter: [
"test/support/*",
"lib/oci/inspector.ex"
]
]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def cli do
[
preferred_envs: [
"coveralls.detail": :test,
"coveralls.html": :test,
"coveralls.post": :test,
coveralls: :test,
qa: :test,
test: :test
]
]
end
defp dialyzer do
[
plt_file: {:no_warn, "priv/plts/dialyzer.plt"},
plt_add_apps: [:mix, :iex, :ex_unit],
ignore_warnings: ".dialyzer_ignore.exs"
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:jason, "~> 1.4"},
{:plug, ">= 1.10.0 and < 2.0.0"},
{:typed_struct, "~> 0.3"},
{:uuid, "~> 1.1"},
# Dev dependencies
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.29", only: [:test, :dev], runtime: false},
{:excoveralls, "~> 0.18", only: [:test, :dev]},
{:mix_test_watch, "~> 1.1", only: [:dev, :test], runtime: false},
{:plug_cowboy, "~> 2.7", only: [:test, :dev]},
{:phoenix, ">= 1.5.0 and < 2.0.0", only: [:test, :dev]},
{:temp, "~> 0.4", only: [:test, :dev]}
]
end
defp aliases do
[
qa: [
"test",
"credo",
"dialyzer",
"docs"
]
]
end
defp package do
[
name: "oci",
licenses: ["Apache-2.0"],
links: %{
"GitHub" => "https://github.com/massdriver-cloud/oci"
},
files: [
"lib",
"mix.exs",
"README.md",
"assets",
"LICENSE"
]
]
end
defp docs do
[
main: "readme",
logo: "assets/logo.png",
extras: [
"README.md",
"LICENSE"
]
]
end
end