-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
64 lines (57 loc) · 1.35 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
defmodule GraphQLDocument.MixProject do
use Mix.Project
@version "0.2.2"
@source_url "https://github.com/ucbi/graphql_document"
def project do
[
app: :graphql_document,
version: @version,
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
# Hex
description: "Build GraphQL documents with simple Elixir data structures",
package: package(),
# Docs
name: "GraphQLDocument",
docs: docs()
]
end
defp deps do
[
{:ex_doc, ">= 0.19.0", only: [:dev, :docs], runtime: false},
{:decimal, ">= 0.2.5", optional: true}
]
end
defp package do
%{
licenses: ["Apache-2.0"],
links: %{
GitHub: @source_url
}
}
end
defp docs do
[
main: "GraphQLDocument",
source_ref: "v#{@version}",
source_url: @source_url,
extras: ["CHANGELOG.md"],
groups_for_modules: [
Language: [
GraphQLDocument.Argument,
GraphQLDocument.Directive,
GraphQLDocument.Enum,
GraphQLDocument.Field,
GraphQLDocument.Fragment,
GraphQLDocument.Name,
GraphQLDocument.Operation,
GraphQLDocument.Selection,
GraphQLDocument.Type,
GraphQLDocument.Value,
GraphQLDocument.Variable
]
]
]
end
end