-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
70 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
defmodule Skout.MixProject do
use Mix.Project
@repo_url "https://github.com/marcelotto/skout"
@version File.read!("VERSION") |> String.trim()
def project do
[
app: :skout,
version: @version,
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
escript: [main_module: Skout.CLI],
# Hex
package: package(),
description: description(),
# Docs
name: "Skout",
docs: [
main: "Skout.Document",
source_url: @repo_url,
source_ref: "v#{@version}",
extras: ["README.md", "CHANGELOG.md"]
]
]
end
defp description do
"""
A terse, opinionated format for SKOS concept schemes.
"""
end
defp package do
[
maintainers: ["Marcel Otto"],
licenses: ["MIT"],
links: %{
"GitHub" => @repo_url,
"Changelog" => @repo_url <> "/blob/master/CHANGELOG.md"
},
files: ~w[lib priv mix.exs VERSION *.md]
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:rdf, "~> 0.9"},
{:sparql, "~> 0.3.5"},
{:json_ld, "~> 0.3.3"},
{:yaml_elixir, "~> 2.4"},
{:optimus, "~> 0.1"},
{:ex_doc, "~> 0.23", only: :dev, runtime: false}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end