-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmix.exs
65 lines (59 loc) · 1.43 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
defmodule Simplify.Mixfile do
use Mix.Project
def project do
[
app: :simplify,
version: "2.0.1",
elixir: "~> 1.6",
description: description(),
package: package(),
start_permanent: Mix.env() == :prod,
dialyzer: [plt_add_apps: [:mix]],
test_coverage: [tool: ExCoveralls],
deps: deps(),
aliases: aliases()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:geo, "~> 3.1 or ~> 4.0"},
{:distance, "~> 1.0"},
{:benchfella, "~> 0.3.0", only: :dev},
{:jason, "~> 1.1", only: [:dev, :test]},
{:excoveralls, "~> 0.4", only: :test},
{:earmark, "~> 1.2", only: :dev},
{:ex_doc, "~> 0.19", only: :dev},
{:credo, "~> 1.6", only: :dev, runtime: false},
{:dialyxir, "~> 1.0", only: :dev, runtime: false}
]
end
defp description do
"""
Implementation of the Ramer–Douglas–Peucker algorithm for reducing the number of points used to represent a curve.
"""
end
defp package do
[
files: ["lib", "mix.exs", "README*"],
maintainers: ["Powell Kinney"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/pkinney/simplify_ex"}
]
end
defp aliases do
[
validate: [
"clean",
"compile --warnings-as-error",
"format --check-formatted",
"credo",
"dialyzer"
]
]
end
end