81 lines
2.4 KiB
Elixir
81 lines
2.4 KiB
Elixir
defmodule Legendary.ObjectStorage.MixProject do
|
|
use Mix.Project
|
|
|
|
@version "4.2.0"
|
|
|
|
def project do
|
|
[
|
|
app: :object_storage,
|
|
version: @version,
|
|
build_path: "../../_build",
|
|
config_path: "../../config/config.exs",
|
|
deps_path: "../../deps",
|
|
lockfile: "../../mix.lock",
|
|
elixir: "~> 1.10",
|
|
elixirc_paths: elixirc_paths(Mix.env()),
|
|
start_permanent: Mix.env() == :prod,
|
|
aliases: aliases(),
|
|
deps: deps(),
|
|
test_coverage: [tool: ExCoveralls],
|
|
preferred_cli_env: [coveralls: :test, "coveralls.detail": :test, "coveralls.post": :test, "coveralls.html": :test],
|
|
]
|
|
end
|
|
|
|
# Configuration for the OTP application.
|
|
#
|
|
# Type `mix help compile.app` for more information.
|
|
def application do
|
|
[
|
|
mod: {Legendary.ObjectStorage.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
|
|
[
|
|
{:core, in_umbrella: true},
|
|
{:credo, "~> 1.4", only: [:dev, :test], runtime: false},
|
|
{:ecto_sql, "~> 3.6"},
|
|
{:ex_aws, "~> 2.0"},
|
|
{:ex_aws_s3, "~> 2.0"},
|
|
{:floki, ">= 0.30.0", only: :test},
|
|
{:gettext, "~> 0.18"},
|
|
{:hackney, "~> 1.9"},
|
|
{:jason, "~> 1.2"},
|
|
{:mox, "~> 1.0", only: :test},
|
|
{:phoenix, "~> 1.6.0"},
|
|
{:phoenix_ecto, "~> 4.4"},
|
|
{:phoenix_html, "~> 3.0"},
|
|
{:phoenix_live_dashboard, "~> 0.5"},
|
|
{:phoenix_live_reload, "~> 1.2", only: :dev},
|
|
{:phoenix_live_view, "~> 0.16.0"},
|
|
{:phoenix_pubsub, "~> 2.0"},
|
|
{:plug_cowboy, "~> 2.5"},
|
|
{:postgrex, ">= 0.0.0"},
|
|
{:recase, "~> 0.7.0"},
|
|
{:sweet_xml, "~> 0.7.1"},
|
|
{:telemetry_metrics, "~> 0.6"},
|
|
{:telemetry_poller, "~> 1.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
|
|
[
|
|
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
|
|
"ecto.reset": ["ecto.drop", "ecto.setup"],
|
|
"npm.install": [],
|
|
setup: ["deps.get", "ecto.setup"],
|
|
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"]
|
|
]
|
|
end
|
|
end
|