This repository has been archived by the owner on Apr 22, 2020. It is now read-only.
forked from phoenixframework/phoenix_live_dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
82 lines (73 loc) · 2.08 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
73
74
75
76
77
78
79
80
81
82
defmodule Phoenix.LiveDashboard.MixProject do
use Mix.Project
@version "0.1.1"
def project do
[
app: :phoenix_live_dashboard,
version: @version,
elixir: "~> 1.7",
compilers: [:phoenix] ++ Mix.compilers(),
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
package: package(),
name: "LiveDashboard",
docs: docs(),
homepage_url: "http://www.phoenixframework.org",
description: "Real-time performance dashboard for Phoenix"
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help compile.app" to learn about applications.
def application do
[
mod: {Phoenix.LiveDashboard.Application, []},
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:phoenix_live_view, "~> 0.12.0", phoenix_live_view_opts()},
{:telemetry_metrics, "~> 0.4.0"},
{:phoenix_html, "~> 2.14.1 or ~> 2.15"},
{:telemetry_poller, "~> 0.4", only: :dev},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:plug_cowboy, "~> 2.0", only: :dev},
{:jason, "~> 1.0", only: [:dev, :test, :docs]},
{:floki, "~> 0.24.0", only: :test},
{:ex_doc, "~> 0.21", only: :docs}
]
end
defp phoenix_live_view_opts do
if path = System.get_env("LIVE_VIEW_PATH") do
[path: path]
else
[]
end
end
defp docs do
[
main: "Phoenix.LiveDashboard",
source_ref: "v#{@version}",
source_url: "https://github.com/phoenixframework/phoenix_live_dashboard",
extra_section: "GUIDES",
extras: extras(),
nest_modules_by_prefix: [Phoenix.LiveDashboard]
]
end
defp extras do
[
"guides/metrics.md",
"guides/request_logger.md"
]
end
defp package do
[
maintainers: ["Michael Crumm", "Chris McCord", "José Valim"],
licenses: ["MIT"],
links: %{github: "https://github.com/phoenixframework/phoenix_live_dashboard"},
files: ~w(lib priv CHANGELOG.md LICENSE.md mix.exs README.md)
]
end
end