This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
mix.exs
85 lines (77 loc) · 2.02 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
defmodule Cmark.Mixfile do
use Mix.Project
@version "0.10.0"
# MSEV = minimum supported Elixir version;
# Until there is a breaking change, we can stick to the lowest known
# version stated here.
@msev "~> 1.8"
def project do
[
app: :cmark,
version: @version,
elixir: @msev,
compilers: [:elixir_make, :elixir, :app],
deps: deps(),
package: package(),
description: description(),
name: "cmark",
source_url: "https://github.com/asaaki/cmark.ex",
homepage_url: "http://hexdocs.pm/cmark",
docs: &docs/0,
test_coverage: [tool: ExCoveralls]
]
end
def application, do: []
defp description do
"""
Elixir NIF for cmark (C), a parser library following the CommonMark spec,
a compatible implementation of Markdown.
"""
end
defp package do
[
maintainers: ["Christoph Grabo"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/asaaki/cmark.ex",
"Issues" => "https://github.com/asaaki/cmark.ex/issues"
},
files: [
"c_src/*.h",
"c_src/*.c",
"c_src/*.inc",
"c_src/COPYING",
"lib",
"LICENSE",
"Makefile",
"Makefile.win",
"mix.exs",
"README.md",
"README.windows.md",
"src"
]
]
end
defp docs do
[
extras: ["README.md", "README.windows.md"],
main: "readme",
source_ref: "v#{@version}",
source_url: "https://github.com/asaaki/cmark.ex",
assets: "assets",
logo: "assets/cmark_ex_logo_docs.png",
cover: "assets/cmark_ex_logo.png"
]
end
defp deps do
[
{:elixir_make, "~> 0.6"},
{:credo, "~> 1.5", only: [:lint, :ci]},
{:ex_doc, "~> 0.23", only: [:dev, :docs, :ci]},
{:excoveralls, "~> 0.13", only: :ci},
{:inch_ex, "~> 2.0", only: [:docs, :ci]},
{:jason, "~> 1.2", only: [:dev, :test, :docs, :lint, :ci], override: true},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false}
]
end
end