defmodule ClipperBot.MixProject do
  use Mix.Project

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

  def application do
    [
      extra_applications: [:logger, :runtime_tools, :os_mon],
      mod: {ClipperBot.Application, []}
    ]
  end

  defp deps do
    [
      {:credo, "~> 1.7", only: [:dev, :test], runtime: false},
      {:ex_doc, "~> 0.31", only: :dev, runtime: false},
      # {:ater, git: "git@github.com:OdielDomanie/ater.git"}
      {:ater, path: "../ater"},
      {:pana,
       tag: "v0.2.5", override: true, git: "git@github.com:OdielDomanie/discord_ex.git"},
      {:ytex, tag: "v0.2.2", git: "git@github.com:OdielDomanie/ytex.git"},
      {:rset, git: "git@github.com:OdielDomanie/rset.git"},
      {:ecto, "~> 3.11"},
      {:ecto_sql, "~> 3.0"},
      {:postgrex, ">= 0.0.0"},
      # {:managed_dir, git: "git@github.com:OdielDomanie/managed_dir.git"},
      {:managed_dir, path: "../managed_dir"},
      {:phoenix, "~> 1.7"},
      {:phoenix_live_dashboard, "~> 0.8"},
      {:bandit, "~> 1.0"},
      {:telemetry_poller, "~> 0.4"},
      {:telemetry_metrics, "~> 1.0"},
      {:ecto_psql_extras, "~> 0.6"},
      {:castore, "~> 1.0"}
    ]
  end

  defp aliases do
    [
      test: ["ecto.create --quiet", "ecto.migrate", "test"]
    ]
  end
end
