forked from hedwig-im/hedwig_slack
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
56 lines (49 loc) · 1.44 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
defmodule HedwigDiscord.Mixfile do
use Mix.Project
@version "1.0.0"
def project do
[app: :hedwig_discord,
name: "Hedwig Discord",
version: @version,
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
package: package(),
description: "A Discord adapter for Hedwig",
deps: deps()]
end
def application do
[mod: {HedwigDiscord, []},
applications: [
:logger,
:hackney,
:hedwig,
:poison,
:nostrum
]]
end
defp deps do
[{:hackney, "~> 1.10", override: true},
{:hedwig, "~> 1.0"},
{:poison, "~> 3.0"},
{:websockex, "~> 0.4.0"},
{:nostrum, git: "https://github.com/Kraigie/nostrum.git"},
{:gun, git: "https://github.com/ninenines/gun.git", ref: "dd1bfe4d6f9fb277781d922aa8bbb5648b3e6756", override: true},
# Test dependencies
# {:bypass, "~> 0.5", only: :test},
{:credo, "~> 0.8", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 0.5", only: [:dev], runtime: false},
{:mr_t, "~> 0.6.0", only: [:test, :dev]}]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[files: ["lib", "mix.exs", "README*", "LICENSE*"],
maintainers: ["Liss McCabe"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/dysnomian/hedwig_discord"
}]
end
end