jsonld-ex/mix.exs

87 lines
1.9 KiB
Elixir
Raw Normal View History

defmodule JSON.LD.Mixfile do
use Mix.Project
@repo_url "https://github.com/rdf-elixir/jsonld-ex"
2020-06-20 02:25:58 +00:00
@version File.read!("VERSION") |> String.trim()
def project do
[
app: :json_ld,
version: @version,
elixir: "~> 1.10",
2020-06-20 02:25:58 +00:00
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
# Hex
package: package(),
description: description(),
# Docs
name: "JSON-LD.ex",
docs: [
main: "JSON.LD",
source_url: @repo_url,
source_ref: "v#{@version}",
2021-08-20 16:44:08 +00:00
extras: ["README.md", "CHANGELOG.md"]
2017-08-11 12:28:08 +00:00
],
2020-06-21 23:44:57 +00:00
# Dialyzer
dialyzer: dialyzer(),
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
2020-06-20 02:25:58 +00:00
]
]
end
defp description do
"""
An implementation of JSON-LD for Elixir and RDF.ex.
"""
end
defp package do
[
maintainers: ["Marcel Otto"],
licenses: ["MIT"],
links: %{"GitHub" => @repo_url},
2017-08-06 20:20:20 +00:00
files: ~w[lib mix.exs README.md LICENSE.md VERSION]
]
end
def application do
[extra_applications: [:logger]]
end
defp deps do
[
2022-08-03 21:27:46 +00:00
{:rdf, git: "https://akkoma.dev/AkkomaGang/rdf-ex.git",
ref: "6fe1c613884c41da213966ea3fb2531f59417e8d"
},
2020-05-30 18:35:15 +00:00
{:jason, "~> 1.2"},
2021-04-24 19:05:31 +00:00
{:httpoison, "~> 1.6"},
{:dialyxir, "~> 1.1", only: :dev, runtime: false},
2022-04-19 19:20:05 +00:00
{:ex_doc, "~> 0.28", only: :dev, runtime: false},
2021-04-24 19:05:31 +00:00
{:bypass, "~> 2.1", only: :test},
{:excoveralls, "~> 0.14", only: :test}
]
end
2020-06-21 23:44:57 +00:00
defp dialyzer do
[
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
2020-06-20 02:25:58 +00:00
defp elixirc_paths(_), do: ["lib"]
end