-
Notifications
You must be signed in to change notification settings - Fork 4
/
mix.exs
74 lines (67 loc) · 1.89 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
defmodule LiveDashboardHistory.MixProject do
use Mix.Project
@version "0.1.5"
def project do
[
app: :live_dashboard_history,
version: @version,
elixir: "~> 1.11",
compilers: [:phoenix] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
name: "LiveDashboardHistory",
docs: docs(),
package: package(),
homepage_url: "http://github.com/bglusman/live_dashboard_history",
description: "Ephemeral metrics history storage for Phoenix LiveDashboard",
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
mod: {LiveDashboardHistory.Application, []},
extra_applications: [:logger]
]
end
defp docs do
[
main: "LiveDashboardHistory",
source_ref: "v#{@version}",
source_url: "https://github.com/bglusman/live_dashboard_history",
nest_modules_by_prefix: [LiveDashboardHistory]
]
end
defp aliases do
[
setup: ["deps.get", "cmd npm install --prefix assets"],
no_halt: "run --no-halt dev.exs",
put_config: &put_config/1,
dev: ["put_config", "no_halt"]
]
end
defp package do
[
maintainers: ["Brian Glusman"],
licenses: ["MIT"],
links: %{github: "https://github.com/bglusman/live_dashboard_history"},
files: ~w(lib LICENSE.md mix.exs README.md)
]
end
defp put_config(_) do
Application.put_env(:live_dashboard_history, LiveDashboardHistory,
router: DemoWeb.Router,
metrics: DemoWeb.Telemetry
)
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:phoenix_live_dashboard, "~> 0.6"},
{:cbuf, "~> 0.7"},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:norm, git: "https://github.com/keathley/norm.git", only: [:test]},
{:stream_data, "~> 0.5", only: [:test]}
]
end
end