mix.exs 1.23 KB
Newer Older
kaniini's avatar
kaniini committed
1 2 3 4 5 6 7 8 9
defmodule FastSanitize.MixProject do
  use Mix.Project

  def project do
    [
      app: :fast_sanitize,
      version: "0.1.0",
      elixir: "~> 1.7",
      start_permanent: Mix.env() == :prod,
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
      deps: deps(),
      package: package(),
      description: """
        A module that provides performant and memory-efficient HTML sanitization.
        Largely drop-in compatible with HtmlSanitizeEx.
      """
    ]
  end

  def package do
    [
      maintainers: ["Ariadne Conill"],
      licenses: ["MIT"],
      links: %{
        "GitLab" => "https://git.pleroma.social/pleroma/fast_sanitize",
        "Issues" => "https://git.pleroma.social/pleroma/fast_sanitize/issues"
      }
kaniini's avatar
kaniini committed
27 28 29 30 31 32 33 34 35 36 37 38 39
    ]
  end

  # Run "mix help compile.app" to learn about applications.
  def application do
    [
      extra_applications: [:logger]
    ]
  end

  # Run "mix help deps" to learn about dependencies.
  defp deps do
    [
40
      {:plug, "~> 1.8"},
41
      {:fast_html, "~> 0.9"},
kaniini's avatar
kaniini committed
42
      {:credo, "~> 1.0.0", only: [:dev, :test], runtime: false},
rinpatch's avatar
rinpatch committed
43 44
      {:benchee, "~> 1.0", only: :dev},
      {:html_sanitize_ex, "~> 1.3.0-rc3", only: :dev},
kaniini's avatar
kaniini committed
45 46
      {:ex_doc, "~> 0.19", only: :dev, runtime: false},
      {:dialyxir, "~> 1.0.0-rc.5", only: [:dev], runtime: false}
kaniini's avatar
kaniini committed
47 48 49
    ]
  end
end