-
Notifications
You must be signed in to change notification settings - Fork 9
/
mix.exs
52 lines (46 loc) · 1.39 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
defmodule GraphQL.Relay.Mixfile do
use Mix.Project
@version "0.5.0"
@description "Relay helpers for GraphQL Elixir"
@repo_url "https://github.com/graphql-elixir/graphql_relay"
def project do
[app: :graphql_relay,
version: @version,
elixir: "~> 1.2",
description: @description,
package: package,
source_url: @repo_url,
homepage_url: @repo_url,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps,
name: "GraphQL.Relay",
docs: [main: "README", extras: ["README.md"]]]
end
def application do
[
applications: applications(Mix.env),
env: [
schema_module: StarWars.Schema, # Module with a .schema function that returns your GraphQL schema
schema_json_path: "./schema.json"
]
]
end
defp applications(:test), do: applications(:prod) ++ [:ecto]
defp applications(:dev), do: applications(:prod) ++ [:ecto]
defp applications(_), do: [:logger]
defp deps do
[
{:graphql, "~> 0.3"},
{:poison, "~> 1.5 or ~> 2.0"}, # For .generate_schema_json!
{:ecto, "~> 1.0 or ~> 2.0", optional: true, only: [:dev, :test]},
{:postgrex, ">= 0.0.0", only: [:dev, :test]},
]
end
defp package do
[maintainers: ["Sean Abrahams", "Josh Price"],
licenses: ["BSD"],
links: %{"GitHub" => @repo_url},
files: ~w(lib mix.exs *.md LICENSE)]
end
end