forked from dyne/bonfire_ui_reflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
59 lines (52 loc) · 1.82 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
Code.eval_file("mess.exs")
defmodule Bonfire.UI.Reflow.MixProject do
use Mix.Project
def project do
[
app: :bonfire_ui_reflow,
version: "0.1.0",
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: Mess.deps [
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:dbg, "~> 1.0", only: [:dev, :test]},
{:floki, ">= 0.0.0", only: [:dev, :test]},
{:absinthe, "~> 1.5.3", optional: true},
{:absinthe_plug, "~> 1.5", optional: true}
]
]
end
def application do
[
# mod: {Bonfire.UI.Reflow.FallbackApplication, []},
extra_applications: [:logger, :runtime_tools]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
@bonfire_deps [
"pointers",
"bonfire_data_access_control",
"bonfire_data_identity",
"bonfire_data_social",
] |> Enum.join(" ")
defp aliases do
[
"hex.setup": ["local.hex --force"],
"rebar.setup": ["local.rebar --force"],
"js.deps.get": ["cmd npm install --prefix assets"],
"ecto.seeds": ["run priv/repo/seeds.exs"],
"bonfire.deps.update": ["deps.update #{@bonfire_deps}"],
"bonfire.deps.clean": ["deps.clean #{@bonfire_deps} --build"],
"bonfire.deps": ["bonfire.deps.update", "bonfire.deps.clean"],
setup: ["hex.setup", "rebar.setup", "deps.get", "bonfire.deps.clean", "ecto.setup", "js.deps.get"],
updates: ["deps.get", "bonfire.deps.clean", "ecto.migrate", "js.deps.get"],
"ecto.setup": ["ecto.create", "ecto.migrate", "ecto.seeds"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"]
]
end
end