defmodule Libmention.MixProject do use Mix.Project def project do [ app: :libmention, version: "0.1.2", elixir: "~> 1.14", start_permanent: Mix.env() == :prod, elixirc_paths: elixirc_paths(Mix.env()), deps: deps(), package: package(), docs: docs() ] end defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger, :castore] ] end defp package() do [ maintainers: ["Matt Silbernagel"], description: description(), links: %{:GitHub => "https://github.com/silbermm/libmention"}, licenses: ["Apache-License-2.0"], files: [ "lib", "mix.exs", "README.md", "CHANGELOG.md", "LICENSE" ] ] end defp description do """ A WebMention (https://www.w3.org/TR/webmention/) implementation for Elixir """ end # Run "mix help deps" to learn about dependencies. defp deps do [ {:plug_cowboy, "~> 2.0"}, {:ex_doc, "~> 0.29"}, {:recon, "~> 2.5"}, {:telemetry, "~> 1.2"}, {:req, "~> 0.3"}, {:floki, "~> 0.34.3"}, {:dialyxir, "~> 1.0", only: [:dev], runtime: false}, {:credo, "~> 1.6", only: [:dev, :test], runtime: false}, {:mox, "~> 1.0.2", only: [:test]}, {:mix_test_watch, "~> 1.0", only: [:dev, :test], runtime: false} ] end defp docs do [ main: "Libmention", api_reference: false, extras: [ "README.md": [filename: "readme", title: "Readme"], "CHANGELOG.md": [filename: "changelog", title: "Changelog"], LICENSE: [filename: "LICENSE", title: "License"] ], authors: ["Matt Silbernagel"], before_closing_body_tag: &before_closing_body_tag/1 ] end defp before_closing_body_tag(:html) do """ """ end defp before_closing_body_tag(_), do: "" end