2019-08-15 02:32:32 +02:00
|
|
|
defmodule Philomena.MixProject do
|
|
|
|
use Mix.Project
|
|
|
|
|
|
|
|
def project do
|
|
|
|
[
|
|
|
|
app: :philomena,
|
2020-08-03 21:37:02 +02:00
|
|
|
version: "1.1.0",
|
2019-08-15 02:32:32 +02:00
|
|
|
elixir: "~> 1.5",
|
|
|
|
elixirc_paths: elixirc_paths(Mix.env()),
|
2023-05-18 16:23:17 +02:00
|
|
|
compilers: Mix.compilers(),
|
2019-08-15 02:32:32 +02:00
|
|
|
start_permanent: Mix.env() == :prod,
|
|
|
|
aliases: aliases(),
|
2020-08-08 02:23:36 +02:00
|
|
|
deps: deps(),
|
2024-06-18 19:21:06 +02:00
|
|
|
dialyzer: [plt_add_apps: [:mix]],
|
|
|
|
docs: [formatters: ["html"]]
|
2019-08-15 02:32:32 +02:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
# Configuration for the OTP application.
|
|
|
|
#
|
|
|
|
# Type `mix help compile.app` for more information.
|
|
|
|
def application do
|
|
|
|
[
|
|
|
|
mod: {Philomena.Application, []},
|
2020-07-29 00:27:58 +02:00
|
|
|
extra_applications: [:logger, :canada, :runtime_tools]
|
2019-08-15 02:32:32 +02:00
|
|
|
]
|
|
|
|
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
|
|
|
|
[
|
2024-06-13 04:01:57 +02:00
|
|
|
{:phoenix, "~> 1.7"},
|
2023-02-18 22:26:26 +01:00
|
|
|
{:phoenix_pubsub, "~> 2.1"},
|
|
|
|
{:phoenix_ecto, "~> 4.4"},
|
|
|
|
{:ecto_sql, "~> 3.9"},
|
2019-08-15 02:32:32 +02:00
|
|
|
{:postgrex, ">= 0.0.0"},
|
2023-02-19 20:47:36 +01:00
|
|
|
{:phoenix_html, "~> 3.3"},
|
2023-05-18 16:23:17 +02:00
|
|
|
{:phoenix_view, "~> 2.0"},
|
2023-02-18 22:26:26 +01:00
|
|
|
{:phoenix_live_reload, "~> 1.4", only: :dev},
|
|
|
|
{:gettext, "~> 0.22"},
|
|
|
|
{:jason, "~> 1.4"},
|
2024-06-20 22:20:36 +02:00
|
|
|
{:bandit, "~> 1.2"},
|
2024-06-13 04:01:57 +02:00
|
|
|
{:slime, "~> 1.3.1"},
|
2023-02-19 20:47:36 +01:00
|
|
|
{:phoenix_slime, "~> 0.13",
|
|
|
|
github: "slime-lang/phoenix_slime", ref: "8944de91654d6fcf6bdcc0aed6b8647fe3398241"},
|
2020-10-26 22:01:29 +01:00
|
|
|
{:phoenix_pubsub_redis, "~> 3.0"},
|
2020-04-27 21:18:43 +02:00
|
|
|
{:ecto_network, "~> 1.3"},
|
2023-02-18 22:26:26 +01:00
|
|
|
{:bcrypt_elixir, "~> 3.0"},
|
2021-01-21 20:46:23 +01:00
|
|
|
{:pot, "~> 1.0"},
|
|
|
|
{:secure_compare, "~> 0.1"},
|
2023-02-18 22:26:26 +01:00
|
|
|
{:nimble_parsec, "~> 1.2"},
|
2024-08-15 23:22:32 +02:00
|
|
|
{:scrivener_ecto,
|
|
|
|
github: "krns/scrivener_ecto", ref: "eaad1ddd86a9c8ffa422479417221265a0673777"},
|
2023-09-27 20:16:59 +02:00
|
|
|
{:pbkdf2, ">= 0.0.0",
|
|
|
|
github: "basho/erlang-pbkdf2", ref: "7e9bd5fcd3cc3062159e4c9214bb628aa6feb5ca"},
|
2021-01-21 20:46:23 +01:00
|
|
|
{:qrcode, "~> 0.1"},
|
2023-02-18 22:26:26 +01:00
|
|
|
{:redix, "~> 1.2"},
|
|
|
|
{:remote_ip, "~> 1.1"},
|
|
|
|
{:briefly, "~> 0.4"},
|
2024-06-20 05:03:44 +02:00
|
|
|
{:req, "~> 0.5"},
|
2023-02-18 22:26:26 +01:00
|
|
|
{:exq, "~> 0.17"},
|
2022-05-16 23:21:10 +02:00
|
|
|
{:ex_aws, "~> 2.0",
|
|
|
|
github: "liamwhite/ex_aws", ref: "a340859dd8ac4d63bd7a3948f0994e493e49bda4", override: true},
|
2022-02-06 19:27:01 +01:00
|
|
|
{:ex_aws_s3, "~> 2.0"},
|
|
|
|
{:sweet_xml, "~> 0.7"},
|
2023-02-18 22:26:26 +01:00
|
|
|
{:inet_cidr, "~> 1.0"},
|
2021-04-01 18:49:41 +02:00
|
|
|
|
2024-03-04 02:10:35 +01:00
|
|
|
# SMTP
|
2024-06-02 06:49:01 +02:00
|
|
|
{:swoosh, "~> 1.16"},
|
|
|
|
{:mua, "~> 0.2.0"},
|
|
|
|
{:mail, "~> 0.3.0"},
|
2024-03-04 02:10:35 +01:00
|
|
|
|
2021-09-11 02:37:13 +02:00
|
|
|
# Markdown
|
2023-02-18 22:26:26 +01:00
|
|
|
{:rustler, "~> 0.27"},
|
2021-09-11 02:37:13 +02:00
|
|
|
|
2021-04-01 18:49:41 +02:00
|
|
|
# Linting
|
2024-06-13 04:01:57 +02:00
|
|
|
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
|
2021-04-01 18:49:41 +02:00
|
|
|
{:credo_envvar, "~> 0.1", only: [:dev, :test], runtime: false},
|
2023-02-18 22:26:26 +01:00
|
|
|
{:credo_naming, "~> 2.0", only: [:dev, :test], runtime: false},
|
2024-06-18 19:21:06 +02:00
|
|
|
{:ex_doc, "~> 0.30", only: [:dev], runtime: false},
|
2021-04-01 18:49:41 +02:00
|
|
|
|
|
|
|
# Security checks
|
|
|
|
{:sobelow, "~> 0.11", only: [:dev, :test], runtime: true},
|
2023-02-18 22:26:26 +01:00
|
|
|
{:mix_audit, "~> 2.1", only: [:dev, :test], runtime: false},
|
2021-04-01 18:49:41 +02:00
|
|
|
|
|
|
|
# Static analysis
|
2023-02-18 22:26:26 +01:00
|
|
|
{:dialyxir, "~> 1.2", only: :dev, runtime: false},
|
2022-07-03 11:03:43 +02:00
|
|
|
|
2024-03-04 17:56:56 +01:00
|
|
|
# Fixes for Elixir v1.15+
|
|
|
|
{:canary, "~> 1.1",
|
|
|
|
github: "marcinkoziej/canary", ref: "704debde7a2c0600f78c687807884bf37c45bd79"}
|
2019-08-15 02:32:32 +02: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
|
|
|
|
[
|
2019-12-02 16:58:12 +01:00
|
|
|
"ecto.setup": ["ecto.create", "ecto.load", "run priv/repo/seeds.exs"],
|
2020-01-11 05:20:19 +01:00
|
|
|
"ecto.setup_dev": [
|
|
|
|
"ecto.create",
|
|
|
|
"ecto.load",
|
|
|
|
"run priv/repo/seeds.exs",
|
|
|
|
"run priv/repo/seeds_development.exs"
|
|
|
|
],
|
2019-08-15 02:32:32 +02:00
|
|
|
"ecto.reset": ["ecto.drop", "ecto.setup"],
|
2019-12-02 16:02:48 +01:00
|
|
|
"ecto.migrate": ["ecto.migrate", "ecto.dump"],
|
2020-07-28 22:56:26 +02:00
|
|
|
"ecto.rollback": ["ecto.rollback", "ecto.dump"]
|
2019-08-15 02:32:32 +02:00
|
|
|
]
|
|
|
|
end
|
|
|
|
end
|