This repository has been archived by the owner on Dec 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
mix.exs
94 lines (86 loc) · 2.28 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
83
84
85
86
87
88
89
90
91
92
93
94
defmodule Memento.MixProject do
use Mix.Project
def project do
[
app: :memento,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
escript: escript(),
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
docs: docs(),
compilers: [:phoenix] ++ Mix.compilers(),
dialyzer: dialyzer(),
preferred_cli_env: [
vcr: :test,
"vcr.delete": :test,
"vcr.check": :test,
"vcr.show": :test
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def application do
[
extra_applications: [:logger, :inets, :runtime_tools, :os_mon, :ssl],
mod: {Memento.Application, []}
]
end
def escript do
[
main_module: Memento.CLI,
app: nil,
path: "./bin/memento"
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# Runtime
{:calendar, "~> 1.0"},
{:ecto_sql, "~> 3.0"},
{:html_entities, "~> 0.5.0"},
{:jason, "~> 1.2"},
{:logster, "~> 1.0"},
{:oauther, "~> 1.1"},
{:phoenix, "~> 1.5.1"},
{:phoenix_ecto, "~> 4.1"},
{:phoenix_html, "~> 2.11"},
{:phoenix_live_dashboard, "~> 0.3.3"},
{:phoenix_live_view, "~> 0.14.7"},
{:plug_cowboy, "~> 2.0"},
{:postgrex, ">= 0.0.0"},
{:saul, "~> 0.1.0"},
{:telemetry_metrics, "~> 0.4"},
{:telemetry_poller, "~> 0.4"},
# Test
{:exvcr, "~> 0.8", only: :test},
{:floki, ">= 0.0.0", only: :test},
{:stream_data, "~> 0.5.0", only: [:dev, :test]},
# Tools
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:ex_doc, "~> 0.25.0", only: :dev},
{:phoenix_live_reload, "~> 1.2", only: :dev}
]
end
defp docs do
[extras: ["README.md"]]
end
defp aliases do
[
setup: ["deps.get", "ecto.setup", "cmd npm install --prefix assets"],
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate", "test"]
]
end
defp dialyzer do
[
plt_core_path: "priv/plts",
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
]
end
end