-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
mix.exs
86 lines (78 loc) · 2.12 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
83
84
85
86
defmodule StellarBase.MixProject do
use Mix.Project
@github_url "https://github.com/kommitters/stellar_base"
@version "0.16.0"
def project do
[
app: :stellar_base,
version: @version,
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
name: "Elixir Stellar Base",
description: description(),
source_url: @github_url,
package: package(),
docs: docs(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:elixir_xdr, "~> 0.3"},
{:crc, "~> 0.10.0"},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.18.1", only: :test, runtime: false},
{:castore, "~> 1.0"},
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.34", only: :dev, runtime: false}
]
end
defp description do
"""
Low-level elixir library to read, write, hash, and sign XDR primitive constructs used in the Stellar network.
"""
end
defp package do
[
description: description(),
files: ["lib", "config", "mix.exs", "README*", "LICENSE"],
licenses: ["MIT"],
links: %{
"Changelog" => "#{@github_url}/blob/master/CHANGELOG.md",
"GitHub" => @github_url,
"Sponsor" => "https://github.com/sponsors/kommitters"
}
]
end
defp docs do
[
main: "readme",
name: "Elixir Stellar Base",
source_ref: "v#{@version}",
source_url: @github_url,
canonical: "http://hexdocs.pm/stellar_base",
extras: ["README.md", "CHANGELOG.md", "CONTRIBUTING.md"],
groups_for_modules: groups_for_modules()
]
end
defp groups_for_modules do
[
XDR: ~r/^StellarBase\.XDR\./,
StrKey: ~r/^StellarBase\.StrKey*/
]
end
end