-
Notifications
You must be signed in to change notification settings - Fork 3
/
mix.exs
85 lines (77 loc) · 1.81 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
defmodule Solana.SPL.MixProject do
use Mix.Project
@source_url "https://github.com/dcrck/solana-spl-elixir"
@version "0.1.1"
def project do
[
app: :solana_spl,
description: description(),
version: @version,
elixir: "~> 1.12",
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
name: "Solana.SPL",
source_url: @source_url,
homepage_url: @source_url,
deps: deps(),
docs: docs()
]
end
def application do
[
extra_applications: [:logger]
]
end
def elixirc_paths(:test), do: ["lib", "test/support"]
def elixirc_paths(_), do: ["lib"]
defp description do
"A library for interacting with the Solana Program Library's programs."
end
defp package do
[
maintainers: ["Derek Meer"],
licenses: ["MIT"],
links: %{
"SourceHut" => "https://git.sr.ht/~dcrck/solana-spl",
"GitHub" => @source_url
}
]
end
defp deps do
[
# base solana interface
{:solana, "~> 0.2.0"},
# docs and testing
{:ex_doc, "~> 0.25.5", only: :dev, runtime: false},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false}
]
end
defp docs do
[
main: "readme",
source_ref: "v#{@version}",
source_url: @source_url,
extras: ["README.md", "LICENSE"],
groups_for_modules: [
"Token Swap": [
Solana.SPL.TokenSwap
],
"Associated Token": [
Solana.SPL.AssociatedToken
],
Token: [
Solana.SPL.Token,
Solana.SPL.Token.Mint,
Solana.SPL.Token.MultiSig
],
Governance: [
Solana.SPL.Governance
]
],
nest_modules_by_prefix: [
Solana.SPL.Token
]
]
end
end