mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
76 lines
1.9 KiB
Elixir
76 lines
1.9 KiB
Elixir
defmodule FirezoneUmbrella.MixProject do
|
|
@moduledoc """
|
|
Welcome to the Firezone Elixir Umbrella Project
|
|
"""
|
|
|
|
use Mix.Project
|
|
|
|
@version_path "scripts/version.exs"
|
|
|
|
def version do
|
|
Code.eval_file(@version_path)
|
|
|> elem(0)
|
|
end
|
|
|
|
def project do
|
|
[
|
|
name: :firezone,
|
|
apps_path: "apps",
|
|
version: version(),
|
|
start_permanent: Mix.env() == :prod,
|
|
test_coverage: [tool: ExCoveralls],
|
|
preferred_cli_env: [
|
|
coveralls: :test,
|
|
"coveralls.detail": :test,
|
|
"coveralls.post": :test,
|
|
"coveralls.html": :test
|
|
],
|
|
docs: [
|
|
logo: "apps/fz_http/assets/static/images/logo.svg",
|
|
extras: ["README.md", "SECURITY.md", "CONTRIBUTING.md"]
|
|
],
|
|
deps: deps(),
|
|
dialyzer: [
|
|
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
|
|
],
|
|
aliases: aliases(),
|
|
default_release: :firezone,
|
|
releases: [
|
|
firezone: [
|
|
include_executables_for: [:unix],
|
|
validate_compile_env: false,
|
|
applications: [
|
|
fz_http: :permanent,
|
|
fz_wall: :permanent,
|
|
fz_vpn: :permanent
|
|
],
|
|
cookie: System.get_env("ERL_COOKIE")
|
|
]
|
|
]
|
|
]
|
|
end
|
|
|
|
# Dependencies listed here are available only for this
|
|
# project and cannot be accessed from applications inside
|
|
# the apps folder.
|
|
#
|
|
# Run "mix help deps" for examples and options.
|
|
defp deps do
|
|
[
|
|
{:ex_doc, "~> 0.24", only: :dev, runtime: false},
|
|
{:excoveralls, "~> 0.14", only: :test},
|
|
{:mix_test_watch, "~> 1.0", only: :dev, runtime: false},
|
|
{:dialyxir, "~> 1.1", only: [:dev], runtime: false}
|
|
]
|
|
end
|
|
|
|
defp aliases do
|
|
[
|
|
"ecto.seed": "run apps/fz_http/priv/repo/seeds.exs",
|
|
"ecto.setup": ["ecto.create", "ecto.migrate", "ecto.seed"],
|
|
"ecto.reset": ["ecto.drop", "ecto.setup"],
|
|
start: ["compile --no-validate-compile-env", "phx.server", "run --no-halt"]
|
|
]
|
|
end
|
|
end
|