forked from dashbitco/broadway_dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
72 lines (64 loc) · 1.83 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
defmodule BroadwayDashboard.MixProject do
use Mix.Project
@version "0.4.0"
@description "A Phoenix LiveDashboard page for inspecting your Broadway pipelines"
def project do
[
app: :broadway_dashboard,
version: @version,
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
name: "BroadwayDashboard",
description: @description,
package: package(),
aliases: aliases(),
docs: docs(),
deps: deps()
]
end
def application do
[
extra_applications: [:logger],
mod: {BroadwayDashboard.Application, []}
]
end
defp deps do
[
{:broadway, "~> 1.0"},
{:phoenix_live_dashboard, "~> 0.8.0"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:phoenix_view, "~> 2.0 or ~> 1.0", only: [:test]},
{:plug_cowboy, "~> 2.0", only: :dev},
{:jason, "~> 1.0", only: [:dev, :test, :docs]},
{:ex_doc, "~> 0.24", only: [:docs], runtime: false},
{:stream_data, "~> 0.5", only: [:dev, :test]},
{:floki, "~> 0.34", only: :test}
]
end
defp docs do
[
main: "BroadwayDashboard",
source_ref: "v#{@version}",
source_url: "https://github.com/dashbitco/broadway_dashboard",
homepage_url: "https://elixir-broadway.org"
]
end
defp package do
%{
maintainers: ["Philip Sampaio"],
licenses: ["Apache-2.0"],
links: %{
"GitHub" => "https://github.com/dashbitco/broadway_dashboard",
"Broadway website" => "https://elixir-broadway.org"
},
files: ~w(lib CHANGELOG.md LICENSE mix.exs README.md)
}
end
defp aliases do
[dev: "run --no-halt dev.exs"]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end