-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
64 lines (60 loc) · 1.39 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
defmodule Conta.Umbrella.MixProject do
use Mix.Project
def project do
[
name: :conta,
apps_path: "apps",
version: "0.2.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
releases: releases(),
preferred_cli_env: [
release: :prod
]
]
end
defp deps do
[
{:observer_cli, "~> 1.6"},
{:dialyxir, "~> 1.1", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.24", only: [:dev, :test], runtime: false},
{:credo, ">= 0.0.0", only: [:dev, :test], runtime: false},
{:mix_audit, ">= 0.0.0", only: [:dev, :test], runtime: false},
{:ex_check, "~> 0.14", only: [:dev, :test], runtime: false},
# Required to run "mix format" on ~H/.heex files from the umbrella root
{:phoenix_live_view, ">= 0.0.0"}
]
end
defp aliases do
[
setup: ["cmd mix setup"],
release: [
"local.hex --force",
"local.rebar --force",
"clean",
"deps.get",
"compile",
"assets.setup",
"assets.deploy",
"phx.digest",
"release --overwrite"
]
]
end
defp releases do
[
conta: [
steps: [
:assemble,
:tar
],
applications: [
conta: :permanent,
conta_web: :permanent,
conta_bot: :permanent
]
]
]
end
end