forked from nerves-hub/nerves_hub_web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
130 lines (124 loc) · 3.6 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
defmodule NervesHub.MixProject do
use Mix.Project
def project do
[
app: :nerves_hub,
version: "0.1.0",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
preferred_cli_env: [
docs: :docs
],
elixirc_paths: elixirc_paths(Mix.env()),
elixir: "~> 1.11",
releases: [
nerves_hub: [
steps: [:assemble],
include_executables_for: [:unix],
applications: [
nerves_hub: :permanent
]
]
]
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
mod: {NervesHub.Application, []},
extra_applications: [
:base62,
:inets,
:jason,
:logger,
:runtime_tools,
:timex
]
]
end
# Dependencies listed here are available only for this
# project and cannot be accessed from applications inside
# the apps folder.
#
# Run "mix help deps" for examples and options.
defp deps do
[
{:mix_test_watch, "~> 1.0", only: :test, runtime: false},
{:recon, "~> 2.5"},
{:bandit, "~> 1.0"},
{:base62, "~> 1.2"},
{:bcrypt_elixir, "~> 3.0"},
{:castore, "~> 1.0"},
{:circular_buffer, "~> 0.4.1"},
{:comeonin, "~> 5.3"},
{:crontab, "~> 1.1"},
{:decorator, "~> 1.2"},
{:ecto, "~> 3.8", override: true},
{:ecto_sql, "~> 3.0"},
{:ex_aws, "~> 2.0"},
{:ex_aws_s3, "~> 2.0"},
{:finch, "~> 0.17.0"},
{:floki, ">= 0.27.0", only: :test},
{:gen_smtp, "~> 1.0"},
{:gettext, "~> 0.24.0"},
{:hackney, "~> 1.16"},
{:hlclock, "~> 1.0"},
{:jason, "~> 1.2", override: true},
{:libcluster_postgres, "~> 0.1.2"},
{:logfmt, "~> 3.3"},
{:mox, "~> 1.0", only: [:test, :dev]},
{:nimble_csv, "~> 1.1"},
{:oban, "~> 2.11"},
{:phoenix, "~> 1.7.0"},
{:phoenix_ecto, "~> 4.0"},
{:phoenix_html, "~> 3.3.1", override: true},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:phoenix_live_view, "~> 0.20.1"},
{:phoenix_markdown, "~> 1.0"},
{:phoenix_pubsub, "~> 2.0"},
{:phoenix_swoosh, "~> 1.0"},
{:phoenix_view, "~> 2.0"},
{:plug, "~> 1.7"},
{:postgrex, "~> 0.14"},
{:scrivener_ecto, "~> 2.7"},
{:scrivener_html, git: "https://github.com/nerves-hub/scrivener_html", branch: "phx-1.5"},
{:sentry, "~> 10.0"},
{:slipstream, "~> 1.0", only: [:test, :dev]},
{:sweet_xml, "~> 0.6"},
{:swoosh, "~> 1.12"},
{:telemetry_metrics, "~> 0.4"},
{:telemetry_metrics_statsd, "~> 0.7.0"},
{:telemetry_poller, "~> 1.0"},
{:timex, "~> 3.1"},
{:x509, "~> 0.5.1 or ~> 0.6"}
]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to create, migrate and run the seeds file at once:
#
# $ mix ecto.setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
[
"assets.setup": ["assets.install", "assets.build"],
"ecto.setup": [
"ecto.create",
"ecto.migrate",
"run priv/repo/seeds.exs"
],
"ecto.reset": ["ecto.drop", "ecto.setup"],
"ecto.migrate.reset": ["ecto.drop", "ecto.create", "ecto.migrate"],
"ecto.migrate.redo": ["ecto.rollback", "ecto.migrate"],
test: ["ecto.create --quiet", "ecto.migrate", "test"]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(env) when env in [:dev, :test],
do: ["lib", "test/support"]
defp elixirc_paths(_),
do: ["lib"]
end