-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmix.exs
57 lines (50 loc) · 1.58 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
defmodule FedecksClient.MixProject do
use Mix.Project
def project do
[
app: :fedecks_client,
version: "0.1.4",
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
docs: docs(),
elixirc_paths: elixirc_paths(Mix.env())
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:mint_web_socket, "~> 1.0"},
{:simplest_pub_sub, "~> 0.1.0"},
{:mox, "~> 1.0", only: :test},
{:credo, "~> 1.6", only: [:dev, :test]},
{:dialyxir, "~> 1.2", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.29.1", only: :dev, runtime: false},
# For setting up a Fedecks server in tests
{:phoenix, "~> 1.7.0-rc.3", only: :test, override: true},
{:plug_cowboy, "~> 2.5", only: :test},
{:fedecks_server, git: "git@github.com:paulanthonywilson/fedecks_server.git", only: :test},
{:recon, "~> 2.5", only: [:dev, :test]},
{:castore, "~> 1.0", only: [:dev, :test]}
]
end
defp package do
[
description:
"Binary websocket client that communicates with its Phoenix-based counterpart, FedecksServer. Written primarly for Nerves systems.",
licenses: ["Apache-2.0"],
links: %{"GitHub" => "https://github.com/paulanthonywilson/fedecks_client"}
]
end
defp docs do
[main: "readme", extras: ["README.md", "CHANGELOG.md"]]
end
defp elixirc_paths(:test), do: ["lib", "example", "test/support"]
defp elixirc_paths(:dev), do: ["lib", "example"]
defp elixirc_paths(_), do: ["lib"]
end