mix.exs

defmodule TodoistElixir.MixProject do
  use Mix.Project

  def project do
    [
      app: :todoist_elixir,
      name: "Todoist Elixir",
      version: "0.1.0",
      elixir: "~> 1.16",
      start_permanent: Mix.env() == :prod,
      deps: deps(),
      description: description(),
      package: package()
    ]
  end

  # Run "mix help compile.app" to learn about applications.
  def application do
    [
      extra_applications: [:logger],
      mod: {TodoistElixir.Application, []}
    ]
  end

  # Run "mix help deps" to learn about dependencies.
  defp deps do
    [
      {:req, "~> 0.4.0"},
      {:ecto, "~> 3.11.0"},
      {:dotenvy, "~> 0.8.0"}
      # {:dep_from_hexpm, "~> 0.3.0"},
      # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
    ]
  end

  defp description() do
    "A simple Elixir wrapper around the Todoist REST api"
  end

  defp package() do
    [
      files: ~w(lib config .formatter.exs mix.exs test),
      licenses: ["Apache-2.0"],
      links: %{"GitHub" => "https://github.com/camrohlof/todoist_elixir"}
    ]
  end
end