Packages
xema
0.13.9
0.17.9
0.17.8
0.17.7
0.17.6
0.17.5
0.17.4
0.17.3
0.17.2
0.17.1
0.17.0
0.16.1
0.16.0
0.15.0
0.14.3
0.14.2
0.14.1
0.14.0
0.13.10
0.13.9
0.13.8
0.13.7
0.13.6
0.13.5
0.13.4
0.13.3
0.13.1
0.13.0
0.12.0
0.11.4
0.11.3
0.11.2
0.11.1
0.11.0
0.10.0
0.9.3
0.9.2
0.9.1
0.9.0
0.8.1
0.8.0
0.7.0
0.6.3
0.6.2
0.6.1
0.6.0
0.5.0
0.4.0
0.3.0
0.2.0
0.1.1
A schema validator inspired by JSON Schema.
Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Xema.Mixfile do
use Mix.Project
def project do
[
app: :xema,
version: "0.13.9",
elixir: "~> 1.7",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
source_url: "https://github.com/hrzndhrn/xema",
aliases: aliases(),
# Coveralls
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
carp: :test,
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.travis": :test,
"coveralls.html": :test,
"gen.test_suite": :test
],
# Docs
docs: [
main: "readme",
extras: [
"docs/readme.md",
"docs/usage.md",
"docs/cast.md",
"docs/loader.md",
"docs/examples.md",
"docs/unsupported.md",
"CHANGELOG.md"
],
skip_undefined_reference_warnings_on: [
"CHANGELOG.md"
]
],
# Dialyzer
dialyzer: [
ignore_warnings: ".dialyzer_ignore.exs",
plt_add_apps: [:decimal],
plt_file: {:no_warn, "test/support/plts/dialyzer.plt"}
]
]
end
defp description() do
"A schema validator inspired by JSON Schema."
end
def application do
[extra_applications: [:logger], env: [loader: Xema.NoLoader]]
end
defp deps do
[
{:benchee, "~> 1.0", only: :dev, runtime: false},
{:conv_case, "~> 0.2.2"},
{:cowboy, "~> 2.7.0", only: :test},
{:credo, "~> 1.1", only: [:dev, :test], runtime: false},
{:decimal, "~> 1.0 or ~> 2.0", optional: true},
{:dialyxir, "~> 1.0", only: :dev, runtime: false},
{:elixir_uuid, "~> 1.2", only: [:dev, :test]},
{:ex_doc, "~> 0.19", only: :dev, runtime: false},
{:excoveralls, "~> 0.10", only: :test},
{:jason, "~> 1.1", only: [:dev, :test]},
{:httpoison, "~> 1.8", only: :test}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp aliases do
[carp: "test --seed 0 --max-failures 1 --trace"]
end
defp package do
[
maintainers: ["Marcus Kruse"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/hrzndhrn/xema"},
files: [
".formatter.exs",
"lib",
"mix.exs",
"README*",
"LICENSE*",
"docs/readme.md",
"docs/usage.md",
"docs/loader.md",
"docs/unsupported.md"
]
]
end
end