2019-08-15 02:32:32 +02:00
|
|
|
defmodule Philomena.MixProject do
|
|
|
|
use Mix.Project
|
|
|
|
|
|
|
|
def project do
|
|
|
|
[
|
|
|
|
app: :philomena,
|
2019-12-07 19:58:45 +01:00
|
|
|
version: "0.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(),
|
|
|
|
deps: deps()
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
# Configuration for the OTP application.
|
|
|
|
#
|
|
|
|
# Type `mix help compile.app` for more information.
|
|
|
|
def application do
|
|
|
|
[
|
|
|
|
mod: {Philomena.Application, []},
|
2019-12-07 19:00:31 +01:00
|
|
|
extra_applications: [:logger, :canada, :mnesia, :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
|
|
|
|
[
|
|
|
|
{:phoenix, "~> 1.4.9"},
|
|
|
|
{:phoenix_pubsub, "~> 1.1"},
|
|
|
|
{:phoenix_ecto, "~> 4.0"},
|
2020-03-09 23:23:16 +01:00
|
|
|
{:ecto_sql, "~> 3.3"},
|
2019-08-15 02:32:32 +02:00
|
|
|
{:postgrex, ">= 0.0.0"},
|
|
|
|
{:phoenix_html, "~> 2.11"},
|
|
|
|
{:phoenix_live_reload, "~> 1.2", only: :dev},
|
|
|
|
{:gettext, "~> 0.11"},
|
|
|
|
{:jason, "~> 1.0"},
|
2019-08-16 02:28:12 +02:00
|
|
|
{:plug_cowboy, "~> 2.0"},
|
|
|
|
{:phoenix_slime, "~> 0.12.0"},
|
|
|
|
{:ecto_network, "~> 1.1"},
|
2020-02-16 22:39:24 +01:00
|
|
|
{:pow, github: "danschultzer/pow"},
|
2019-08-18 00:06:11 +02:00
|
|
|
{:bcrypt_elixir, "~> 2.0"},
|
|
|
|
{:pot, "~> 0.10.1"},
|
2019-08-19 03:43:06 +02:00
|
|
|
{:secure_compare, "~> 0.1.0"},
|
2019-08-22 02:42:07 +02:00
|
|
|
{:elastix, "~> 0.7.1"},
|
2019-10-01 03:12:38 +02:00
|
|
|
{:nimble_parsec, "~> 0.5.1"},
|
2019-10-09 01:19:57 +02:00
|
|
|
{:canary, "~> 1.1.1"},
|
2019-10-31 18:57:39 +01:00
|
|
|
{:scrivener_ecto, "~> 2.0"},
|
2019-11-13 05:49:37 +01:00
|
|
|
{:pbkdf2, "~> 2.0"},
|
2019-11-13 17:28:02 +01:00
|
|
|
{:qrcode, "~> 0.1.5"},
|
2019-11-15 03:40:35 +01:00
|
|
|
{:redix, "~> 0.10.2"},
|
|
|
|
{:bamboo, "~> 1.2"},
|
2019-11-16 01:40:32 +01:00
|
|
|
{:bamboo_smtp, "~> 1.7"},
|
2019-11-20 06:34:45 +01:00
|
|
|
{:remote_ip, "~> 0.2.0"},
|
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-01-11 05:47:31 +01:00
|
|
|
{:distillery, "~> 2.1"},
|
|
|
|
{:dialyxir, "~> 0.5.1"}
|
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"],
|
|
|
|
"ecto.rollback": ["ecto.rollback", "ecto.dump"],
|
2019-12-02 16:58:12 +01:00
|
|
|
test: ["ecto.create --quiet", "ecto.load", "test"]
|
2019-08-15 02:32:32 +02:00
|
|
|
]
|
|
|
|
end
|
|
|
|
end
|