Add web push support
[akkoma] / mix.exs
1 defmodule Pleroma.Mixfile do
2 use Mix.Project
3
4 def project do
5 [
6 app: :pleroma,
7 version: "0.9.0",
8 elixir: "~> 1.4",
9 elixirc_paths: elixirc_paths(Mix.env()),
10 compilers: [:phoenix, :gettext] ++ Mix.compilers(),
11 start_permanent: Mix.env() == :prod,
12 aliases: aliases(),
13 deps: deps()
14 ]
15 end
16
17 # Configuration for the OTP application.
18 #
19 # Type `mix help compile.app` for more information.
20 def application do
21 [mod: {Pleroma.Application, []}, extra_applications: [:logger, :runtime_tools, :comeonin]]
22 end
23
24 # Specifies which paths to compile per environment.
25 defp elixirc_paths(:test), do: ["lib", "test/support"]
26 defp elixirc_paths(_), do: ["lib"]
27
28 # Specifies your project dependencies.
29 #
30 # Type `mix help deps` for examples and options.
31 defp deps do
32 [
33 {:phoenix, "~> 1.3.3"},
34 {:phoenix_pubsub, "~> 1.0.2"},
35 {:phoenix_ecto, "~> 3.3"},
36 {:postgrex, ">= 0.13.5"},
37 {:gettext, "~> 0.15"},
38 {:cowboy, "~> 1.1.2", override: true},
39 {:comeonin, "~> 4.1.1"},
40 {:pbkdf2_elixir, "~> 0.12.3"},
41 {:trailing_format_plug, "~> 0.0.7"},
42 {:html_sanitize_ex, "~> 1.3.0"},
43 {:phoenix_html, "~> 2.10"},
44 {:calendar, "~> 0.17.4"},
45 {:cachex, "~> 3.0.2"},
46 {:httpoison, "~> 1.2.0"},
47 {:jason, "~> 1.0"},
48 {:mogrify, "~> 0.6.1"},
49 {:ex_aws, "~> 2.0"},
50 {:ex_aws_s3, "~> 2.0"},
51 {:ex_machina, "~> 2.2", only: :test},
52 {:credo, "~> 0.9.3", only: [:dev, :test]},
53 {:mock, "~> 0.3.1", only: :test},
54 {:crypt,
55 git: "https://github.com/msantos/crypt", ref: "1f2b58927ab57e72910191a7ebaeff984382a1d3"},
56 {:web_push_encryption, "~> 0.2.1"}
57 ]
58 end
59
60 # Aliases are shortcuts or tasks specific to the current project.
61 # For example, to create, migrate and run the seeds file at once:
62 #
63 # $ mix ecto.setup
64 #
65 # See the documentation for `Mix` for more info on aliases.
66 defp aliases do
67 [
68 "ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
69 "ecto.reset": ["ecto.drop", "ecto.setup"],
70 test: ["ecto.create --quiet", "ecto.migrate", "test"]
71 ]
72 end
73 end