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(),
|
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"},
|
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"},
|
|
|
|
{:ranch, "~> 2.1", override: true},
|
|
|
|
{:plug_cowboy, "~> 2.6"},
|
2023-09-27 20:16:59 +02:00
|
|
|
{:slime, "~> 1.3.0",
|
|
|
|
github: "liamwhite/slime", ref: "cd4ced179197daa596bbb9d313f3808103c9624e", override: true},
|
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
|
|
|
{:elastix, "~> 0.10"},
|
|
|
|
{:nimble_parsec, "~> 1.2"},
|
2021-01-21 20:46:23 +01:00
|
|
|
{:canary, "~> 1.1"},
|
|
|
|
{:scrivener_ecto, "~> 2.7"},
|
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"},
|
|
|
|
{:bamboo, "~> 2.2"},
|
|
|
|
{:bamboo_smtp, "~> 4.2"},
|
|
|
|
{:remote_ip, "~> 1.1"},
|
|
|
|
{:briefly, "~> 0.4"},
|
|
|
|
{:tesla, "~> 1.5"},
|
|
|
|
{:castore, "~> 1.0", override: true},
|
|
|
|
{:mint, "~> 1.4"},
|
|
|
|
{: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
|
|
|
|
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
|
2023-02-18 22:26:26 +01:00
|
|
|
{:credo, "~> 1.6", only: [:dev, :test], override: true},
|
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},
|
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
|
|
|
|
|
|
|
# Fixes for OTP/25
|
|
|
|
{:neotoma, "~> 1.7.3", manager: :rebar3, override: true},
|
2023-02-18 22:26:26 +01:00
|
|
|
{:hut, "~> 1.4.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
|