mix.exs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. defmodule Enchufe.Mixfile do
  2. use Mix.Project
  3. def project do
  4. [
  5. app: :enchufe,
  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. deps: deps()
  12. ]
  13. end
  14. # Configuration for the OTP application.
  15. #
  16. # Type `mix help compile.app` for more information.
  17. def application do
  18. [
  19. mod: {Enchufe.Application, []},
  20. extra_applications: [:logger, :runtime_tools]
  21. ]
  22. end
  23. # Specifies which paths to compile per environment.
  24. defp elixirc_paths(:test), do: ["lib", "test/support"]
  25. defp elixirc_paths(_), do: ["lib"]
  26. # Specifies your project dependencies.
  27. #
  28. # Type `mix help deps` for examples and options.
  29. defp deps do
  30. [
  31. {:phoenix, "~> 1.3.3"},
  32. {:phoenix_pubsub, "~> 1.0"},
  33. {:phoenix_html, "~> 2.10"},
  34. {:phoenix_live_reload, "~> 1.0", only: :dev},
  35. {:gettext, "~> 0.11"},
  36. {:cowboy, "~> 1.0"}
  37. ]
  38. end
  39. end