forked from bitcrowd/chromic_pdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
100 lines (88 loc) · 2.63 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
91
92
93
94
95
96
97
98
99
100
# SPDX-License-Identifier: Apache-2.0
defmodule ChromicPdf.MixProject do
use Mix.Project
@source_url "https://github.com/bitcrowd/chromic_pdf"
@version "1.4.0"
def project do
[
app: :chromic_pdf,
version: @version,
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
dialyzer: [plt_file: {:no_warn, ".plts/dialyzer.plt"}],
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
aliases: aliases(),
# ExUnit
test_paths: test_paths(Mix.env()),
# hex.pm
package: package(),
# hexdocs.pm
name: "ChromicPDF",
source_url: @source_url,
homepage_url: @source_url,
docs: [
main: "ChromicPDF",
logo: "assets/icon.png",
extras: [
"README.md": [title: "Read Me"],
"CHANGELOG.md": [title: "Changelog"],
LICENSE: [title: "License"]
],
skip_undefined_reference_warnings_on: ["CHANGELOG.md"],
source_url: @source_url,
source_ref: "v#{@version}",
formatters: ["html"],
assets: "assets"
]
]
end
def application do
[
extra_applications: [:eex, :logger]
]
end
defp package do
[
description: "Fast HTML-2-PDF/A renderer based on Chrome & Ghostscript",
maintainers: ["@bitcrowd"],
licenses: ["Apache-2.0"],
links: %{
Changelog: "https://hexdocs.pm/chromic_pdf/changelog.html",
GitHub: @source_url
}
]
end
defp elixirc_paths(:dev), do: ["examples", "lib"]
defp elixirc_paths(:integration), do: ["examples", "lib", "test/integration/support"]
defp elixirc_paths(:test), do: ["lib", "test/unit/support"]
defp elixirc_paths(_env), do: ["lib"]
defp test_paths(:test), do: ["test/unit"]
defp test_paths(:integration), do: ["test/integration"]
defp test_paths(_env), do: []
defp deps do
[
{:jason, "~> 1.1"},
{:nimble_pool, "~> 0.2.3"},
{:telemetry, "~> 0.4 or ~> 1.0"},
{:dialyxir, "~> 1.2", only: [:dev, :test], runtime: false},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:ex_doc, ">= 0.0.0", only: [:test, :dev], runtime: false},
{:junit_formatter, "~> 3.1", only: [:test, :integration]},
{:mox, "~> 1.0", only: [:test]},
{:phoenix, "~> 1.5", only: [:dev, :integration]},
{:phoenix_html, "~> 3.0", only: [:dev, :integration]},
{:plug, "~> 1.11", only: [:dev, :integration]},
{:bandit, "~> 0.5.11", only: [:integration]}
]
end
defp aliases do
[
lint: [
"format --check-formatted",
"credo --strict",
"dialyzer --format dialyxir"
]
]
end
end