-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmix.exs
92 lines (87 loc) · 2.74 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
defmodule Ada.MixProject do
use Mix.Project
@all_targets [:rpi0]
def project do
[
app: :ada,
version: "0.1.0",
elixir: "~> 1.8",
archives: [nerves_bootstrap: "~> 1.5"],
start_permanent: Mix.env() == :prod,
build_embedded: Mix.target() != :host,
deps_path: "deps/#{Mix.target()}",
aliases: [
loadconfig: [&bootstrap/1],
"ecto.reset": ["ecto.drop --quiet", "ecto.create --quiet", "ecto.migrate --quiet"]
],
deps: deps(),
escript: [
main_module: Ada.CLI,
app: nil
],
docs: [
main: "readme",
source_url: "https://github.com/cloud8421/ada",
extras: ["README.md"],
groups_for_modules: [
"Core Schemas": ~r/Schema/,
"Data backups": ~r/Backup/,
"Data management": ~r/Preference|CRUD/,
"Display management": ~r/Display/,
Email: ~r/Email/,
"External services": [Ada.Email.ApiClient, Ada.HTTP.Client],
Workflows: ~r/Workflow/,
CLI: ~r/CLI/,
"Metrics and logs": [Logger.Backends.Telegraf],
Utilities: [Ada.PubSub]
]
],
dialyzer: [
plt_file: {:no_warn, "priv/plts/dialyzer.plt"},
plt_add_apps: [:vmstats]
]
]
end
# Starting nerves_bootstrap adds the required aliases to Mix.Project.config()
# Aliases are only added if MIX_TARGET is set.
def bootstrap(args) do
Application.start(:nerves_bootstrap)
Mix.Task.run("loadconfig", args)
end
# Run "mix help compile.app" to learn about applications.
def application do
[
mod: {Ada.Application, []},
extra_applications: [:logger, :runtime_tools, :inets, :ssl],
included_applications: [:vmstats]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:cowboy, "~> 2.5"},
{:sqlite_ecto2, "~> 2.2"},
{:jason, "~> 1.1"},
{:calendar, "~> 0.17.4"},
{:matrix, "~> 0.3.2"},
{:nerves, "~> 1.3", runtime: false},
{:shoehorn, "~> 0.4"},
{:ring_logger, "~> 0.4"},
{:toolshed, "~> 0.2"},
{:ex_cli, "~> 0.1.6"},
{:floki, "~> 0.21.0"},
{:vmstats, "~> 2.3"},
{:telemetry, "~> 0.4.0"},
{:statix, "~> 1.1"},
{:circuits_i2c, "~> 0.3.3"},
{:junit_formatter, "~> 3.0", only: :test},
{:ex_doc, "~> 0.21.0", only: :dev, runtime: false},
{:dialyxir, "~> 1.0.0-rc.6", only: :dev, runtime: false},
{:nerves_runtime, "~> 0.6", targets: @all_targets},
{:nerves_init_gadget, "~> 0.4", targets: @all_targets},
{:nerves_time, "~> 0.2.0", targets: @all_targets},
{:power_control, "~> 0.2.0", targets: :rpi0},
{:nerves_system_rpi0, "~> 1.0", runtime: false, targets: :rpi0}
]
end
end