defmodule Podbox.MixProject do use Mix.Project @moduledoc """ A project for downloading and playing podcasts. """ @version "0.1.0" def project do [ app: :podbox, version: @version, elixir: "~> 1.16", elixirc_paths: elixirc_paths(Mix.env()), package: package(), deps: deps(), description: @moduledoc, start_permanent: Mix.env() == :prod, deps: deps(), aliases: aliases(), docs: [ main: "readme", extras: ["README.md", "CHANGELOG.md"] ] ] end def package do [ maintainers: ["James Harton "], licenses: ["HL3-FULL"], links: %{ "Source" => "https://harton.dev/james/podbox", "Changelog" => "https://docs.harton.nz/james/podbox/changelog.html", "Sponsor" => "https://github.com/sponsors/jimsynz" } ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger], mod: {Podbox.Application, [:runtime_tools, :inets]} ] end # Run "mix help deps" to learn about dependencies. defp deps do [ {:ash_sqlite, "~> 0.1"}, {:ash, "~> 3.0"}, {:broadway, "~> 1.0"}, {:calendar, "~> 1.0"}, {:fast_rss, "~> 0.5"}, {:finch, "~> 0.18"}, {:gen_stage, "~> 1.2"}, {:reactor, "~> 0.9"}, {:splode, "~> 0.2"}, {:telemetry, "~> 1.2"}, # Dev/test {:credo, "~> 1.6", only: ~w[dev test]a, runtime: false}, {:dialyxir, "~> 1.4", only: ~w[dev test]a, runtime: false}, {:doctor, "~> 0.21", only: ~w[dev test]a, runtime: false}, {:earmark, "~> 1.4", only: ~w[dev test]a, runtime: false}, {:elixir_make, "~> 0.8", only: ~w[dev test]a, runtime: false, override: true}, {:ex_check, "~> 0.16", only: ~w[dev test]a, runtime: false}, {:ex_doc, "~> 0.30", only: ~w[dev test]a, runtime: false}, {:faker, "~> 0.18", only: ~w[dev test]a, runtime: false}, {:git_ops, "~> 2.4", only: ~w[dev test]a, runtime: false}, {:mimic, "~> 1.5", only: :test}, {:smokestack, "~> 0.8", only: ~w[dev test]a, runtime: false} ] end defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] defp aliases do [ test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"] ] end end