-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
103 lines (94 loc) · 2.48 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
defmodule GraphQLWSClient.MixProject do
use Mix.Project
@github_url "https://github.com/tlux/graphql_ws_client"
@version "2.0.2"
def project do
[
app: :graphql_ws_client,
version: @version,
elixir: "~> 1.14",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
"coveralls.detail": :test,
"coveralls.html": :test,
"coveralls.post": :test,
coveralls: :test,
credo: :test,
dialyzer: :test,
test: :test
],
dialyzer: dialyzer(),
# Docs
name: "GraphQL Websocket Client",
docs: docs()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:castore, "~> 1.0", only: :test, runtime: false},
{:connection, "~> 1.1"},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.18", only: :test, runtime: false},
{:ex_doc, "~> 0.31", only: :dev, runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:gun, "~> 2.1", optional: true},
{:jason, "~> 1.4", optional: true},
{:mix_audit, "~> 2.1", only: [:dev, :test]},
{:mox, "~> 1.1", only: :test},
{:uuid, "~> 1.1"}
]
end
defp dialyzer do
[
plt_add_apps: [:ex_unit],
plt_add_deps: :app_tree,
plt_file: {:no_warn, "priv/plts/graphql_ws_client.plt"}
]
end
def package do
[
description:
"A client for connecting with GraphQL over Websockets following the " <>
"graphql-ws conventions.",
exclude_patterns: [~r/\Apriv\/plts/],
licenses: ["MIT"],
links: %{
"GitHub" => @github_url
}
]
end
defp docs do
[
extras: [
"LICENSE.md": [title: "License"],
"README.md": [title: "Readme"]
],
main: "readme",
source_url: @github_url,
source_ref: "v#{@version}",
groups_for_modules: [
Driver: [
GraphQLWSClient.Conn,
GraphQLWSClient.Driver,
GraphQLWSClient.Message
],
"Included Drivers": [
GraphQLWSClient.Drivers.Gun
]
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end