-
Notifications
You must be signed in to change notification settings - Fork 4
/
mix.exs
85 lines (77 loc) · 2.54 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
Code.eval_file("mess.exs", (if File.exists?("../../lib/mix/mess.exs"), do: "../../lib/mix/"))
defmodule Bonfire.UI.Me.MixProject do
use Mix.Project
def project do
if System.get_env("AS_UMBRELLA") == "1" do
[
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock"
]
else
[]
end
++
[
app: :bonfire_ui_me,
version: "0.1.0",
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: Mix.compilers() ++ [:surface],
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps:
Mess.deps([
# {:phoenix_live_reload, "~> 1.2", only: :dev},
{:zest, "~> 0.1", only: :test},
{:mneme, ">= 0.0.0", only: [:dev, :test]},
{:bonfire,
git: "https://github.com/bonfire-networks/bonfire",
only: :test,
runtime: false
},
{:phoenix_test,
"~> 0.3",
# git: "https://github.com/germsvel/phoenix_test",
only: :test, runtime: false}
# {:bonfire_tag,
# git: "https://github.com/bonfire-networks/bonfire_tag",
#
# optional: true, runtime: false},
# {:bonfire_social,
# git: "https://github.com/bonfire-networks/bonfire_social",
#
# optional: true, runtime: false},
# {:bonfire_valueflows, "https://github.com/bonfire-networks/bonfire_valueflows", optional: true, runtime: false}
# {:bonfire_ui_valueflows, "https://github.com/bonfire-networks/bonfire_ui_valueflows", optional: true, runtime: false}
]),
package: [
licenses: ["AGPL v3"]
]
]
end
def application, do: [extra_applications: [:logger, :runtime_tools]]
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
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"],
setup: [
"hex.setup",
"rebar.setup",
"deps.get",
"ecto.setup",
"js.deps.get"
],
updates: ["deps.get", "ecto.migrate", "js.deps.get"],
"ecto.setup": ["ecto.create", "ecto.migrate", "ecto.seeds"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["test"],
"test.with-db": ["ecto.create --quiet", "ecto.migrate --quiet", "test"]
]
end
end