-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathmix.exs
More file actions
84 lines (79 loc) · 2.18 KB
/
mix.exs
File metadata and controls
84 lines (79 loc) · 2.18 KB
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 Nosedrum.MixProject do
use Mix.Project
def project do
[
app: :nosedrum,
version: "0.6.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
source_url: "https://github.com/jchristgit/nosedrum",
homepage_url: "https://github.com/jchristgit/nosedrum",
deps: deps(),
docs: docs(),
package: package()
]
end
def package do
[
description: "A command framework for nostrum",
licenses: ["ISC"],
links: %{
"Documentation" => "https://hexdocs.pm/nosedrum",
"GitHub" => "https://github.com/jchristgit/nosedrum"
},
maintainers: ["Johannes Christ"]
]
end
defp docs do
[
# ???
source_ref: "master",
groups_for_docs: [
Evaluation: &(&1[:section] == :evaluation),
Predicates: &(&1[:section] == :predicates)
],
groups_for_modules: [
"Application Commands": [
Nosedrum.ApplicationCommand,
Nosedrum.Storage,
Nosedrum.Storage.Dispatcher
],
"Component Handler": [
Nosedrum.ComponentHandler,
Nosedrum.ComponentInteraction
],
Functionality: [Nosedrum.Converters, Nosedrum.Helpers, Nosedrum.TextCommand.Predicates],
Behaviours: [
Nosedrum.TextCommand,
Nosedrum.TextCommand.Invoker,
Nosedrum.MessageCache,
Nosedrum.TextCommand.Storage
],
Implementations: [
Nosedrum.TextCommand.Invoker.Split,
Nosedrum.MessageCache.Agent,
Nosedrum.MessageCache.ETS,
Nosedrum.TextCommand.Storage.ETS,
Nosedrum.ComponentHandler.ETS
]
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:nostrum]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:nostrum, "~> 0.10.1"},
# {:nostrum, "Kraigie/nostrum"},
# {:nostrum, path: "../nostrum"},
{:ex_doc, "~> 0.23", only: :dev, runtime: false},
{:credo, "~> 1.4", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.3", only: [:dev], runtime: false}
]
end
end