defmodule Kiln.MixProject do use Mix.Project def project do [ app: :kiln, version: "1.3.2", elixir: "~> 1.16", start_permanent: Mix.env() == :prod, elixirc_paths: elixirc_paths(Mix.env()), test_coverage: [tool: ExCoveralls], description: "Easy framework for easy APIs.", source_url: "https://git.sr.ht/~nomorepanic/kiln", package: package(), deps: deps(), preferred_cli_env: [ coveralls: :test, "coveralls.detail": :test, "coveralls.html": :test, "coveralls.lcov": :test ], docs: [ extras: ["README.md"] ] ] end def application do if Mix.env() == :test do [ extra_applications: [:logger], mod: {KilnTest.Support.Application, []} ] else [extra_applications: [:logger]] end end defp deps do [ {:ecto_sql, "~> 3.12", optional: true}, {:ecto_sqlite3, "~> 0.19", optional: true}, {:ex_doc, "~> 0.37", only: :dev, runtime: false}, {:excoveralls, "~> 0.18.5", only: :test}, {:kelly, "~> 1.1", optional: true}, {:kiln_core, "~> 1.1"}, {:plug, "~> 1.17"}, {:plug_cowboy, "~> 2.7"}, {:poison, "~> 6.0.0"}, {:siren, "~> 2.3.2"}, {:stitch, "~> 1.1", only: :test}, {:tesla, "~> 1.14", only: :test} ] end defp package do [ name: :kiln, files: ~w(mix.exs lib .formatter.exs README.md LICENSE), licenses: ["MPL-2.0"], links: %{ "sourcehut" => "https://git.sr.ht/~nomorepanic/kiln" } ] end defp elixirc_paths(:test), do: ["lib", "test/kiln/support"] defp elixirc_paths(_), do: ["lib"] end