-
Notifications
You must be signed in to change notification settings - Fork 5
/
mix.exs
98 lines (91 loc) · 2.88 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
95
96
97
98
defmodule History.MixProject do
use Mix.Project
def project do
[
app: :history,
version: "0.0.23",
elixir: "~> 1.12",
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
description: description(),
aliases: aliases(),
deps: deps(),
dialyzer: [
plt_add_apps: [:mix]
]
]
end
def application do
[
mod: {History.Application, []},
extra_applications: [:logger, :runtime_tools]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:broadway, "~> 1.0"},
{:confex, "~> 3.5"},
{:ecto_enum, "~> 1.4"},
{:ecto_sql, "~> 3.7"},
{:enumerati, "~> 0.0.8"},
{:etso, "~> 0.1.5"},
{:ex_ftx, "~> 0.0.9"},
{:gettext, "~> 0.11"},
{:indifferent, "~> 0.9"},
{:jason, "~> 1.0"},
{:master_proxy, "~> 0.1"},
{:notified_phoenix, "~> 0.0.7"},
{:navigator, "~> 0.0.7"},
{:paged_query, "~> 0.0.2"},
{:phoenix, "~> 1.6.0"},
{:phoenix_ecto, "~> 4.4"},
{:phoenix_html, "~> 3.0"},
{:phoenix_live_dashboard, "~> 0.6.0"},
{:phoenix_live_view, "~> 0.17.0"},
{:plug_cowboy, "~> 2.0"},
{:postgrex, ">= 0.0.0"},
{:redirect, "~> 0.3"},
{:stylish, "~> 0.0.6"},
# {:tai, github: "fremantle-industries/tai", sparse: "apps/tai", branch: "main", override: true},
{:tai, "~> 0.0.73"},
{:telemetry, "~> 1.0"},
{:telemetry_metrics, "~> 0.6"},
{:telemetry_metrics_prometheus, "~> 1.1"},
{:telemetry_poller, "~> 1.0"},
{:timex, "~> 3.7"},
# {:workbench, github: "fremantle-industries/workbench", branch: "main"},
{:workbench, "~> 0.0.17"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:dialyxir, "~> 1.0", only: :dev, runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev},
{:floki, ">= 0.0.0", only: :test},
{:mock, "~> 0.3", only: :test},
{:wallaby, "~> 0.30.0", runtime: false, only: :test},
{:logger_file_backend, "~> 0.0.1", only: [:dev, :test]}
]
end
defp aliases do
[
setup: ["setup.deps", "setup.gen.migration", "ecto.setup"],
"setup.deps": ["deps.get", "cmd npm install --prefix assets"],
"setup.gen.migration": ["tai.gen.migration", "workbench.gen.migration", "history.gen.migration"],
"ecto.setup": ["ecto.create", "ecto.migrate", "history.seed"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate", "test"]
]
end
defp description do
"Download and warehouse historical trading data"
end
defp package do
%{
licenses: ["MIT"],
maintainers: ["Alex Kwiatkowski"],
links: %{"GitHub" => "https://github.com/fremantle-industries/history"}
}
end
end