-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
71 lines (60 loc) · 1.42 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
defmodule ShEx.MixProject do
use Mix.Project
@repo_url "https://github.com/rdf-elixir/shex-ex"
@version File.read!("VERSION") |> String.trim()
def project do
[
app: :shex,
version: @version,
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
# Hex
package: package(),
description: description(),
# Docs
name: "ShEx.ex",
docs: [
main: "ShEx",
source_url: @repo_url,
source_ref: "v#{@version}",
extras: ["CHANGELOG.md"]
]
]
end
defp description do
"""
An implementation of ShEx 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 mix.exs VERSION *.md]
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:rdf, "~> 0.9"},
{:flow, "~> 1.0"},
{:jason, "~> 1.2"},
# Development
{:credo, "~> 1.4", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.23", only: :dev, runtime: false}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end