-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
104 lines (96 loc) · 2.5 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
defmodule Graphqexl.MixProject do
use Mix.Project
@version "VERSION" |> File.read! |> String.trim
def project do
[
app: :graphqexl,
version: @version,
docs: docs(),
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
releases: [
stable: [
include_executables_for: [:unix],
applications: [graphqexl: :permanent],
],
],
description: "Fully-loaded, pure-Elixir GraphQL server implementation with developer tools",
package: %{
files: [
"config",
"lib",
"priv",
"mix.exs",
"README*",
"LICENSE*"
],
licenses: ["MIT"],
links: %{
github: "https://github.com/eslingerbryan/graphqexl",
graphql: "https://graphql.org/"
}
},
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
description: 'Fully-loaded, pure-Elixir GraphQL server implementation with developer tools',
mod: {Graphqexl.Application, []},
extra_applications: [:logger],
vsn: @version |> to_charlist,
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:cowboy, ">= 0.0.0"},
{:credo, "~> 1.1.0", only: :dev, runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:gettext, "~> 0.11"},
{:jason, "~> 1.0"},
{:plug, ">= 0.0.0"},
{:plug_cowboy, ">= 0.0.0"},
]
end
defp docs do
[
main: "overview",
formatters: ["html", "epub"],
extras: extras(),
groups_for_extras: groups_for_extras()
]
end
defp extras do
[
"guides/Overview.md",
"guides/Schema.md",
"examples/Basic.md",
"examples/SOA Orchestration.md",
]
end
defp groups_for_extras do
[
"Guides": ~r/guides\/[^\/]+\.md/,
"Examples": ~r/examples\/[^\/]+\.md/,
]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to create, migrate and run the seeds file at once:
#
# $ mix ecto.setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
[]
end
end