forked from tino415/typed_struct_ecto_changeset
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
60 lines (53 loc) · 1.26 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
defmodule TypedStructEctoChangeset.MixProject do
@moduledoc false
use Mix.Project
def project do
[
app: :typed_struct_ecto_changeset,
version: "1.0.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
docs: [
extras: ["README.md"]
],
aliases: aliases()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
defp description() do
"Plugin for typed struct to integrate with changeset"
end
defp package() do
[
licenses: ["MIT"],
links: %{"Github" => "https://github.com/tino415/typed_struct_ecto_changeset"}
]
end
defp deps do
[
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.3", only: [:dev], runtime: false},
{:ecto, "~> 3.10", only: [:test]},
{:ex_doc, "~> 0.29", only: [:dev], runtime: false},
{:typed_struct, "~> 0.3.0", only: [:dev], runtime: false}
]
end
defp aliases do
[
"dev.checks": [
"format",
"compile --warnings-as-errors --all-warnings",
"credo --strict",
"dialyzer"
]
]
end
end