-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
98 lines (90 loc) · 2.49 KB
/
mix.exs
File metadata and controls
98 lines (90 loc) · 2.49 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
defmodule Apix.Schema.MixProject do
use Mix.Project
def project do
[
app: :apix_schema,
version: "0.1.0",
elixir: "~> 1.15",
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
dialyzer: dialyzer(),
docs: docs(),
test_coverage: test_coverage(),
aliases: aliases()
]
end
def application do
[
mod: {Apix.Schema.Application, []},
extra_applications: [:logger]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:ex_check, "~> 0.14.0", only: [:dev, :test], runtime: false},
{:mix_machine, github: "florius0/mix_machine"},
{:credo, ">= 0.0.0", only: [:dev, :test], runtime: false},
{:dialyxir, ">= 0.0.0", only: [:dev, :test], runtime: false},
{:doctor, ">= 0.0.0", only: [:dev, :test], runtime: false},
{:ex_doc, ">= 0.0.0", only: [:dev, :test], runtime: false},
{:sobelow, ">= 0.0.0", only: [:dev, :test], runtime: false},
{:mix_audit, ">= 0.0.0", only: [:dev, :test], runtime: false}
]
end
defp dialyzer do
[
plt_add_apps: [:mix, :elixir]
]
end
defp docs do
[
name: inspect(Apix.Schema),
source_url: "https://github.com/florius0/schema",
homepage_url: "https://github.com/florius0/schema",
groups_for_modules: [
# Apix.Schema
Architecture: [
Apix.Schema.Ast,
Apix.Schema.Ast.Meta,
Apix.Schema.Context,
Apix.Schema.Error,
Apix.Schema.Extension,
Apix.Schema.Validator,
Apix.Schema.Warning
],
Extensions: [
Apix.Schema.Extensions.TypeGraph,
Apix.Schema.Extensions.Core,
Apix.Schema.Extensions.Core.LocalReference,
Apix.Schema.Extensions.Elixir
],
Internal: [
Apix.Schema.Extensions.TypeGraph.Definition,
Apix.Schema.Extensions.TypeGraph.Dot,
Apix.Schema.Extensions.TypeGraph.Graph,
Apix.Schema.Extensions.TypeGraph.OnCompilation
]
],
nest_modules_by_prefix: [
Apix.Schema,
Apix.Schema.Extensions
]
]
end
defp test_coverage do
[
ignore_modules: [
Apix.Schema.Extensions.TypeGraph.Definition,
Apix.Schema.Extensions.TypeGraph.Dot,
Apix.Schema.Extensions.TypeGraph.Graph
]
]
end
defp aliases do
[
check: ["cmd rm -rf reports", "check --manifest reports/manifest"]
]
end
end