-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
61 lines (54 loc) · 1.26 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
defmodule Spidey.MixProject do
use Mix.Project
@name "Spidey"
@version "0.3.2"
@repo_url "https://github.com/manzanit0/spidey"
def project do
[
app: :spidey,
name: @name,
source_url: @repo_url,
description:
"A dead-simple, concurrent web crawler which focuses on ease of use and speed.",
package: package(),
docs: docs(),
version: @version,
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: [tool: ExCoveralls],
escript: [main_module: Spidey.CLI]
]
end
def application do
[
mod: {Spidey.Application, []},
extra_applications: [:logger]
]
end
defp deps do
[
{:httpoison, "~> 1.7.0"},
{:floki, "~> 0.27.0"},
{:excoveralls, "~> 0.10", only: :test},
{:mox, "~> 0.5", only: :test},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
end
defp elixirc_paths(:test), do: ["test/support", "lib"]
defp elixirc_paths(_), do: ["lib"]
def docs do
[
source_ref: "v#{@version}",
source_url: @repo_url,
main: @name
]
end
def package do
[
licenses: ["MIT"],
links: %{"GitHub" => @repo_url}
]
end
end