-
Notifications
You must be signed in to change notification settings - Fork 5
/
mix.exs
125 lines (115 loc) · 2.85 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
defmodule GGity.MixProject do
use Mix.Project
@source_url "https://github.com/srowley/ggity"
@version "0.5.0"
def project do
[
app: :ggity,
version: @version,
aliases: aliases(),
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
package: package(),
deps: deps(),
dialyzer: [plt_add_apps: [:mix]],
name: "GGity",
description: """
GGity brings the familiar interface of R's ggplot2 library to SVG
charting in Elixir.
""",
docs: docs()
]
end
def application, do: []
defp deps do
[
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.29", only: :dev, runtime: false},
{:sweet_xml, "~> 0.7", only: :test},
{:explorer, "~> 0.6.0"},
{:nimble_csv, "~> 1.2"},
{:nimble_strftime, "~> 0.1"}
]
end
defp aliases do
[
checks: [
"compile",
"credo",
"format"
],
build_docs: [
"ggity.docs",
"docs"
]
]
end
defp package() do
[
maintainers: "Steve Rowley",
name: "ggity",
files: ~w(lib priv mix.exs README* LICENSE* ROADMAP* CHANGELOG*),
licenses: ["MIT"],
links: %{
"Website" => "http://www.pocketbookvote.com/",
"GitHub" => @source_url,
"Changelog" => "#{@source_url}/blob/master/CHANGELOG.md",
"Roadmap" => "#{@source_url}/blob/master/ROADMAP.md"
}
]
end
defp docs do
[
source_url: @source_url,
source_ref: "v#{@version}",
main: "readme",
extra_section: "CONCEPTS & EXAMPLES",
assets: "guides/assets",
formatters: ["html", "epub"],
groups_for_modules: groups_for_modules(),
extras: extras(),
groups_for_extras: groups_for_extras(),
api_reference: false
]
end
defp extras() do
[
"README.md",
"guides/geom_point.md": [title: "Points"],
"guides/geom_line.md": [title: "Lines"],
"guides/geom_bar.md": [title: "Bars"],
"guides/geom_boxplot.md": [title: "Boxplot"],
"guides/geom_text.md": [title: "Text"],
"guides/scale_color_viridis.md": [title: "Color/Fill Viridis"],
"guides/theme.md": [title: "Theme"],
"guides/annotate.md": [title: "Annotate"]
]
end
defp groups_for_extras do
[
Geoms: [
"guides/geom_point.md",
"guides/geom_line.md",
"guides/geom_bar.md",
"guides/geom_boxplot.md",
"guides/geom_text.md"
],
Scales: [
"guides/scale_color_viridis.md"
],
Themes: [
"guides/theme.md"
],
Annotations: [
"guides/annotate.md"
]
]
end
defp groups_for_modules do
[
"Plot API": [GGity.Plot],
Themes: [GGity.Theme, GGity.Element.Line, GGity.Element.Rect, GGity.Element.Text],
Helpers: [GGity.Labels]
]
end
end