mix.exs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. defmodule Giom.Mixfile do
  2. use Mix.Project
  3. def project do
  4. [
  5. app: :giom,
  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. ]
  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: {Giom.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.3.3"},
  33. {:phoenix_pubsub, "~> 1.0"},
  34. {:phoenix_ecto, "~> 3.2"},
  35. {:postgrex, ">= 0.0.0"},
  36. {:phoenix_html, "~> 2.10"},
  37. {:phoenix_live_reload, "~> 1.0", only: :dev},
  38. {:gettext, "~> 0.11"},
  39. {:cowboy, "~> 1.0"}
  40. ]
  41. end
  42. # Aliases are shortcuts or tasks specific to the current project.
  43. # For example, to create, migrate and run the seeds file at once:
  44. #
  45. # $ mix ecto.setup
  46. #
  47. # See the documentation for `Mix` for more info on aliases.
  48. defp aliases do
  49. [
  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. ]
  54. end
  55. end