-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
65 lines (59 loc) · 1.59 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
defmodule ResourceKit.MixProject do
use Mix.Project
def project do
[
app: :resource_kit,
version: "0.1.0",
elixir: "~> 1.16",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
releases: releases(),
dialyzer: [plt_file: {:no_warn, "priv/plts/dialyzer.plt"}]
]
end
def application do
[
extra_applications: [:logger],
mod: {ResourceKitCLI.Application, []}
]
end
defp aliases do
[
update: ["deps.get", "deps.clean --unlock --unused"],
check: ["format", "credo"]
]
end
defp deps do
[
{:bandit, "~> 1.5"},
{:credo, "~> 1.7", only: [:dev], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:ecto_sql, "~> 3.12"},
{:finch, "~> 0.19.0"},
{:jason, "~> 1.4"},
{:jet_credo, github: "Byzanteam/jet_credo", only: [:dev], runtime: false},
{:jet_ext, "~> 0.3.0"},
{:mimic, "~> 1.10", only: [:test], runtime: false},
{:pegasus, "~> 0.2.5"},
{:phx_json_rpc, "~> 0.7.0"},
{:pluggable, "~> 1.1"},
{:polymorphic_embed, "~> 5.0"},
{:postgrex, ">= 0.0.0"},
{:sentry, "~> 10.7"},
{:snapshy, "~> 0.4.0", only: [:test], runtime: false},
{:typed_struct, "~> 0.3.0"}
]
end
defp releases do
[
resource_kit_cli: [
include_executables_for: [:unix],
applications: [resource_kit: :permanent]
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end