-
Notifications
You must be signed in to change notification settings - Fork 23
/
mix.exs
84 lines (73 loc) · 1.65 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
defmodule Meeseeks.Mixfile do
use Mix.Project
@description """
Meeseeks is a library for parsing and extracting data from HTML and XML
with CSS or XPath selectors.
"""
@source_url "https://github.com/mischov/meeseeks"
@version "0.17.0"
def project do
[
app: :meeseeks,
version: @version,
elixir: "~> 1.7",
deps: deps(),
# Hex
description: @description,
package: package(),
# HexDocs
name: "Meeseeks",
docs: docs()
]
end
def application do
[extra_applications: [:logger, :xmerl]]
end
defp deps do
[
{:meeseeks_html5ever, "~> 0.14.3"},
# Dev
{:dialyxir, "~> 0.5", only: :dev, runtime: false},
# Docs
{:ex_doc, "~> 0.24.0", only: :docs, runtime: false}
]
end
defp docs do
[
markdown_processor: ExDoc.Markdown.Meeseeks,
source_url: @source_url,
source_ref: "v#{@version}",
formatters: ["html"],
main: "readme",
extras: [
"README.md": [],
"CHANGELOG.md": [],
"CONTRIBUTING.md": [],
"guides/meeseeks_vs_floki.md": [],
"guides/css_selectors.md": [],
"guides/xpath_selectors.md": [],
"guides/custom_selectors.md": [],
"guides/deployment.md": []
],
groups_for_extras: [
Guides: Path.wildcard("guides/*.md")
]
]
end
defp package do
[
maintainers: ["Mischov"],
licenses: ["MIT"],
files: [
"lib",
"src/*.xrl",
"src/*.yrl",
"mix.exs",
"README.md",
"LICENSE",
"LICENSE-APACHE"
],
links: %{"GitHub" => @source_url}
]
end
end