-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmix.exs
62 lines (57 loc) · 1.46 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
defmodule Mazurka.Mixfile do
use Mix.Project
def project do
[app: :mazurka,
version: "1.0.7",
elixir: "~> 1.0",
description: "hypermedia api toolkit",
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
"coveralls": :test,
"coveralls.circle": :test,
"coveralls.detail": :test,
"coveralls.html": :test
],
package: package(),
deps: deps(),
docs: [extras: examples(),
logo: "extra/logo.png"]]
end
def application do
[applications: [:logger]]
end
defp deps do
[{:mimetype_parser, "~> 0.1.0"},
{:ex_doc, ">= 0.0.0", only: :dev},
{:mix_test_watch, "~> 0.2", only: :dev},
{:excoveralls, "~> 0.5.1", only: :test},]
end
defp package do
[files: ["lib", "mix.exs", "README*"],
maintainers: ["Cameron Bytheway"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/exstruct/mazurka"}]
end
def examples() do
if Mix.env == :dev do
[
{"Getting Started", [
"extra/Overview.md",
"extra/Installation.md",
"extra/Mediatype.md",
"extra/Affordance.md",
"extra/Param_Input_and_Option.md",
"extra/Condition_and_Validation.md",
]},
{"Examples", Path.wildcard("testdoc/**/*.md")}
]
|> Enum.flat_map(fn({group, files}) ->
Enum.map(files, fn(file) ->
{file, [group: group]}
end)
end)
else
[]
end
end
end