2021-03-19 19:32:18 +00:00
|
|
|
defmodule Legendary.Content.MixProject do
|
2020-07-20 22:04:04 +00:00
|
|
|
use Mix.Project
|
|
|
|
|
2021-09-26 21:36:54 +00:00
|
|
|
@version "4.1.1"
|
2021-03-19 20:14:27 +00:00
|
|
|
|
2020-07-20 22:04:04 +00:00
|
|
|
def project do
|
|
|
|
[
|
|
|
|
app: :content,
|
2021-03-19 20:37:17 +00:00
|
|
|
version: @version,
|
2020-07-20 22:04:04 +00:00
|
|
|
build_path: "../../_build",
|
|
|
|
config_path: "../../config/config.exs",
|
|
|
|
deps_path: "../../deps",
|
|
|
|
lockfile: "../../mix.lock",
|
2020-07-22 19:22:44 +00:00
|
|
|
elixir: "~> 1.7",
|
|
|
|
elixirc_paths: elixirc_paths(Mix.env()),
|
|
|
|
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
|
|
|
|
start_permanent: Mix.env() == :prod,
|
2020-07-20 22:04:04 +00:00
|
|
|
aliases: aliases(),
|
|
|
|
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-20 22:04:04 +00:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
# Configuration for the OTP application.
|
|
|
|
#
|
|
|
|
# Type `mix help compile.app` for more information.
|
|
|
|
def application do
|
|
|
|
[
|
2021-03-19 19:32:18 +00:00
|
|
|
mod: {Legendary.Content.Application, []},
|
2020-07-20 22:04:04 +00:00
|
|
|
extra_applications: [:logger, :runtime_tools, :sitemap]
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
# Specifies which paths to compile per environment.
|
|
|
|
defp elixirc_paths(:test), do: ["lib", "test/support"]
|
2020-07-22 19:22:44 +00:00
|
|
|
defp elixirc_paths(_), do: ["lib"]
|
2020-07-20 22:04:04 +00:00
|
|
|
|
|
|
|
# Specifies your project dependencies.
|
|
|
|
#
|
|
|
|
# Type `mix help deps` for examples and options.
|
|
|
|
defp deps do
|
|
|
|
[
|
2020-07-22 19:22:44 +00:00
|
|
|
{:core, in_umbrella: true},
|
2021-06-24 16:03:16 +00:00
|
|
|
{:earmark, "1.4.15"},
|
2020-07-22 19:22:44 +00:00
|
|
|
{:excoveralls, "~> 0.10", only: [:dev, :test]},
|
2021-06-19 17:26:20 +00:00
|
|
|
{:floki, ">= 0.30.0"},
|
2020-07-22 19:22:44 +00:00
|
|
|
{:gettext, "~> 0.11"},
|
2021-08-14 16:23:37 +00:00
|
|
|
{:html_sanitize_ex, "~> 1.4.1"},
|
2020-07-22 19:22:44 +00:00
|
|
|
{:jason, "~> 1.0"},
|
2021-08-15 14:49:37 +00:00
|
|
|
{:mime, "~> 2.0.1"},
|
2020-07-22 19:22:44 +00:00
|
|
|
{:mock, "~> 0.3.0", only: :test},
|
|
|
|
{:meck, "~> 0.8.13", only: :test},
|
|
|
|
{:neotomex, "~> 0.1.7"},
|
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"},
|
|
|
|
{:ecto_sql, "~> 3.7"},
|
|
|
|
{: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"},
|
2021-06-24 16:03:27 +00:00
|
|
|
{:php_serializer, "~> 2.0.0"},
|
2020-07-22 19:22:44 +00:00
|
|
|
{:plug_cowboy, "~> 2.0"},
|
2020-07-20 22:04:04 +00:00
|
|
|
{:sitemap, "~> 1.1"},
|
2020-07-22 19:22:44 +00:00
|
|
|
{:slugger, "~> 0.3"},
|
|
|
|
{:telemetry_metrics, "~> 0.4"},
|
2021-09-26 22:40:56 +00:00
|
|
|
{:telemetry_poller, "~> 1.0"},
|
2020-07-22 19:22:44 +00:00
|
|
|
{:timex, "~> 3.1"},
|
2020-07-20 22:04:04 +00:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
# Aliases are shortcuts or tasks specific to the current project.
|
|
|
|
# For example, to create, migrate and run the seeds file at once:
|
|
|
|
#
|
|
|
|
# $ mix ecto.setup
|
|
|
|
#
|
|
|
|
# See the documentation for `Mix` for more info on aliases.
|
|
|
|
defp aliases do
|
|
|
|
[
|
|
|
|
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
|
|
|
|
"ecto.reset": ["ecto.drop", "ecto.setup"],
|
2020-09-15 20:51:32 +00:00
|
|
|
test: ["ecto.create --quiet", "ecto.migrate", "test"],
|
|
|
|
"npm.install": [],
|
2020-07-20 22:04:04 +00:00
|
|
|
]
|
|
|
|
end
|
|
|
|
end
|