Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.7KB

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