-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmix.exs
executable file
·45 lines (42 loc) · 1.57 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
Code.eval_file("mess.exs", (if File.exists?("../../lib/mix/mess.exs"), do: "../../lib/mix/"))
defmodule Bonfire.UI.Common.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_common,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
compilers: Mix.compilers() ++ [:surface],
deps:
Mess.deps([
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:floki, "~> 0.36", only: :test},
{:zest, "~> 0.1", optional: true},
{:phoenix_test, "~> 0.3", only: :test, runtime: false},
# {:pages, "~> 0.12", only: :test} # extends Floki for testing
# {:bonfire_search, "https://github.com/bonfire-networks/bonfire_search", optional: true, runtime: false}
# {:bonfire_boundaries, git: "https://github.com/bonfire-networks/bonfire_boundaries", optional: true, runtime: false}
] ++ if(System.get_env("WITH_LV_NATIVE") in ["1", "true"], do: [
{:live_view_native, "~> 0.3.1"},
{:live_view_native_stylesheet, "~> 0.3.1"},
{:live_view_native_swiftui, "~> 0.3.1"},
{:live_view_native_live_form, "~> 0.3.1"}
], else: [])
)
]
end
# Run "mix help compile.app" to learn about applications.
def application, do: [extra_applications: [:logger]]
end