forked from absinthe-graphql/absinthe_relay
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
63 lines (56 loc) · 1.46 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
defmodule AbsintheRelay.Mixfile do
use Mix.Project
@source_url "https://github.com/absinthe-graphql/absinthe_relay"
@version "1.5.1"
def project do
[
app: :absinthe_relay,
version: @version,
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
package: package(),
docs: docs(),
deps: deps(),
xref: [
exclude: [:ecto]
]
]
end
defp package do
[
description: "Relay framework support for Absinthe",
files: ["lib", "mix.exs", "README*", "CHANGELOG*"],
maintainers: ["Bruce Williams", "Ben Wilson"],
licenses: ["MIT"],
links: %{
Changelog: "https://hexdocs.pm/absinthe_relay/changelog.html",
GitHub: @source_url
}
]
end
defp docs do
[
extras: ["CHANGELOG.md", "README.md"],
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
formatters: ["html"]
]
end
def application do
[extra_applications: [:logger]]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:absinthe, "~> 1.5.0 or ~> 1.6.0"},
{:ecto, "~> 2.0 or ~> 3.0", optional: true},
{:poison, ">= 0.0.0", only: [:dev, :test]},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
end
end