This repository has been archived by the owner on Oct 13, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 57
/
mix.exs
98 lines (91 loc) · 2.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
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
defmodule Constable.MixProject do
use Mix.Project
def project do
[
app: :constable,
version: "0.2.0",
elixir: "~> 1.12.0",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
dialyzer: dialyzer_settings(),
aliases: aliases(),
deps: deps()
]
end
defp dialyzer_settings do
[
plt_add_deps: true,
plt_file: ".dialyzer.plt",
flags: ["-Wunderspecs", "-Wno_undefined_callbacks"]
]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more information
def application do
[
mod: {Constable.Application, []},
extra_applications: [:logger, :runtime_tools]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Specifies your project dependencies
#
# Type `mix help deps` for examples and options
defp deps do
[
{:bamboo, "~> 2.2.0"},
{:bamboo_phoenix, "~> 1.0.0"},
{:cors_plug, "~> 2.0"},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:earmark, "~> 1.2.0"},
{:ecto_sql, "~> 3.7.0"},
{:envy, "~> 1.1.1"},
{:ex_machina, "~> 2.0"},
{:floki, ">= 0.27.0", only: :test},
{:gettext, "~> 0.11"},
{:good_times, "~> 1.1"},
{:honeybadger, "~> 0.6"},
{:html_sanitize_ex, "~> 1.4.0"},
{:httpoison, "~> 1.3", override: true},
{:jason, "~> 1.1"},
{:mock, "~> 0.3.0", only: :test},
{:neuron, "~> 5.0.0"},
{:oauth2, "~> 2.0"},
{:pact, "~> 0.2.0"},
{:phoenix, "~> 1.5.0"},
{:phoenix_pubsub, "~> 2.0"},
{:phoenix_ecto, "~> 4.4.0"},
{:phoenix_html, "~> 2.11"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:phoenix_live_view, "~> 0.15.7"},
{:plug_cowboy, "~> 2.1"},
{:poison, ">= 1.5.0"},
{:postgrex, ">= 0.0.0"},
{:quick_alias, "~> 0.1.0"},
{:scrivener_ecto, "~> 2.7.0"},
{:secure_random, "~> 0.1"},
{:slugger, "~> 0.2.0"},
{:wallaby, "~> 0.20", only: :test}
]
end
defp aliases do
[
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: [
"ecto.create --quiet",
"ecto.migrate",
"test"
],
"assets.watch": &watch_assets/1
]
end
defp watch_assets(_) do
Mix.shell().cmd("cd assets && node_modules/.bin/webpack --watch && cd ..")
end
end