Packages
xema
0.6.2
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.6.2",
elixir: "~> 1.7",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
aliases: aliases(),
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: [tool: ExCoveralls],
source_url: "https://github.com/hrzndhrn/xema",
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
docs: [
extras: [
"docs/readme.md",
"docs/usage.md",
"docs/resolver.md",
"docs/unsupported.md"
],
main: "readme"
],
dialyzer: [
ignore_warnings: "dialyzer.ignore-warnings"
]
]
end
defp description() do
"A schema validator inspired by JSON Schema."
end
def application do
[extra_applications: [:logger]]
end
defp deps do
[
{:cowboy, "~> 2.4", only: :test},
{:credo, "~> 1.0", only: [:dev, :test]},
{:dialyxir, "~> 1.0.0-rc.4", only: [:dev], runtime: false},
{:ex_doc, "~> 0.19", only: :dev, runtime: false},
{:excoveralls, "~> 0.9", only: :test},
{:inch_ex, "~> 2.0.0-rc1", only: [:dev, :test]},
{:httpoison, "~> 1.2", only: :test}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
maintainers: ["Marcus Kruse"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/hrzndhrn/xema"},
files: [
"lib",
"mix.exs",
"README*",
"LICENSE*",
"docs/readme.md",
"docs/usage.md",
"docs/resolver.md",
"docs/unsupported.md"
]
]
end
defp aliases do
[
credo: ["credo --strict"],
spec: &spec/1,
check: &check/1,
check_test: ["test", "credo", "spec"]
]
end
defp spec(_), do: Mix.shell().cmd("mix dialyzer", env: [{"MIX_ENV", "test"}])
defp check(_),
do: Mix.shell().cmd("mix check_test", env: [{"MIX_ENV", "test"}])
end