2.8 KiB · text History 9d57f0c
defmodule RoomHermes.MixProject do
  use Mix.Project

  def project do
    [
      app: :room_hermes,
      version: "0.1.0",
      build_path: "../../_build",
      config_path: "../../config/config.exs",
      deps_path: "../../deps",
      lockfile: "../../mix.lock",
      elixir: "~> 1.12",
      elixirc_paths: elixirc_paths(Mix.env()),
      compilers: Mix.compilers(),
      start_permanent: Mix.env() == :prod,
      aliases: aliases(),
      deps: deps()
    ]
  end

  # Configuration for the OTP application.
  #
  # Type `mix help compile.app` for more information.
  def application do
    [
      mod: {RoomHermes.Application, []},
      extra_applications: [:logger, :runtime_tools]
    ]
  end

  # Specifies which paths to compile per environment.
  defp elixirc_paths(:test), do: ["lib", "test/support"]
  defp elixirc_paths(_), do: ["lib"]

  # Specifies your project dependencies.
  #
  # Type `mix help deps` for examples and options.
  defp deps do
    [
      # Poison pins decimal ~> 2.x; see the root mix.exs. Repeated here so the
      # override holds when this app is built or tested on its own.
      {:decimal, "~> 3.2", override: true},
      # wheretz pins httpoison ~> 1.6 for its download_data task; see the root
      # mix.exs. Repeated here for the same reason as decimal.
      {:httpoison, "~> 3.0", override: true},
      {:phoenix, "~> 1.7"},
      {:phoenix_view, "~> 2.0"},
      {:phoenix_ecto, "~> 4.4"},
      {:ecto_sql, "~> 3.10"},
      {:postgrex, ">= 0.0.0"},
#      {:phoenix_html, "~> 4.1"},
      {:phoenix_live_reload, "~> 1.4", only: :dev},
      {:phoenix_live_view, "~> 1.0.0-rc.6", override: true},
      {:phoenix_html_helpers, "~> 1.0"},
      {:floki, ">= 0.30.0", only: :test},
      {:phoenix_live_dashboard, "~> 0.8.3"},
      {:esbuild, "~> 0.3", runtime: Mix.env() == :dev},
      # 1.0 rather than 0.6 because PromEx requires it (see
      # apps/room_observatory). The 1.0 release was a stability
      # declaration rather than a rewrite — counter/1, summary/1,
      # last_value/1 and distribution/1 are unchanged.
      {:telemetry_metrics, "~> 1.0"},
      {:telemetry_poller, "~> 1.0"},
      {:gettext, "~> 0.18"},
      {:jason, "~> 1.2"},
      {:plug_cowboy, "~> 2.5"},

      #     {:room_sanctum, in_umbrella: true},
      {:sentry, "~> 14.0"},
      # Sentry's default HTTP client; optional in its own deps, so named here.
      {:finch, "~> 0.21"},

      # makes the configs go Vroom
      {:polymorphic_embed, "~> 5.0.0", override: true},
      {:gen_smtp, "~> 1.2"},
    ]
  end

  # Aliases are shortcuts or tasks specific to the current project.
  #
  # See the documentation for `Mix` for more info on aliases.
  defp aliases do
    [
      setup: ["deps.get"],
      test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"],
      "assets.deploy": ["esbuild default --minify", "phx.digest"]
    ]
  end
end