Packages
nearest_date
0.2.0
A micro library to help finding the date with the smallest delta to a given date
Current section
Files
Jump to
Current section
Files
nearest_date
mix.exs
mix.exs
defmodule NearestDate.MixProject do
use Mix.Project
@source_url "https://github.com/ktec/nearest_date"
@version "0.2.0"
def project do
[
app: :nearest_date,
version: @version,
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: dialyzer(),
description: description(),
package: package(),
docs: docs()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp description() do
"""
A micro library to help finding the date with the smallest delta to a given date
"""
end
defp package() do
[
maintainers: ["Keith Salisbury"],
licenses: ["Apache-2.0"],
links: %{"GitHub" => @source_url}
]
end
defp deps do
[
{:benchfella, "~> 0.3", only: :dev},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
end
defp dialyzer() do
[
ignore_warnings: "dialyzer.ignore",
plt_add_apps: []
]
end
defp docs() do
[
main: "readme",
name: "NearestDate",
source_ref: "v#{@version}",
canonical: "http://hexdocs.pm/nearest_date",
source_url: @source_url,
extras: ["README.md", "CHANGELOG.md", "LICENSE"]
]
end
end