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.

67 lines
1.9KB

  1. defmodule Pleroma.Mixfile do
  2. use Mix.Project
  3. def project do
  4. [
  5. app: :pleroma,
  6. version: "0.9.0",
  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. ]
  14. end
  15. # Configuration for the OTP application.
  16. #
  17. # Type `mix help compile.app` for more information.
  18. def application do
  19. [mod: {Pleroma.Application, []}, extra_applications: [:logger, :runtime_tools, :comeonin]]
  20. end
  21. # Specifies which paths to compile per environment.
  22. defp elixirc_paths(:test), do: ["lib", "test/support"]
  23. defp elixirc_paths(_), do: ["lib"]
  24. # Specifies your project dependencies.
  25. #
  26. # Type `mix help deps` for examples and options.
  27. defp deps do
  28. [
  29. {:phoenix, "~> 1.3.0"},
  30. {:phoenix_pubsub, "~> 1.0"},
  31. {:phoenix_ecto, "~> 3.2"},
  32. {:postgrex, ">= 0.0.0"},
  33. {:gettext, "~> 0.11"},
  34. {:cowboy, "~> 1.0", override: true},
  35. {:comeonin, "~> 3.0"},
  36. {:trailing_format_plug, "~> 0.0.5"},
  37. {:html_sanitize_ex, "~> 1.3.0-rc1"},
  38. {:phoenix_html, "~> 2.10"},
  39. {:calendar, "~> 0.16.1"},
  40. {:cachex, "~> 2.1"},
  41. {:httpoison, "~> 0.11.2"},
  42. {:jason, "~> 1.0"},
  43. {:ex_machina, "~> 2.0", only: :test},
  44. {:credo, "~> 0.7", only: [:dev, :test]},
  45. {:mock, "~> 0.3.0", only: :test}
  46. ]
  47. end
  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. [
  56. "ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
  57. "ecto.reset": ["ecto.drop", "ecto.setup"],
  58. test: ["ecto.create --quiet", "ecto.migrate", "test"]
  59. ]
  60. end
  61. end