-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
86 lines (79 loc) · 2.22 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 ExUcan.MixProject do
use Mix.Project
def project do
[
app: :ucan,
version: "0.10.2",
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
consolidate_protocols: Mix.env() != :test,
elixirc_paths: elixirc_paths(Mix.env()),
description: """
Elixir implementation of UCANs
""",
test_coverage: [
summary: [
threshold: 80
],
ignore_modules: [
Ucan.Core.Structs.Ucan,
Ucan.UcanHeader,
Ucan.UcanPayload,
Inspect.Ucan.Keymaterial.Ed25519.Keypair,
String.Chars.Ucan.WnfsCapLevel,
String.Chars.Ucan.WnfsScope,
Ucan.Capability.Resource,
Ucan.Capability.Resource.As,
Ucan.Capability.Resource.My,
Ucan.Capability.Resource.ResourceType,
Ucan.Capability.Scope.Ucan.ProofSelection,
Ucan.Capability.Scope.Ucan.WnfsScope,
Ucan.EmailAction,
Ucan.EmailAddress,
Ucan.Utility.Convert.Ucan.WnfsCapLevel,
Ucan.Utility.Convert.Ucan.WnfsScope,
Ucan.Utility.PartialOrder.Ucan.ProofAction,
Ucan.Utility.PartialOrder.Ucan.WnfsCapLevel,
Ucan.WnfsCapLevel,
Ucan.WnfsScope,
Ucan.WnfsSemantics
]
],
source_url: "https://github.com/tuning-tech/ex-ucan",
package: package()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :public_key]
]
end
def cli() do
[preferred_envs: [sanity: :test]]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:b58, "~> 1.0.2"},
{:excid, git: "https://github.com/madclaws/cid.git"},
{:ex_doc, "~> 0.16", only: :dev, runtime: false}
]
end
defp package do
[
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/tuning-tech/ex-ucan"}
]
end
defp aliases() do
[
sanity: ["test", "format", "credo --strict"]
]
end
defp elixirc_paths(:test), do: ["lib", "test/fixtures"]
defp elixirc_paths(_), do: ["lib"]
end