mix.exs 2.78 KB
Newer Older
Alex Castaño's avatar
Alex Castaño committed
1
defmodule MoodleNet.Mixfile do
Roger Braun's avatar
Roger Braun committed
2 3 4
  use Mix.Project

  def project do
lain's avatar
lain committed
5
    [
Alex Castaño's avatar
Alex Castaño committed
6
      app: :moodle_net,
Alex Castaño's avatar
Alex Castaño committed
7
      version: "0.0.8",
Alex Castaño's avatar
Alex Castaño committed
8
      elixir: "~> 1.7.4",
lain's avatar
lain committed
9 10 11 12 13 14
      elixirc_paths: elixirc_paths(Mix.env()),
      compilers: [:phoenix, :gettext] ++ Mix.compilers(),
      start_permanent: Mix.env() == :prod,
      aliases: aliases(),
      deps: deps()
    ]
Roger Braun's avatar
Roger Braun committed
15 16 17 18 19 20
  end

  # Configuration for the OTP application.
  #
  # Type `mix help compile.app` for more information.
  def application do
Alex Castaño's avatar
Alex Castaño committed
21
    [mod: {MoodleNet.Application, []}, extra_applications: [:logger, :runtime_tools, :comeonin]]
Roger Braun's avatar
Roger Braun committed
22 23 24 25
  end

  # Specifies which paths to compile per environment.
  defp elixirc_paths(:test), do: ["lib", "test/support"]
lain's avatar
lain committed
26
  defp elixirc_paths(_), do: ["lib"]
Roger Braun's avatar
Roger Braun committed
27 28 29 30 31

  # Specifies your project dependencies.
  #
  # Type `mix help deps` for examples and options.
  defp deps do
lain's avatar
lain committed
32
    [
33
      {:phoenix, "~> 1.4.0"},
Alex Castaño's avatar
Alex Castaño committed
34 35 36
      {:phoenix_pubsub, "~> 1.1"},
      {:phoenix_html, "~> 2.11"},
      {:phoenix_ecto, "~> 4.0"},
37
      {:phoenix_live_reload, "~> 1.2", only: :dev},
Alex Castaño's avatar
Alex Castaño committed
38 39 40
      {:ecto, "~> 3.0"},
      {:ecto_sql, "~> 3.0"},
      {:postgrex, "~> 0.14"},
Alex Castaño's avatar
Alex Castaño committed
41
      {:jason, "~> 1.1"},
artik banana's avatar
artik banana committed
42
      {:gettext, "~> 0.15"},
Alex Castaño's avatar
Alex Castaño committed
43
      {:cowboy, "~> 2.5"},
44 45
      {:plug_cowboy, "~> 2.0"},
      {:plug, "~> 1.7"},
artik banana's avatar
artik banana committed
46 47 48 49 50 51 52
      {:comeonin, "~> 4.1.1"},
      {:pbkdf2_elixir, "~> 0.12.3"},
      {:trailing_format_plug, "~> 0.0.7"},
      {:html_sanitize_ex, "~> 1.3.0"},
      {:calendar, "~> 0.17.4"},
      {:cachex, "~> 3.0.2"},
      {:httpoison, "~> 1.2.0"},
kaniini's avatar
kaniini committed
53
      {:mogrify, "~> 0.6.1"},
54 55
      {:ex_aws, "~> 2.0"},
      {:ex_aws_s3, "~> 2.0"},
Alex Castaño's avatar
Alex Castaño committed
56
      {:cors_plug, "~> 2.0"},
Alex Castaño's avatar
Alex Castaño committed
57
      {:distillery, "~> 2.0"},
58
      {:bamboo, "~> 1.1"},
Alex Castaño's avatar
Alex Castaño committed
59 60 61
      # FIXME using prod as well for the moment
      # {:faker, "~> 0.11", only: [:dev, :test]},
      {:faker, "~> 0.11"},
62
      {:recase, "~> 0.2"},
Alex Castaño's avatar
Alex Castaño committed
63 64
      {:absinthe, "~> 1.4"},
      {:absinthe_plug, "~> 1.4"},
65
      {:phoenix_integration, git: "https://github.com/alexcastano/phoenix_integration", only: :test},
66
      {:furlex, git: "https://github.com/alexcastano/furlex"},
artik banana's avatar
artik banana committed
67
      {:credo, "~> 0.9.3", only: [:dev, :test]},
68
      {:mock, "~> 0.3.1", only: :test},
Alex Castaño's avatar
Alex Castaño committed
69
      {:dialyxir, "~> 1.0.0-rc.4", only: [:dev], runtime: false},
70
      {:ex_doc, "~> 0.19", only: :dev, runtime: false},
71 72
      {:crypt,
       git: "https://github.com/msantos/crypt", ref: "1f2b58927ab57e72910191a7ebaeff984382a1d3"}
lain's avatar
lain committed
73
    ]
Roger Braun's avatar
Roger Braun committed
74 75 76 77 78 79 80 81 82
  end

  # Aliases are shortcuts or tasks specific to the current project.
  # For example, to create, migrate and run the seeds file at once:
  #
  #     $ mix ecto.setup
  #
  # See the documentation for `Mix` for more info on aliases.
  defp aliases do
lain's avatar
lain committed
83 84 85 86 87
    [
      "ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
      "ecto.reset": ["ecto.drop", "ecto.setup"],
      test: ["ecto.create --quiet", "ecto.migrate", "test"]
    ]
Roger Braun's avatar
Roger Braun committed
88 89
  end
end