-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmix.exs
87 lines (80 loc) · 1.94 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
defmodule Absinthe.Socket.MixProject do
use Mix.Project
@version "0.1.1"
@source_url "https://github.com/CargoSense/absinthe_socket"
def project do
[
app: :absinthe_client,
version: @version,
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
docs: docs(),
aliases: [
"test.all": ["test --include integration"]
],
preferred_cli_env: [
"test.all": :test,
docs: :docs,
"hex.publish": :docs
],
test_coverage: [summary: [threshold: 80]]
]
end
def application do
[
mod: {AbsintheClient.Application, []},
extra_applications: [:logger]
]
end
defp package do
[
description: "AbsintheClient is a GraphQL client designed for Elixir Absinthe.",
licenses: ["MIT"],
links: %{
"GitHub" => @source_url
}
]
end
defp deps do
[
{:castore, ">= 0.0.0"},
{:req, "~> 0.4"},
{:slipstream, "~> 1.0"},
# Dev/Test dependencies
{:ex_doc, ">= 0.0.0", only: [:docs], runtime: false},
{:plug_cowboy, "~> 2.0", only: [:dev, :test]},
{:absinthe_phoenix, "~> 2.0.0", only: [:dev, :docs, :test]}
]
end
defp docs do
[
source_url: @source_url,
source_ref: "v#{@version}",
deps: [],
language: "en",
formatters: ["html"],
main: "readme",
groups_for_functions: [
"Request steps": &(&1[:step] == :request),
"Response steps": &(&1[:step] == :response),
"Error steps": &(&1[:step] == :error)
],
groups_for_modules: [
# Ungrouped modules
# AbsintheClient
# AbsintheClient.WebSocket
Structures: [
AbsintheClient.Subscription,
AbsintheClient.WebSocket.Message,
AbsintheClient.WebSocket.Reply
]
],
extras: [
"README.md",
"CHANGELOG.md"
]
]
end
end