-
Notifications
You must be signed in to change notification settings - Fork 3
/
mix.exs
56 lines (50 loc) · 1.42 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
defmodule Maple.Mixfile do
use Mix.Project
def project do
[app: :maple,
version: "0.5.0",
source_url: "https://github.com/maxneuvians/maple",
elixir: "~> 1.7",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env),
docs: [
main: "readme",
extras: ["README.md"]
]
]
end
defp elixirc_paths(:test), do: ["lib", "priv/maple", "test/support"]
defp elixirc_paths(_), do: ["lib", "priv/maple"]
def application do
[extra_applications: [:logger]]
end
defp deps do
[
{:credo, "~> 0.8", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 0.5", only: [:dev], runtime: false},
{:ex_doc, "~> 0.16", only: :dev, runtime: false},
{:httpoison, "~> 1.4"},
{:poison, "~> 3.1"},
{:uuid, "~> 1.1"},
{:websockex, "~> 0.4"}
]
end
defp description do
"""
Maple is an automatic, compile time, client code generator for GraphQL schemas. At best it creates easy to use
API functions for use in your code. At worst it can be used as a CLI for a GraphQL API.
"""
end
defp package do
[
files: ["lib", "mix.exs", "README*", "LICENSE*"],
maintainers: ["Max Neuvians"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/maxneuvians/maple"}
]
end
end