defmodule ReqToggl.MixProject do use Mix.Project @version "0.1.0" @source_url "https://github.com/olivermt/req_toggl" def project do [ app: :req_toggl, version: @version, elixir: "~> 1.18", start_permanent: Mix.env() == :prod, deps: deps(), description: description(), package: package(), docs: docs(), name: "ReqToggl", source_url: @source_url ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger], mod: {ReqToggl.Application, []} ] end # Run "mix help deps" to learn about dependencies. defp deps do [ {:req, "~> 0.5"}, {:jason, "~> 1.4"}, # Dev/test dependencies {:bandit, "~> 1.8", only: :dev, runtime: false}, {:tidewave, "~> 0.5", only: :dev, runtime: false}, {:ex_doc, "~> 0.31", only: :dev, runtime: false} ] end defp description do "A Req plugin for the Toggl Track API v9. Provides a simple interface for time tracking operations including authentication, project management, and time entry creation, updating, and deletion." end defp package do [ name: "req_toggl", licenses: ["Apache-2.0"], links: %{ "GitHub" => @source_url, "Toggl Track API" => "https://engineering.toggl.com/docs/" }, files: ~w(lib .formatter.exs mix.exs README.md LICENSE CLAUDE.md) ] end defp docs do [ main: "ReqToggl", source_ref: "v#{@version}", source_url: @source_url, extras: ["README.md", "CLAUDE.md"] ] end end