A last.fm clone written in Elixir
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.
 
 
 
 
 
 

83 lines
2.2 KiB

  1. defmodule Dagon.MixProject do
  2. use Mix.Project
  3. def project do
  4. [
  5. app: :dagon,
  6. version: "0.1.7",
  7. elixir: "~> 1.5",
  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: {Dagon.Application, []},
  21. extra_applications: [
  22. :logger,
  23. :logger_file_backend,
  24. :runtime_tools
  25. ]
  26. ]
  27. end
  28. # Specifies which paths to compile per environment.
  29. defp elixirc_paths(:test), do: ["lib", "test/support"]
  30. defp elixirc_paths(_), do: ["lib"]
  31. # Specifies your project dependencies.
  32. #
  33. # Type `mix help deps` for examples and options.
  34. defp deps do
  35. [
  36. {:arc, "~> 0.11.0"},
  37. {:arc_ecto, "~> 0.11.2"},
  38. {:cachex, "~> 3.2"},
  39. {:distillery, "~> 2.0"},
  40. {:ecto_sql, "~> 3.1"},
  41. {:edeliver, "~> 1.6"},
  42. {:ex_cli, "~> 0.1.0"},
  43. {:gettext, "~> 0.11"},
  44. {:httpoison, "~> 1.6"},
  45. {:jason, "~> 1.0"},
  46. {:logger_file_backend, "~> 0.0.11"},
  47. {:phoenix, "~> 1.4.10"},
  48. {:phoenix_ecto, "~> 4.0"},
  49. {:phoenix_html, "~> 2.11"},
  50. {:phoenix_live_reload, "~> 1.2", only: :dev},
  51. {:phoenix_pubsub, "~> 1.1"},
  52. {:plug_cowboy, "~> 2.0"},
  53. {:postgrex, ">= 0.0.0"},
  54. {:timex, "~> 3.6"},
  55. {:pow, "~> 1.0.19"},
  56. {:quantum, "~> 2.3"},
  57. {:que, "~> 0.10.1"}
  58. ]
  59. end
  60. # Aliases are shortcuts or tasks specific to the current project.
  61. # For example, to create, migrate and run the seeds file at once:
  62. #
  63. # $ mix ecto.setup
  64. #
  65. # See the documentation for `Mix` for more info on aliases.
  66. defp aliases do
  67. [
  68. "ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
  69. "ecto.reset": ["ecto.drop", "ecto.setup"],
  70. test: ["ecto.create --quiet", "ecto.migrate", "test"],
  71. restart: ["edeliver restart production"],
  72. migrate: ["edeliver migrate production"],
  73. deploy_ex: ["edeliver deploy release to production"],
  74. build_ex: ["edeliver build release"]
  75. ]
  76. end
  77. end