2016-12-07 23:20:12 +00:00
|
|
|
defmodule JSON.LD.Mixfile do
|
|
|
|
use Mix.Project
|
|
|
|
|
2017-06-25 00:15:29 +00:00
|
|
|
@repo_url "https://github.com/marcelotto/jsonld-ex"
|
|
|
|
|
2017-08-06 20:20:20 +00:00
|
|
|
@version File.read!("VERSION") |> String.trim
|
2016-12-07 23:29:04 +00:00
|
|
|
|
2016-12-07 23:20:12 +00:00
|
|
|
def project do
|
2016-12-07 23:29:04 +00:00
|
|
|
[
|
|
|
|
app: :json_ld,
|
|
|
|
version: @version,
|
2017-08-06 20:33:53 +00:00
|
|
|
elixir: "~> 1.5",
|
2016-12-07 23:29:04 +00:00
|
|
|
build_embedded: Mix.env == :prod,
|
|
|
|
start_permanent: Mix.env == :prod,
|
2017-06-25 00:15:29 +00:00
|
|
|
deps: deps(),
|
|
|
|
|
|
|
|
# Hex
|
2017-02-12 14:42:27 +00:00
|
|
|
package: package(),
|
2017-06-25 00:15:29 +00:00
|
|
|
description: description(),
|
|
|
|
|
|
|
|
# Docs
|
|
|
|
name: "JSON-LD.ex",
|
|
|
|
docs: [
|
|
|
|
main: "JSON.LD",
|
|
|
|
source_url: @repo_url,
|
|
|
|
source_ref: "v#{@version}",
|
|
|
|
extras: ["README.md"],
|
2017-08-11 12:28:08 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
# ExCoveralls
|
|
|
|
test_coverage: [tool: ExCoveralls],
|
|
|
|
preferred_cli_env: [
|
2018-08-30 23:14:58 +00:00
|
|
|
coveralls: :test,
|
2017-08-11 12:28:08 +00:00
|
|
|
"coveralls.detail": :test,
|
|
|
|
"coveralls.post": :test,
|
|
|
|
"coveralls.html": :test
|
|
|
|
],
|
2016-12-07 23:29:04 +00:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
2017-06-25 00:15:29 +00:00
|
|
|
defp description do
|
|
|
|
"""
|
|
|
|
An implementation of JSON-LD for Elixir and RDF.ex.
|
|
|
|
"""
|
|
|
|
end
|
|
|
|
|
2016-12-07 23:29:04 +00:00
|
|
|
defp package do
|
|
|
|
[
|
|
|
|
maintainers: ["Marcel Otto"],
|
|
|
|
licenses: ["MIT"],
|
2017-06-25 00:15:29 +00:00
|
|
|
links: %{"GitHub" => @repo_url},
|
2017-08-06 20:20:20 +00:00
|
|
|
files: ~w[lib mix.exs README.md LICENSE.md VERSION]
|
2016-12-07 23:29:04 +00:00
|
|
|
]
|
2016-12-07 23:20:12 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def application do
|
2017-03-25 03:46:45 +00:00
|
|
|
[extra_applications: [:logger]]
|
2016-12-07 23:20:12 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
defp deps do
|
2016-12-07 23:29:04 +00:00
|
|
|
[
|
2018-08-30 23:43:37 +00:00
|
|
|
# TODO: {:rdf, "~> 0.5"},
|
|
|
|
{:rdf, git: "https://github.com/marcelotto/rdf-ex"},
|
2018-07-10 22:17:36 +00:00
|
|
|
{:jason, "~> 1.1.1"},
|
2018-09-17 00:24:22 +00:00
|
|
|
{:dialyxir, "~> 0.5", only: [:dev, :test], runtime: false},
|
|
|
|
{:credo, "~> 0.10", only: [:dev, :test], runtime: false},
|
|
|
|
{:ex_doc, "~> 0.19", only: :dev, runtime: false},
|
|
|
|
{:excoveralls, "~> 0.10", only: :test},
|
2016-12-07 23:29:04 +00:00
|
|
|
]
|
2016-12-07 23:20:12 +00:00
|
|
|
end
|
|
|
|
end
|