2019-08-15 02:32:32 +02:00
|
|
|
defmodule Philomena.MixProject do
|
|
|
|
use Mix.Project
|
|
|
|
|
|
|
|
def project do
|
|
|
|
[
|
|
|
|
app: :philomena,
|
|
|
|
version: "0.1.0",
|
|
|
|
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, []},
|
|
|
|
extra_applications: [:logger, :runtime_tools]
|
|
|
|
]
|
|
|
|
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"},
|
|
|
|
{:ecto_sql, "~> 3.1"},
|
|
|
|
{: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"},
|
2019-11-20 06:34:45 +01:00
|
|
|
{:pow, github: "danschultzer/pow", ref: "persistent-session-metadata", override: true},
|
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-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
|
|
|
|
[
|
|
|
|
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
|
|
|
|
"ecto.reset": ["ecto.drop", "ecto.setup"],
|
|
|
|
test: ["ecto.create --quiet", "ecto.migrate", "test"]
|
|
|
|
]
|
|
|
|
end
|
|
|
|
end
|