-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
81 lines (74 loc) · 1.93 KB
/
Copy pathmix.exs
File metadata and controls
81 lines (74 loc) · 1.93 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
defmodule EctoTypedSchema.MixProject do
use Mix.Project
@version "0.2.0"
@source_url "https://github.com/elixir-typed-structor/ecto_typed_schema"
def project do
[
app: :ecto_typed_schema,
elixir: "~> 1.17",
description: "Auto-generate accurate @type t() specs from your Ecto schema definitions.",
version: @version,
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
consolidate_protocols: Mix.env() != :test,
deps: deps(),
name: "EctoTypedSchema",
source_url: @source_url,
homepage_url: @source_url,
docs: [
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
extras: [
{"README.md", [title: "Introduction"]},
"LICENSE"
],
skip_undefined_reference_warnings_on: ["Ecto.Association"],
groups_for_docs: [
Schema: &(&1[:group] == "Schema"),
"Fields and Associations": &(&1[:group] == "Fields and Associations"),
"Type Customization": &(&1[:group] == "Type Customization")
]
],
package: [
name: "ecto_typed_schema",
licenses: ["MIT"],
links: %{
"GitHub" => @source_url
}
],
dialyzer: [
plt_add_apps: [:ex_unit]
],
aliases: aliases()
]
end
def cli do
[preferred_envs: [precommit: :test]]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:typed_structor, "~> 0.6"},
{:ecto, "~> 3.10"},
{:ex_doc, "~> 0.31", only: :dev, runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp aliases do
[
precommit: [
"format",
"compile --warnings-as-errors",
"dialyzer",
"test"
]
]
end
end