-
Notifications
You must be signed in to change notification settings - Fork 4
/
mix.exs
90 lines (82 loc) · 2.31 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
86
87
88
89
90
defmodule SpiderMan.MixProject do
use Mix.Project
alias SpiderMan.{Component, Requester, Pipeline, Storage}
@version "0.6.2"
@source_url "https://github.com/feng19/spider_man"
def project do
[
app: :spider_man,
version: @version,
elixir: "~> 1.11",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
test_coverage: [ignore_modules: cover_ignore_modules()],
deps: deps(),
docs: docs(),
package: package()
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {SpiderMan.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:broadway, "~> 1.0"},
{:tesla, "~> 1.4"},
{:finch, "~> 0.6"},
{:nimble_options, "~> 1.0"},
{:jason, "~> 1.2", optional: true},
{:nimble_csv, "~> 1.1", optional: true},
{:hackney, "~> 1.7", optional: true},
{:telemetry_metrics, ">= 0.0.0", optional: true},
{:logger_file_backend, "~> 0.0.11", optional: true},
{:ex_doc, ">= 0.0.0", only: [:docs, :dev], runtime: false},
{:credo, "~> 1.5", only: [:dev, :test], runtime: false}
]
end
defp docs do
[
extras: [
"LICENSE.md": [title: "License"],
"README.md": [title: "Overview"],
"notebooks/elixirjobs.livemd": [title: "Livebook Case"]
],
main: "readme",
source_url: @source_url,
source_ref: "master",
formatters: ["html"],
formatter_opts: [gfm: true],
nest_modules_by_prefix: [Component, Requester, Pipeline, Storage]
]
end
defp cover_ignore_modules do
[
Requester.JustReturn,
Pipeline.Standard,
Pipeline.Empty,
Pipeline.OnlyCall,
Pipeline.NoCallFunction,
SpiderMan.Modules,
SpiderManTest,
EngineTest,
Spider0
]
end
defp package do
[
name: "spider_man",
description: "SpiderMan,a fast high-level web crawling & scraping framework for Elixir",
files: ["lib", "mix.exs", "README.md", "LICENSE.md"],
maintainers: ["feng19"],
licenses: ["Apache-2.0"],
links: %{"GitHub" => @source_url}
]
end
end