-
Notifications
You must be signed in to change notification settings - Fork 8
/
mix.exs
64 lines (54 loc) · 1.42 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
defmodule XDR.Mixfile do
use Mix.Project
@name :xdr
@version "0.2.0"
@deps [
{:math, "~> 0.3.0"},
{:ok, github: "sunny-g/ok"},
]
@dev_deps [
{:credo, "~> 0.8", only: [:dev, :test], runtime: false},
{:ex_doc, ">0.0.0", only: [:dev, :test], runtime: false},
{:mix_test_watch, "~> 0.3", only: [:dev, :test], runtime: false},
]
@maintainers ["Sunny G"]
@github "https://github.com/sunny-g/xdr"
@description """
XDR encoded data structures (RFC 4506) in Elixir
"""
# ------------------------------------------------------------
def project do
in_production = Mix.env == :prod
[ app: @name,
version: @version,
elixir: "~> 1.6",
deps: @deps ++ @dev_deps,
build_embedded: in_production,
start_permanent: in_production,
description: @description,
docs: [
main: "readme",
source_url: @github,
extras: ["README.md"],
],
package: package(),
]
end
def application do
# built-in apps that need starting
[ extra_applications: [
:logger,
],
]
end
defp package do
[ name: @name,
files: ["lib", "mix.exs", "README.md"],
maintainers: @maintainers,
licenses: ["MIT"],
links: %{
"GitHub" => @github,
},
]
end
end