forked from meddle0x53/jason_structs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
51 lines (45 loc) · 1.15 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
defmodule JasonStructs.MixProject do
use Mix.Project
@version "0.3.0"
def project do
[
app: :jason_structs,
version: @version,
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
docs: [
extras: ["README.md"],
main: "readme",
source_ref: "v#{@version}",
source_url: "https://github.com/liveflow-io/jason_structs"
],
description:
"A Jason plugin library that adds the ability to encode and decode structs to and from JSON",
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:ex_doc, "~> 0.28", only: :dev},
{:dialyxir, "~> 1.2", only: [:dev], runtime: false},
{:jason, "~> 1.3"},
{:typed_struct, "~> 0.3"}
]
end
defp package do
%{
licenses: ["MIT"],
maintainers: ["Evan O'Brien (LiveFlow)"],
links: %{"GitHub" => "https://github.com/liveflow-io/jason_structs"}
}
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end