forked from absinthe-graphql/absinthe
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
215 lines (204 loc) · 5.62 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
defmodule Absinthe.Mixfile do
use Mix.Project
@source_url "https://github.com/absinthe-graphql/absinthe"
@version "1.7.0"
def project do
[
app: :absinthe,
version: @version,
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
package: package(),
source_url: @source_url,
preferred_cli_env: [
dialyzer: :test
],
docs: [
source_ref: "v#{@version}",
main: "overview",
logo: "logo.png",
extra_section: "GUIDES",
assets: "guides/assets",
formatters: ["html", "epub"],
groups_for_modules: groups_for_modules(),
extras: extras(),
groups_for_extras: groups_for_extras()
],
deps: deps(),
dialyzer: [
plt_core_path: "priv/plts",
plt_add_apps: [:mix, :dataloader, :decimal, :ex_unit]
]
]
end
defp package do
[
description: "GraphQL for Elixir",
files: [
"lib",
"src/absinthe_parser.yrl",
"priv",
"mix.exs",
"README.md",
"CHANGELOG.md",
".formatter.exs"
],
maintainers: [
"Bruce Williams",
"Ben Wilson",
"Vince Foley"
],
licenses: ["MIT"],
links: %{
Website: "https://absinthe-graphql.org",
Changelog: "#{@source_url}/blob/master/CHANGELOG.md",
GitHub: @source_url
}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def application do
[extra_applications: [:crypto, :logger]]
end
defp deps do
[
{:nimble_parsec, "~> 1.2.2 or ~> 1.3.0"},
{:telemetry, "~> 1.0 or ~> 0.4"},
{:dataloader, "~> 1.0.0", optional: true},
{:decimal, "~> 1.0 or ~> 2.0", optional: true},
{:ex_doc, "~> 0.22", only: :dev},
{:benchee, ">= 1.0.0", only: :dev},
{:dialyxir, "~> 1.1.0", only: [:dev, :test], runtime: false},
{:mix_test_watch, "~> 1.0", only: :dev, runtime: false},
{:makeup_graphql, "~> 0.1.0", only: :dev}
]
end
#
# Documentation
#
defp extras do
[
"guides/introduction/overview.md",
"guides/introduction/installation.md",
"guides/introduction/learning.md",
"guides/introduction/community.md",
"guides/tutorial/start.md",
"guides/tutorial/our-first-query.md",
"guides/tutorial/query-arguments.md",
"guides/tutorial/mutations.md",
"guides/tutorial/complex-arguments.md",
"guides/tutorial/conclusion.md",
"guides/schemas.md",
"guides/plug-phoenix.md",
"guides/middleware-and-plugins.md",
"guides/errors.md",
"guides/batching.md",
"guides/dataloader.md",
"guides/context-and-authentication.md",
"guides/subscriptions.md",
"guides/custom-scalars.md",
"guides/importing-types.md",
"guides/importing-fields.md",
"guides/variables.md",
"guides/introspection.md",
"guides/telemetry.md",
"guides/deprecation.md",
"guides/adapters.md",
"guides/complexity-analysis.md",
"guides/file-uploads.md",
"guides/testing.md",
"guides/client/javascript.md",
"guides/client/apollo.md",
"guides/client/relay.md",
"guides/upgrading/v1.4.md",
"guides/upgrading/v1.5.md",
"CHANGELOG.md"
]
end
defp groups_for_extras do
[
Introduction: ~r/guides\/introduction\/.*/,
Tutorial: ~r/guides\/tutorial\/.*/,
Topics: ~r/guides\/[^\/]+\.md/,
"Client Guides": ~r/guides\/client\/.*/,
"Upgrade Guides": ~r/guides\/upgrading\/.*/,
Changelog: "CHANGELOG.md"
]
end
defp groups_for_modules do
# Ungrouped:
# - Absinthe
[
"Schema Definition and Types": [
Absinthe.Schema,
Absinthe.Schema.Hydrator,
Absinthe.Schema.Notation,
Absinthe.Schema.Prototype,
Absinthe.Resolution.Helpers,
Absinthe.Type,
Absinthe.Type.Custom,
Absinthe.Type.Argument,
Absinthe.Type.Directive,
Absinthe.Type.Enum,
Absinthe.Type.Enum.Value,
Absinthe.Type.Field,
Absinthe.Type.InputObject,
Absinthe.Type.Interface,
Absinthe.Type.List,
Absinthe.Type.NonNull,
Absinthe.Type.Object,
Absinthe.Type.Scalar,
Absinthe.Type.Union
],
"Middleware and Plugins": [
Absinthe.Middleware,
Absinthe.Plugin,
Absinthe.Middleware.Async,
Absinthe.Middleware.Batch,
Absinthe.Middleware.Dataloader,
Absinthe.Middleware.MapGet,
Absinthe.Middleware.PassParent,
Absinthe.Middleware.Telemetry
],
Subscriptions: [
Absinthe.Subscription,
Absinthe.Subscription.Pubsub,
Absinthe.Subscription.Local,
Absinthe.Subscription.PipelineSerializer
],
Extensibility: [
Absinthe.Pipeline,
Absinthe.Phase,
Absinthe.Phase.Document.Context,
Absinthe.Phase.Telemetry
],
"Document Adapters": [
Absinthe.Adapter,
Absinthe.Adapter.LanguageConventions,
Absinthe.Adapter.Passthrough,
Absinthe.Adapter.StrictLanguageConventions,
Absinthe.Adapter.Underscore
],
Execution: [
Absinthe.Blueprint,
Absinthe.Blueprint.Execution,
Absinthe.Resolution,
Absinthe.Complexity
],
Introspection: [
Absinthe.Introspection
],
Testing: [
Absinthe.Test
],
Utilities: [
Absinthe.Logger,
Absinthe.Utils,
Absinthe.Utils.Suggestion
]
]
end
end