mix.exs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. defmodule PodcastFeed.MixProject do
  2. use Mix.Project
  3. def project do
  4. [
  5. app: :podcast_feed,
  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: {PodcastFeed.Application, []},
  21. extra_applications: [:logger, :runtime_tools, :elixir_xml_to_map]
  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.3"},
  33. # {:phoenix_ecto, "~> 4.1"},
  34. # {:ecto_sql, "~> 3.4"},
  35. # {:postgrex, ">= 0.0.0"},
  36. {:phoenix_html, "~> 2.11"},
  37. {:phoenix_live_reload, "~> 1.2", only: :dev},
  38. {:phoenix_live_dashboard, "~> 0.2.0"},
  39. {:telemetry_metrics, "~> 0.4"},
  40. {:telemetry_poller, "~> 0.4"},
  41. {:gettext, "~> 0.11"},
  42. {:jason, "~> 1.0"},
  43. {:plug_cowboy, "~> 2.0"},
  44. {:elixir_xml_to_map, "~> 1.0"},
  45. {:calendar, "~> 1.0.0"},
  46. {:distillery, "~> 2.0"}
  47. ]
  48. end
  49. # Aliases are shortcuts or tasks specific to the current project.
  50. # For example, to install project dependencies and perform other setup tasks, run:
  51. #
  52. # $ mix setup
  53. #
  54. # See the documentation for `Mix` for more info on aliases.
  55. defp aliases do
  56. [
  57. setup: ["deps.get", "ecto.setup", "cmd npm install --prefix assets"],
  58. "ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
  59. "ecto.reset": ["ecto.drop", "ecto.setup"],
  60. test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"]
  61. ]
  62. end
  63. end