-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmix.exs
64 lines (57 loc) · 1.38 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
defmodule SSE.MixProject do
use Mix.Project
def project do
[
app: :sse,
version: "0.4.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
docs: [extras: ~w(README.md)],
test_coverage: [tool: ExCoveralls],
dialyzer: [plt_add_deps: :transitive]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {SSE.Application, []}
]
end
defp elixirc_paths(:test) do
~w(lib test/support)
end
defp elixirc_paths(_) do
~w(lib)
end
defp description do
"""
Server Sent Events for Elixir/Plug
"""
end
defp package do
[
name: :sse,
files: ~w(lib mix.exs README.md),
maintainers: ["Mustafa Turan"],
licenses: ~w(MIT),
links: %{"GitHub" => "https://github.com/mustafaturan/sse"}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:event_bus, ">= 1.6.0"},
{:plug, ">= 1.4.5"},
{:credo, "~> 1.5.1", only: :dev},
{:ex_doc, ">= 0.0.0", only: :dev},
{:dialyxir, "~> 1.0.0-rc.4", only: :dev, runtime: false},
{:excoveralls, "~> 0.13.0", only: :test},
]
end
end