5819eec0cf
It turned out that the costs of separating the XSD datatypes are too high and probably not worth the effort, since with its limited scope probably nobody would want to use XSD.ex outside of the RDF.ex context anyway.
92 lines
2 KiB
Elixir
92 lines
2 KiB
Elixir
defmodule RDF.Mixfile do
|
|
use Mix.Project
|
|
|
|
@repo_url "https://github.com/marcelotto/rdf-ex"
|
|
|
|
@version File.read!("VERSION") |> String.trim
|
|
|
|
def project do
|
|
[
|
|
app: :rdf,
|
|
version: @version,
|
|
elixir: "~> 1.6",
|
|
build_embedded: Mix.env == :prod,
|
|
start_permanent: Mix.env == :prod,
|
|
deps: deps(),
|
|
elixirc_paths: elixirc_paths(Mix.env()),
|
|
|
|
# Dialyzer
|
|
dialyzer: dialyzer(),
|
|
|
|
# Hex
|
|
package: package(),
|
|
description: description(),
|
|
|
|
# Docs
|
|
name: "RDF.ex",
|
|
docs: [
|
|
main: "RDF",
|
|
source_url: @repo_url,
|
|
source_ref: "v#{@version}",
|
|
extras: ["CHANGELOG.md"],
|
|
],
|
|
|
|
# ExCoveralls
|
|
test_coverage: [tool: ExCoveralls],
|
|
preferred_cli_env: [
|
|
coveralls: :test,
|
|
"coveralls.detail": :test,
|
|
"coveralls.post": :test,
|
|
"coveralls.html": :test
|
|
],
|
|
]
|
|
end
|
|
|
|
defp description do
|
|
"""
|
|
An implementation of RDF for Elixir.
|
|
"""
|
|
end
|
|
|
|
defp package do
|
|
[
|
|
maintainers: ["Marcel Otto"],
|
|
licenses: ["MIT"],
|
|
links: %{
|
|
"Homepage" => "https://rdf-elixir.dev",
|
|
"GitHub" => @repo_url,
|
|
"Changelog" => @repo_url <> "/blob/master/CHANGELOG.md",
|
|
},
|
|
files: ~w[lib src/*.xrl src/*.yrl priv mix.exs .formatter.exs VERSION *.md]
|
|
]
|
|
end
|
|
|
|
def application do
|
|
[extra_applications: [:logger]]
|
|
end
|
|
|
|
defp deps do
|
|
[
|
|
{:decimal, "~> 1.5"},
|
|
|
|
{:credo, "~> 1.3", only: [:dev, :test], runtime: false},
|
|
{:dialyxir, "~> 1.0.0-rc.7", only: :dev, runtime: false},
|
|
{:ex_doc, "~> 0.21", only: :dev, runtime: false},
|
|
{:excoveralls, "~> 0.12", only: :test},
|
|
|
|
{:benchee, "~> 1.0", only: :bench},
|
|
{:erlang_term, "~> 1.8", only: :bench},
|
|
]
|
|
end
|
|
|
|
defp dialyzer do
|
|
[
|
|
plt_add_apps: [:mix],
|
|
plt_file: {:no_warn, "priv/plts/dialyzer.plt"},
|
|
ignore_warnings: ".dialyzer_ignore"
|
|
]
|
|
end
|
|
|
|
defp elixirc_paths(:test), do: ["lib", "test/support"]
|
|
defp elixirc_paths(_), do: ["lib"]
|
|
end
|