-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
72 lines (64 loc) · 1.77 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
defmodule UnLib.MixProject do
use Mix.Project
@mix_env Mix.env()
def project do
[
name: "Unlibrary",
source_url: "https://github.com/libre0b11/unlib",
app: :unlib,
version: "0.1.0",
elixir: "~> 1.12",
start_permanent: @mix_env == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps() ++ check_deps(),
aliases: aliases(),
package: package()
]
end
def application do
[
extra_applications: [:logger, :elixir_feed_parser],
mod: {UnLib.Application, []}
]
end
defp deps do
[
{:ecto_sql, "~> 3.0"},
{:postgrex, ">= 0.0.0"},
{:typed_ecto_schema, "~> 0.4.1", runtime: false},
{:cloak, "1.1.1"},
{:cloak_ecto, "~> 1.2"},
{:jason, "~> 1.2"},
{:finch, "~> 0.13"},
{:bcrypt_elixir, "~> 2.3.0"},
{:elixir_feed_parser, "~> 0.0.1"},
{:ex_doc, "~> 0.24", only: :dev, runtime: false},
{:the_big_username_blacklist, "~> 0.1.2"}
]
end
defp check_deps do
[
{:ex_check, "~> 0.14.0", only: [:dev], runtime: false},
{:credo, ">= 0.0.0", only: [:dev], runtime: false},
{:dialyxir, ">= 0.0.0", only: [:dev], runtime: false}
]
end
defp aliases do
[
setup: ["deps.get", "ecto.setup"],
translate: ["gettext.extract", "gettext.merge priv/gettext --no-fuzzy"],
"ecto.setup": ["ecto.create", "ecto.migrate"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
maintainers: ["Robin Boers"],
organization: "0b11",
links: %{github: "https://github.com/libre0b11/unlib"}
]
end
end