-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
133 lines (127 loc) · 3.24 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
defmodule GitHub.MixProject do
use Mix.Project
@version "0.3.3"
@source_url "https://github.com/aj-foster/open-api-github"
def project do
[
app: :oapi_github,
version: @version,
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
name: "GitHub REST API Client",
source_url: @source_url,
homepage_url: @source_url,
deps: deps(),
docs: docs(),
package: package()
]
end
def application do
if Mix.env() == :prod do
[
extra_applications: [:logger]
]
else
[
extra_applications: [:logger, :hackney]
]
end
end
defp deps do
[
{:ex_doc, "~> 0.29", only: :dev, runtime: false},
{:faker, "~> 0.15"},
{:jason, "~> 1.0", optional: true},
{:jose, "~> 1.0", optional: true},
{:httpoison, "~> 1.7 or ~> 2.0", optional: true},
{:oapi_generator, github: "aj-foster/open-api-generator", only: :dev, runtime: false},
{:opentelemetry_api, "~> 1.0", optional: true},
{:opentelemetry_semantic_conventions, "~> 0.2", optional: true},
{:plug, "~> 1.0", optional: true},
{:redix, "~> 1.0", optional: true},
{:telemetry, "~> 0.4.2 or ~> 1.0"}
]
end
defp docs do
[
main: "readme",
extras: [
"README.md": [title: "Overview"],
"guides/telemetry.md": [title: "Telemetry"],
"CODE_OF_CONDUCT.md": [title: "Code of Conduct"],
"CONTRIBUTING.md": [title: "Contributing"],
LICENSE: [title: "License"]
],
groups_for_modules: [
Client: [
GitHub,
GitHub.Auth,
GitHub.Config,
GitHub.Error,
GitHub.Operation,
GitHub.Webhook
],
Testing: [
~r/GitHub.Testing/,
GitHub.Plugin.TestClient
],
Plugins: ~r/GitHub.Plugin/,
Operations: [
GitHub.Actions,
GitHub.Activity,
GitHub.Apps,
GitHub.Billing,
GitHub.Checks,
GitHub.Classroom,
GitHub.CodeScanning,
GitHub.CodesOfConduct,
GitHub.Codespaces,
GitHub.Copilot,
GitHub.Dependabot,
GitHub.DependencyGraph,
GitHub.Emojis,
GitHub.Gists,
GitHub.Git,
GitHub.Gitignore,
GitHub.Interactions,
GitHub.Issues,
GitHub.Licenses,
GitHub.Markdown,
GitHub.Meta,
GitHub.Migrations,
GitHub.Oidc,
GitHub.Orgs,
GitHub.Packages,
GitHub.Projects,
GitHub.Pulls,
GitHub.RateLimit,
GitHub.Reactions,
GitHub.Repos,
GitHub.Search,
GitHub.SecretScanning,
GitHub.SecurityAdvisories,
GitHub.Teams,
GitHub.Users
],
Schemas: ~r//
]
]
end
defp package do
[
description: "GitHub REST API Client for Elixir",
files: [
".api-version",
".formatter.exs",
"guides",
"lib",
"LICENSE",
"mix.exs",
"README.md"
],
licenses: ["MIT"],
links: %{"GitHub" => @source_url, "Sponsor" => "https://github.com/sponsors/aj-foster"},
maintainers: ["AJ Foster"]
]
end
end