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(),
|
|
|
|
dialyzer: [plt_add_apps: [:mix]]
|
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
|
|
|
|
[
|
2020-04-27 21:18:43 +02:00
|
|
|
{:phoenix, "~> 1.5"},
|
|
|
|
{:phoenix_pubsub, "~> 2.0"},
|
|
|
|
{:phoenix_ecto, "~> 4.1"},
|
|
|
|
{:ecto_sql, "~> 3.4"},
|
2019-08-15 02:32:32 +02:00
|
|
|
{:postgrex, ">= 0.0.0"},
|
2020-04-27 21:18:43 +02:00
|
|
|
{:phoenix_html, "~> 2.14"},
|
2019-08-15 02:32:32 +02:00
|
|
|
{:phoenix_live_reload, "~> 1.2", only: :dev},
|
2020-04-27 21:18:43 +02:00
|
|
|
{:gettext, "~> 0.17"},
|
|
|
|
{:jason, "~> 1.1"},
|
2020-06-12 19:08:38 +02:00
|
|
|
{:plug_cowboy, "~> 2.3"},
|
2020-04-27 21:18:43 +02:00
|
|
|
{:phoenix_slime, "~> 0.13"},
|
|
|
|
{:ecto_network, "~> 1.3"},
|
2020-07-28 22:56:26 +02:00
|
|
|
{:bcrypt_elixir, "~> 2.0"},
|
2020-04-27 21:18:43 +02:00
|
|
|
{:pot, "~> 0.11"},
|
2019-08-19 03:43:06 +02:00
|
|
|
{:secure_compare, "~> 0.1.0"},
|
2020-04-27 21:18:43 +02:00
|
|
|
{:elastix, "~> 0.8.0"},
|
|
|
|
{:nimble_parsec, "~> 0.5.3"},
|
2019-10-09 01:19:57 +02:00
|
|
|
{:canary, "~> 1.1.1"},
|
2020-04-27 21:18:43 +02:00
|
|
|
{:scrivener_ecto, "~> 2.3"},
|
2019-11-13 05:49:37 +01:00
|
|
|
{:pbkdf2, "~> 2.0"},
|
2019-11-13 17:28:02 +01:00
|
|
|
{:qrcode, "~> 0.1.5"},
|
2020-04-27 21:18:43 +02:00
|
|
|
{:redix, "~> 0.10"},
|
|
|
|
{:bamboo, "~> 1.4"},
|
|
|
|
{:bamboo_smtp, "~> 2.1"},
|
|
|
|
{:remote_ip, "~> 0.2"},
|
2019-12-04 17:35:06 +01:00
|
|
|
{:briefly, "~> 0.3.0"},
|
2019-12-06 03:46:51 +01:00
|
|
|
{:phoenix_mtm, "~> 1.0.0"},
|
2019-12-07 16:16:59 +01:00
|
|
|
{:yaml_elixir, "~> 2.4.0"},
|
2020-05-13 20:26:10 +02:00
|
|
|
{:ranch_connection_drainer, "~> 0.1"},
|
|
|
|
{:tesla, "~> 1.3"},
|
|
|
|
{:castore, "~> 0.1"},
|
2020-05-20 20:36:31 +02:00
|
|
|
{:mint, "~> 1.1"},
|
2020-05-27 23:04:55 +02:00
|
|
|
{:exq, "~> 0.13"},
|
2020-05-20 20:23:57 +02:00
|
|
|
{:dialyxir, "~> 1.0", only: :dev, runtime: false}
|
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
|