-
Notifications
You must be signed in to change notification settings - Fork 20
/
mix.exs
99 lines (91 loc) · 2.6 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
defmodule AbsintheGraphqlWS.MixProject do
use Mix.Project
@version "0.3.6"
def project do
[
app: :absinthe_graphql_ws,
deps: deps(),
description: "Add graphql-ws websocket transport for Absinthe",
dialyzer: dialyzer(),
docs: docs(),
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
homepage_url: "https://github.com/geometerio/absinthe_graphql_ws",
name: "AbsintheGrahqlWS",
package: package(),
preferred_cli_env: [credo: :test, dialyzer: :test],
source_url: "https://github.com/geometerio/absinthe_graphql_ws",
start_permanent: Mix.env() == :prod,
version: @version
]
end
def application do
[
extra_applications: [:crypto, :logger]
]
end
defp deps do
[
{:absinthe, "~> 1.6"},
{:absinthe_phoenix, "> 0.0.0"},
{:benchee, "> 0.0.0", only: [:bench]},
{:credo, "~> 1.4", only: [:dev, :test], runtime: false},
{:cowlib, "~> 2.8", only: :test, override: true},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:eljiffy, "> 0.0.0", only: [:bench]},
{:ex_doc, "~> 0.24", only: :dev, runtime: false},
{:gun, "~> 1.3", only: [:test]},
{:jason, "~> 1.2", optional: true},
{:markdown_formatter, "~> 0.5"},
{:mix_audit, "~> 1.0", only: [:dev, :test], runtime: false},
{:phoenix, "~> 1.5"},
{:plug_cowboy, "~> 2.5", only: :test, override: true}
]
end
defp dialyzer do
[
plt_add_apps: [:ex_unit, :mix, :jason],
plt_add_deps: :app_tree,
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
]
end
defp docs do
[
extras: [
"guides/overview.md",
"guides/installation.md",
"guides/benchmarks.md",
"guides/changelog.md",
"README.md"
],
groups_for_modules: docs_module_groups(),
main: "overview",
source_ref: "v#{@version}"
]
end
defp docs_module_groups do
[
Socket: [
Absinthe.GraphqlWS.Socket,
Absinthe.GraphqlWS.Transport,
Absinthe.GraphqlWS.Util
],
Messages: [
Absinthe.GraphqlWS.Message.ConnectionAck,
Absinthe.GraphqlWS.Message.Complete,
Absinthe.GraphqlWS.Message.Error,
Absinthe.GraphqlWS.Message.Next,
Absinthe.GraphqlWS.Message.Pong
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
licenses: ["MIT", "Apache-2.0"],
maintainers: ["Geometer"],
links: %{"GitHub" => "https://github.com/geometerio/absinthe_graphql_ws"}
]
end
end