-
Notifications
You must be signed in to change notification settings - Fork 77
/
mix.exs
82 lines (74 loc) · 1.87 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
78
79
80
81
82
defmodule JSONAPI.Mixfile do
use Mix.Project
def project do
[
app: :jsonapi,
version: "1.8.3",
package: package(),
compilers: compilers(Mix.env()),
description: description(),
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
source_url: "https://github.com/beam-community/jsonapi",
deps: deps(),
dialyzer: dialyzer(),
docs: [
extras: [
"README.md"
],
main: "readme"
]
]
end
# Use Phoenix compiler depending on environment.
defp compilers(_), do: Mix.compilers()
# 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
[
{:plug, "~> 1.10"},
{:jason, "~> 1.0", optional: true},
{:ex_doc, "~> 0.20", only: :dev},
{:earmark, ">= 0.0.0", only: :dev},
{:credo, "~> 1.4", only: [:dev, :test], runtime: false},
{:phoenix, "~> 1.3", only: :test},
{:dialyxir, "~> 1.4.2", only: [:dev, :test], runtime: false}
]
end
defp package do
[
maintainers: [
"Jason Stiebs",
"Mitchell Henke",
"Jake Robers",
"Sean Callan",
"James Herdman",
"Mathew Polzin"
],
licenses: ["MIT"],
links: %{
github: "https://github.com/beam-community/jsonapi",
docs: "http://hexdocs.pm/jsonapi/"
}
]
end
defp description do
"""
Fully functional JSONAPI V1 Serializer as well as a QueryParser for Plug based projects and applications.
"""
end
end