2020-07-29 17:07:36 +00:00
|
|
|
defmodule App.MixProject do
|
|
|
|
use Mix.Project
|
|
|
|
|
|
|
|
def project do
|
|
|
|
[
|
|
|
|
app: :app,
|
|
|
|
version: "0.1.0",
|
|
|
|
build_path: "../../_build",
|
|
|
|
config_path: "../../config/config.exs",
|
|
|
|
deps_path: "../../deps",
|
|
|
|
lockfile: "../../mix.lock",
|
2021-10-19 19:28:25 +00:00
|
|
|
elixir: "~> 1.10",
|
2020-07-29 17:07:36 +00:00
|
|
|
elixirc_paths: elixirc_paths(Mix.env()),
|
|
|
|
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
|
|
|
|
start_permanent: Mix.env() == :prod,
|
|
|
|
aliases: aliases(),
|
2020-07-31 17:52:57 +00:00
|
|
|
deps: deps(),
|
|
|
|
test_coverage: [tool: ExCoveralls],
|
2020-08-13 20:21:43 +00:00
|
|
|
preferred_cli_env: [coveralls: :test, "coveralls.detail": :test, "coveralls.post": :test, "coveralls.html": :test],
|
2020-07-29 17:07:36 +00:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
# Configuration for the OTP application.
|
|
|
|
#
|
|
|
|
# Type `mix help compile.app` for more information.
|
|
|
|
def application do
|
|
|
|
[
|
|
|
|
mod: {App.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
|
|
|
|
[
|
2020-09-30 20:10:17 +00:00
|
|
|
{:admin, in_umbrella: true},
|
|
|
|
{:content, in_umbrella: true},
|
2020-07-30 16:05:09 +00:00
|
|
|
{:core, in_umbrella: true},
|
2021-10-19 19:28:25 +00:00
|
|
|
{:object_storage, in_umbrella: true},
|
2021-09-26 22:40:56 +00:00
|
|
|
{:ecto_sql, "~> 3.7"},
|
2020-07-31 17:52:57 +00:00
|
|
|
{:excoveralls, "~> 0.10", only: [:dev, :test]},
|
2021-06-19 17:26:20 +00:00
|
|
|
{:floki, ">= 0.30.0"},
|
2021-09-26 22:40:56 +00:00
|
|
|
{:oban, "~> 2.9"},
|
2021-09-27 03:46:24 +00:00
|
|
|
{:phoenix, "~> 1.6.0"},
|
2021-09-26 22:40:56 +00:00
|
|
|
{:phoenix_ecto, "~> 4.4"},
|
|
|
|
{:phoenix_html, "~> 3.0.4", override: true},
|
2021-08-14 16:23:37 +00:00
|
|
|
{:phoenix_live_reload, "~> 1.3", only: :dev},
|
|
|
|
{:phoenix_live_dashboard, "~> 0.5.0"},
|
|
|
|
{:phoenix_live_view, "~> 0.16.0", override: true},
|
2020-07-29 17:07:36 +00:00
|
|
|
{:postgrex, ">= 0.0.0"},
|
|
|
|
{:telemetry_metrics, "~> 0.4"},
|
2021-09-26 22:40:56 +00:00
|
|
|
{:telemetry_poller, "~> 1.0"},
|
2020-07-29 17:07:36 +00:00
|
|
|
{:gettext, "~> 0.11"},
|
|
|
|
{:jason, "~> 1.0"},
|
|
|
|
{:plug_cowboy, "~> 2.0"}
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
# Aliases are shortcuts or tasks specific to the current project.
|
|
|
|
#
|
|
|
|
# See the documentation for `Mix` for more info on aliases.
|
|
|
|
defp aliases do
|
|
|
|
[
|
|
|
|
setup: ["deps.get", "cmd npm install --prefix assets"],
|
2020-09-15 20:51:32 +00:00
|
|
|
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"],
|
|
|
|
"npm.install": ["cmd npm install --prefix assets"],
|
2020-07-29 17:07:36 +00:00
|
|
|
]
|
|
|
|
end
|
|
|
|
end
|