-
Notifications
You must be signed in to change notification settings - Fork 6
/
mix.exs
67 lines (60 loc) · 1.49 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
defmodule Hop.MixProject do
use Mix.Project
@source_url "https://github.com/seanmor5/hop"
@version "0.1.1"
def project do
[
app: :hop,
version: @version,
elixir: "~> 1.15",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
package: package(),
preferred_cli_env: [
docs: :docs,
"hex.publish": :docs
],
description: "A tiny web crawling framework for Elixir"
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
defp elixirc_paths(:test), do: ~w(lib test/support)
defp elixirc_paths(_), do: ~w(lib)
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:req, "~> 0.5"},
{:floki, ">= 0.30.0"},
{:ex_doc, "~> 0.23", only: :docs}
]
end
defp package do
[
maintainers: ["Sean Moriarity"],
licenses: ["Apache-2.0"],
links: %{"GitHub" => @source_url}
]
end
defp docs do
[
main: "Hop",
source_ref: "v#{@version}",
source_url: @source_url,
groups_for_docs: [
Builders: &(&1[:type] == :builder),
Execution: &(&1[:type] == :execution),
Configuration: &(&1[:type] == :configuration),
Validators: &(&1[:type] == :validator),
"HTML Helpers": &(&1[:type] == :html),
"State Manipulation": &(&1[:type] == :state)
]
]
end
end