f38ce95af6a706220f9e21ea80cfff27240fce84
[akkoma] / mix.exs
1 defmodule Pleroma.Mixfile do
2 use Mix.Project
3
4 def project do
5 [app: :pleroma,
6 version: "0.0.1",
7 elixir: "~> 1.4",
8 elixirc_paths: elixirc_paths(Mix.env),
9 compilers: [:phoenix, :gettext] ++ Mix.compilers,
10 start_permanent: Mix.env == :prod,
11 aliases: aliases(),
12 deps: deps()]
13 end
14
15 # Configuration for the OTP application.
16 #
17 # Type `mix help compile.app` for more information.
18 def application do
19 [mod: {Pleroma.Application, []},
20 extra_applications: [:logger, :runtime_tools]]
21 end
22
23 # Specifies which paths to compile per environment.
24 defp elixirc_paths(:test), do: ["lib", "test/support"]
25 defp elixirc_paths(_), do: ["lib"]
26
27 # Specifies your project dependencies.
28 #
29 # Type `mix help deps` for examples and options.
30 defp deps do
31 [{:phoenix, "~> 1.3.0-rc"},
32 {:phoenix_pubsub, "~> 1.0"},
33 {:phoenix_ecto, "~> 3.2"},
34 {:postgrex, ">= 0.0.0"},
35 {:gettext, "~> 0.11"},
36 {:cowboy, "~> 1.0"}]
37 end
38
39 # Aliases are shortcuts or tasks specific to the current project.
40 # For example, to create, migrate and run the seeds file at once:
41 #
42 # $ mix ecto.setup
43 #
44 # See the documentation for `Mix` for more info on aliases.
45 defp aliases do
46 ["ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
47 "ecto.reset": ["ecto.drop", "ecto.setup"],
48 "test": ["ecto.create --quiet", "ecto.migrate", "test"]]
49 end
50 end