-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmix.exs
77 lines (70 loc) · 1.89 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
defmodule JSONAPIPlug.Mixfile do
use Mix.Project
def project do
[
app: :jsonapi_plug,
version: "2.0.0",
package: package(),
description: "JSON:API library for Plug and Phoenix applications",
elixir: "~> 1.13",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
source_url: "https://github.com/lucacorti/jsonapi_plug",
deps: deps(),
dialyzer: dialyzer(),
docs: docs()
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def application do
[
extra_applications: [:logger]
]
end
defp dialyzer do
[
plt_file: {:no_warn, "priv/plts/dialyzer.plt"},
plt_add_deps: :app_tree
]
end
defp deps do
[
{:credo, "~> 1.0", only: :dev, runtime: false},
{:dialyxir, "~> 1.0", only: :dev, runtime: false},
{:ex_doc, "~> 0.20", only: :dev, runtime: false},
{:jason, "~> 1.0"},
{:nimble_options, "~> 1.0"},
{:plug, "~> 1.0"}
]
end
defp docs do
[
main: "readme",
extras: [
"README.md",
"guides/upgrading.md": [title: "Upgrading between major versions"],
"CHANGELOG.md": [title: "Changelog"]
],
groups_for_modules: [
Document: [~r/JSONAPIPlug\.Document.*/],
Resource: [~r/JSONAPIPlug\.Resource.*/],
Plugs: [~r/JSONAPIPlug\.Plug\..*/],
Ecto: [~r/JSONAPIPlug\.(Normalizer|QueryParser)\.Ecto.*/],
Parsers: [~r/JSONAPIPlug\.QueryParser.*/],
Behaviours: [~r/JSONAPIPlug\.(Normalizer|Pagination|QueryParser)/]
]
]
end
defp package do
[
maintainers: ["Luca Corti"],
licenses: ["MIT"],
links: %{
github: "https://github.com/lucacorti/jsonapi_plug"
}
]
end
end