Refactor code to comply with credo suggestions
[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, :comeonin]]
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", override: true},
37 {:comeonin, "~> 3.0"},
38 {:trailing_format_plug, "~> 0.0.5" },
39 {:html_sanitize_ex, "~> 1.0.0"},
40 {:calendar, "~> 0.16.1"},
41 {:cachex, "~> 2.1"},
42 {:httpoison, "~> 0.11.1"},
43 {:ex_machina, "~> 2.0", only: :test},
44 {:credo, "~> 0.7", only: [:dev, :test]},
45 {:mix_test_watch, "~> 0.2", only: :dev}]
46 end
47
48 # Aliases are shortcuts or tasks specific to the current project.
49 # For example, to create, migrate and run the seeds file at once:
50 #
51 # $ mix ecto.setup
52 #
53 # See the documentation for `Mix` for more info on aliases.
54 defp aliases do
55 ["ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
56 "ecto.reset": ["ecto.drop", "ecto.setup"],
57 "test": ["ecto.create --quiet", "ecto.migrate", "test"]]
58 end
59 end