mix.exs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. defmodule Fourletters.MixProject do
  2. use Mix.Project
  3. def project do
  4. [
  5. app: :fourletters,
  6. version: "0.1.0",
  7. elixir: "~> 1.7",
  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. [
  20. mod: {Fourletters.Application, []},
  21. extra_applications: [:logger, :runtime_tools]
  22. ]
  23. end
  24. # Specifies which paths to compile per environment.
  25. defp elixirc_paths(:test), do: ["lib", "test/support"]
  26. defp elixirc_paths(_), do: ["lib"]
  27. # Specifies your project dependencies.
  28. #
  29. # Type `mix help deps` for examples and options.
  30. defp deps do
  31. [
  32. {:phoenix, "~> 1.5.10"},
  33. {:phoenix_html, "~> 2.11"},
  34. {:phoenix_live_reload, "~> 1.2", only: :dev},
  35. {:phoenix_live_dashboard, "~> 0.4"},
  36. {:telemetry_metrics, "~> 0.4"},
  37. {:telemetry_poller, "~> 0.4"},
  38. {:gettext, "~> 0.11"},
  39. {:jason, "~> 1.0"},
  40. {:plug_cowboy, "~> 2.2"}
  41. ]
  42. end
  43. # Aliases are shortcuts or tasks specific to the current project.
  44. # For example, to install project dependencies and perform other setup tasks, run:
  45. #
  46. # $ mix setup
  47. #
  48. # See the documentation for `Mix` for more info on aliases.
  49. defp aliases do
  50. [
  51. setup: ["deps.get"]
  52. ]
  53. end
  54. end