forked from satoren/serde_rustler
-
Notifications
You must be signed in to change notification settings - Fork 4
/
mix.exs
63 lines (54 loc) · 1.6 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
defmodule SerdeRustler.Mixfile do
@moduledoc false
use Mix.Project
@name :serde_rustler
@version "0.0.1"
@description """
"""
@github "https://github.com/sunny-g/serde_rustler"
@files ["mix.exs", "mix.lock", "lib", "test", "README.md"]
@maintainers ["Sunny G"]
@licenses ["MIT"]
# ------------------------------------------------------------
def project do
in_production = Mix.env == :prod
[ app: @name,
version: @version,
description: @description,
elixir: "~> 1.8",
docs: docs(),
package: package(),
deps: deps() ++ dev_deps(),
build_embedded: in_production,
start_permanent: in_production,
]
end
defp deps() do
[ {:serde_rustler_tests, path: __DIR__ <> "/serde_rustler_tests"},
]
end
defp dev_deps() do
[ {:credo, "~> 1.0.0", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 0.5", only: [:dev], runtime: false},
{:ex_doc, "~> 0.19", only: [:dev], runtime: false},
{:inch_ex, github: "rrrene/inch_ex", only: [:dev, :test], runtime: false},
{:mix_test_watch, "~> 0.8", only: [:dev], runtime: false},
]
end
defp package do
[ name: @name,
files: @files,
maintainers: @maintainers,
licenses: @licenses,
links: %{
"GitHub" => @github,
},
]
end
defp docs do
[ main: "readme",
source_url: @github,
extras: ["README.md"],
]
end
end