-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
62 lines (58 loc) · 1.82 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
defmodule SubscriptionsTransportWS.MixProject do
use Mix.Project
@url "https://github.com/maartenvanvliet/subscriptions-transport-ws"
def project do
[
app: :subscriptions_transport_ws,
version: "1.0.3",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps(),
source_url: @url,
homepage_url: @url,
name: "SubscriptionsTransportWS",
description:
"Implementation of the subscriptions-transport-ws graphql subscription protocol for Absinthe.",
package: [
maintainers: ["Maarten van Vliet"],
licenses: ["MIT"],
links: %{"GitHub" => @url},
files: ~w(LICENSE README.md lib mix.exs .formatter.exs)
],
docs: [
main: "SubscriptionsTransportWS.Socket",
canonical: "http://hexdocs.pm/subscriptions-transport-ws",
source_url: @url,
nest_modules_by_prefix: [SubscriptionsTransportWS]
],
dialyzer: dialyzer()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
defp dialyzer do
[
plt_add_deps: :apps_direct,
plt_add_apps: [:absinthe, :phoenix_pubsub],
plt_core_path: "priv/plts",
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:absinthe_phoenix, "~> 2.0"},
{:jason, "~> 1.1", optional: true},
{:websocket_client, git: "https://github.com/jeremyong/websocket_client.git", only: :test},
{:plug_cowboy, "~> 2.2", only: :test},
{:ex_doc, "~> 0.23", only: [:dev, :test]},
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:makeup_js, "~> 0.1", only: [:dev, :test]}
]
end
end