-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
84 lines (77 loc) · 2.28 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
defmodule Tezex.MixProject do
use Mix.Project
@version "3.0.1"
@url_docs "http://hexdocs.pm/tezex"
@url_github "https://github.com/objkt-com/tezex"
def project do
[
app: :tezex,
version: @version,
elixir: "~> 1.13",
elixirc_paths: elixirc_paths(Mix.env()),
description: description(),
package: package(),
deps: deps(),
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"test.watch": :test
],
docs: [
source_ref: "v#{@version}",
source_url: @url_github,
main: "readme",
extras: ["README.md"]
],
dialyzer: [
plt_add_apps: [:mix, :crypto],
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
]
]
end
defp description() do
"A collection of utils to work with the Tezos blockchain using Elixir: parsing Micheline, verifying Tezos signed messages, deriving Tezos wallet addresses from public key, etc."
end
defp package() do
[
name: "tezex",
links: %{
"Docs" => @url_docs,
"GitHub" => @url_github
},
licenses: ["MIT"],
files: ~w(lib .formatter.exs mix.exs README* LICENSE*)
]
end
# Configuration for the OTP application.
#
# Run "mix help compile.app" to learn about applications.
def application do
[
mod: {Tezex.Application, []},
extra_applications: [:logger, :crypto]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/fixtures"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:base_58_check, "~> 1.0"},
{:blake2, "~> 1.0"},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:ex_doc, "~> 0.27", only: :dev, runtime: false},
{:ex_unit_notifier, "~> 1.2", only: :test},
{:excoveralls, "~> 0.15.1", only: :test},
{:finch, "~> 0.10"},
{:jason, "~> 1.4"},
{:mix_test_watch, "~> 1.0", only: [:dev, :test], runtime: false},
{:ssl_verify_fun, "~> 1.1.0", [env: :prod, hex: "ssl_verify_fun", repo: "hexpm"]}
]
end
end