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()),
|
|
|
|
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
|
|
|
|
start_permanent: Mix.env() == :prod,
|
|
|
|
aliases: aliases(),
|
2020-08-08 02:23:36 +02:00
|
|
|
deps: deps(),
|
2021-09-11 02:37:13 +02:00
|
|
|
dialyzer: [plt_add_apps: [:mix]],
|
2021-09-22 00:43:51 +02:00
|
|
|
rustler_crates: [philomena: []]
|
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
|
|
|
|
[
|
2021-09-28 01:07:54 +02:00
|
|
|
{:phoenix, "~> 1.6"},
|
2020-04-27 21:18:43 +02:00
|
|
|
{:phoenix_pubsub, "~> 2.0"},
|
2021-01-21 20:46:23 +01:00
|
|
|
{:phoenix_ecto, "~> 4.2"},
|
|
|
|
{:ecto_sql, "~> 3.5"},
|
2019-08-15 02:32:32 +02:00
|
|
|
{:postgrex, ">= 0.0.0"},
|
2020-04-27 21:18:43 +02:00
|
|
|
{:phoenix_html, "~> 2.14"},
|
2021-01-21 20:46:23 +01:00
|
|
|
{:phoenix_live_reload, "~> 1.3", only: :dev},
|
|
|
|
{:gettext, "~> 0.18"},
|
|
|
|
{:jason, "~> 1.2"},
|
|
|
|
{:ranch, "~> 1.6", override: true},
|
2020-06-12 19:08:38 +02:00
|
|
|
{:plug_cowboy, "~> 2.3"},
|
2020-04-27 21:18:43 +02:00
|
|
|
{:phoenix_slime, "~> 0.13"},
|
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"},
|
2021-01-21 20:46:23 +01:00
|
|
|
{:bcrypt_elixir, "~> 2.3"},
|
|
|
|
{:pot, "~> 1.0"},
|
|
|
|
{:secure_compare, "~> 0.1"},
|
|
|
|
{:elastix, "~> 0.8"},
|
|
|
|
{:nimble_parsec, "~> 1.1"},
|
|
|
|
{:canary, "~> 1.1"},
|
|
|
|
{:scrivener_ecto, "~> 2.7"},
|
2021-07-16 02:14:41 +02:00
|
|
|
{:pbkdf2, "~> 2.0",
|
|
|
|
github: "code-time/erlang-pbkdf2", ref: "f8f0012a97f58ade9c70ac93260e4259e4ca4b8d"},
|
2021-01-21 20:46:23 +01:00
|
|
|
{:qrcode, "~> 0.1"},
|
|
|
|
{:redix, "~> 0.10.0"},
|
|
|
|
{:bamboo, "~> 1.6"},
|
|
|
|
{:bamboo_smtp, "~> 3.1"},
|
2020-04-27 21:18:43 +02:00
|
|
|
{:remote_ip, "~> 0.2"},
|
2021-01-21 20:46:23 +01:00
|
|
|
{:briefly, "~> 0.3"},
|
|
|
|
{:phoenix_mtm, "~> 1.0"},
|
|
|
|
{:tesla, "~> 1.4"},
|
2020-05-13 20:26:10 +02:00
|
|
|
{:castore, "~> 0.1"},
|
2021-01-21 20:46:23 +01:00
|
|
|
{:mint, "~> 1.2"},
|
|
|
|
{:exq, "~> 0.14"},
|
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"},
|
2021-04-01 18:49:41 +02:00
|
|
|
|
2021-09-11 02:37:13 +02:00
|
|
|
# Markdown
|
|
|
|
{:rustler, "~> 0.22"},
|
|
|
|
|
2021-04-01 18:49:41 +02:00
|
|
|
# Linting
|
|
|
|
{:credo, "~> 1.5", only: [:dev, :test], override: true},
|
|
|
|
{:credo_envvar, "~> 0.1", only: [:dev, :test], runtime: false},
|
|
|
|
{:credo_naming, "~> 1.0", only: [:dev, :test], runtime: false},
|
|
|
|
|
|
|
|
# Security checks
|
|
|
|
{:sobelow, "~> 0.11", only: [:dev, :test], runtime: true},
|
|
|
|
{:mix_audit, "~> 0.1", only: [:dev, :test], runtime: false},
|
|
|
|
|
|
|
|
# Static analysis
|
2022-07-03 11:03:43 +02:00
|
|
|
{:dialyxir, "~> 1.0", only: :dev, runtime: false},
|
|
|
|
|
|
|
|
# Fixes for OTP/25
|
|
|
|
{:neotoma, "~> 1.7.3", manager: :rebar3, override: true},
|
|
|
|
{:hut, "~> 1.3.0", manager: :rebar3, override: true}
|
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
|