Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Geo.Turf.MixProject do
use Mix.Project
def project do
[
app: :geo_turf,
version: "0.4.0",
elixir: "~> 1.6",
# start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: [tool: ExCoveralls],
dialyzer: [plt_file: {:no_warn, "priv/plts/#{Mix.env()}.plt"}],
deps: deps(),
docs: docs(),
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
precommit: :test
],
aliases: [
precommit: [
"compile --warnings-as-errors",
"format --check-formatted",
"test",
"dialyzer",
"credo --strict"
]
]
]
end
defp description do
"""
A spatial analysis tool for Elixir's [Geo](https://github.com/bryanjos/geo) library ported from [TurfJS](http://turfjs.org/).
"""
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
[
{:geo, "~> 4.0 or ~> 3.5.0"},
{:ex_doc, "~> 0.30", only: :dev},
{:jason, "~> 1.4", only: [:dev, :test]},
{:excoveralls, "~> 0.18", only: :test},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:fixate, "~> 0.1", only: :test}
]
end
def docs do
[
main: "Geo.Turf",
extras: ["CHANGELOG.md"],
source_url: "https://github.com/JonGretar/GeoTurf"
]
end
defp package do
# These are the default files included in the package
[
files: ["lib", "mix.exs", "README.md", "CHANGELOG.md", "LICENSE"],
maintainers: ["Jón Grétar Borgþórsson"],
licenses: ["MIT"],
source_url: "https://github.com/JonGretar/GeoTurf",
links: %{"GitHub" => "https://github.com/JonGretar/GeoTurf"}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end