defmodule WebPush.MixProject do use Mix.Project @version "0.1.0" @source_url "https://github.com/zoedsoupe/web_push" def project do [ app: :web_push, version: @version, elixir: "~> 1.18", start_permanent: Mix.env() == :prod, docs: docs(), deps: deps(), package: package(), description: description(), source_url: @source_url, dialyzer: [plt_local_path: "priv/plts", ignore_warnings: ".dialyzerignore"] ] end # Raw library: starts no processes of its own. The host application # supervises the Finch pool (see README) and any VAPID config. def application do [] end defp deps do [ {:finch, "~> 0.19"}, {:bypass, "~> 2.1", only: :test}, {:ex_doc, ">= 0.0.0", only: [:dev, :test], runtime: false}, {:credo, "~> 1.7", only: [:dev, :test], runtime: false}, {:dialyxir, "~> 1.3", only: [:dev, :test], runtime: false} ] end defp description do "Web Push notifications for Elixir: VAPID (RFC 8292) and aes128gcm payload encryption (RFC 8291/8188)" end defp package do [ name: "web_push", links: %{"GitHub" => @source_url}, licenses: ["MIT"] ] end defp docs do [ main: "readme", extras: ["README.md", "LICENSE"], source_ref: "v#{@version}", source_url: @source_url ] end end