-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
94 lines (81 loc) · 1.94 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
87
88
89
90
91
92
93
94
defmodule Nostr.Server.MixProject do
use Mix.Project
@version "0.1.0"
def project do
[
# Library
app: :nostr_server,
version: @version,
# Elixir
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
consolidate_protocols: Mix.env() != :test,
deps: deps(),
# Documentation
name: "Nostr Server",
source_url: "https://github.com/Sgiath/nostr-server",
homepage_url: "https://sgiath.dev/nostr",
description: description(),
package: package(),
docs: docs()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:nostr_lib, github: "Sgiath/nostr-lib"},
{:bandit, "~> 0.6"},
# Documentation
{:ex_doc, "~> 0.29", only: :dev, runtime: false},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:mix_test_watch, "~> 1.1", only: :dev, runtime: false}
]
end
# Documentation
defp description do
"Library which implements Nostr server"
end
defp package do
[
name: "nostr_server",
maintainers: ["Sgiath <nostr@sgiath.dev>"],
files: ~w(lib .formatter.exs mix.exs README* LICENSE* CHANGELOG*),
licenses: ["WTFPL"],
links: %{
"GitHub" => "https://github.com/Sgiath/nostr-server",
"Nostr specs" => "https://github.com/nostr-protocol/nips"
}
]
end
defp docs do
[
authors: [
"Sgiath <nostr@sgiath.dev>"
],
main: "overview",
formatters: ["html"],
extra_section: "Guides",
extras: extras(),
groups_for_extras: groups_for_extras()
]
end
defp extras do
[
# Introduction
"docs/introduction/overview.md",
"docs/introduction/installation.md",
# Guides
"docs/guides/basic-usage.md"
]
end
defp groups_for_extras do
[
Introduction: ~r/docs\/introduction\/.?/,
Guides: ~r/docs\/guides\/.?/
]
end
end