-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
95 lines (85 loc) · 2.46 KB
/
Copy pathmix.exs
File metadata and controls
95 lines (85 loc) · 2.46 KB
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
defmodule LovelyMermaid.MixProject do
use Mix.Project
@version "0.1.0"
@source_url "https://github.com/gilbertwong96/lovely_mermaid"
def project do
[
app: :lovely_mermaid,
version: @version,
elixir: "~> 1.19",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
# Quality gates
dialyzer: [plt_add_apps: [:mix]],
# Coverage
test_coverage: [tool: ExCoveralls],
# Package
description: "Render Mermaid diagrams as Unicode box-drawing art for terminals",
package: package(),
# Documentation
name: "LovelyMermaid",
source_url: @source_url,
homepage_url: @source_url,
source_ref: "v#{@version}",
docs: [
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
extras: ["README.md", "CHANGELOG.md", "PORTING.md"],
# Nested data-model modules (Parse.Shaped, Graph.Node, ...) fold
# under their parent module in the sidebar.
nest_modules_by_prefix: [
LovelyMermaid.Parse,
LovelyMermaid.Graph,
LovelyMermaid.Timeline,
LovelyMermaid.GitGraph,
LovelyMermaid.Layout
]
]
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:ex_dna, "~> 1.5", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.40", only: :dev, runtime: false},
{:ex_slop, "~> 0.4", only: [:dev, :test], runtime: false},
{:reach, "~> 2.8", only: [:dev, :test], runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.18", only: :test, runtime: false}
]
end
defp aliases do
[
ci: [
"cmd mix compile --all-warnings --warnings-as-errors",
"format --check-formatted",
"credo --strict",
"deps.unlock --check-unused",
"cmd mix hex.audit",
"xref graph --label compile-connected --fail-above 5",
"dialyzer",
"ex_dna",
"reach.check --dead-code --smells",
"cmd mix test"
]
]
end
defp package do
[
name: "lovely_mermaid",
licenses: ["Apache-2.0"],
links: %{
"GitHub" => @source_url,
"Original (lovely-mermaid, npm)" => "https://github.com/xl0/lovely-mermaid"
},
files: ~w(lib mix.exs README.md LICENSE CHANGELOG.md)
]
end
end