-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmix.exs
More file actions
121 lines (116 loc) · 3.57 KB
/
Copy pathmix.exs
File metadata and controls
121 lines (116 loc) · 3.57 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
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
defmodule Drafter.MixProject do
use Mix.Project
def project do
[
app: :drafter,
version: "0.2.10",
elixir: "~> 1.18",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:elixir_make | Mix.compilers()],
make_targets: ["all"],
make_clean: ["clean"],
start_permanent: Mix.env() == :prod,
deps: deps(),
description: "An Elixir Terminal User Interface framework",
package: package(),
consolsdate_protocols: true,
source_url: "https://github.com/jaman/drafter",
homepage_url: "https://github.com/jaman/drafter",
docs: [
main: "Drafter",
extras: [
"README.md",
"CHANGELOG.md",
"guides/remote_tui.md": [title: "Remote TUI"],
"guides/writing_widgets.md": [title: "Writing Widgets & Libraries"]
],
groups_for_modules: [
"Remote Servers": [Drafter.Server],
Core: [Drafter, Drafter.App, Drafter.Widget, Drafter.WidgetLibrary, Drafter.Screen],
Events: [
Drafter.Event,
Drafter.Event.Object,
Drafter.Event.Delegation
],
Theming: [
Drafter.Theme,
Drafter.ThemeManager,
Drafter.Color,
Drafter.SkinManager,
Drafter.CharacterSet
],
Drawing: [Drafter.Draw.Segment, Drafter.Draw.Strip, Drafter.Draw.Canvas],
"Display Widgets": [
Drafter.Widget.Label,
Drafter.Widget.Markdown,
Drafter.Widget.CodeView,
Drafter.Widget.Digits,
Drafter.Widget.ProgressBar,
Drafter.Widget.LoadingIndicator,
Drafter.Widget.Sparkline,
Drafter.Widget.Pretty,
Drafter.Widget.Log,
Drafter.Widget.RichLog,
Drafter.Widget.Rule,
Drafter.Widget.Placeholder
],
"Input Widgets": [
Drafter.Widget.Button,
Drafter.Widget.TextInput,
Drafter.Widget.TextArea,
Drafter.Widget.Checkbox,
Drafter.Widget.Switch,
Drafter.Widget.RadioSet,
Drafter.Widget.SelectionList,
Drafter.Widget.MaskedInput,
Drafter.Widget.OptionList,
Drafter.Widget.Link
],
"Data Widgets": [
Drafter.Widget.DataTable,
Drafter.Widget.Tree,
Drafter.Widget.DirectoryTree,
Drafter.Widget.Chart
],
"Layout Widgets": [
Drafter.Widget.Container,
Drafter.Widget.ScrollableContainer,
Drafter.Widget.Grid,
Drafter.Widget.Card,
Drafter.Widget.Header,
Drafter.Widget.Footer,
Drafter.Widget.Collapsible,
Drafter.Widget.TabbedContent,
Drafter.Widget.SplitPaneDivider
],
Testing: [Drafter.Test, Drafter.Test.Harness],
Animation: [Drafter.Animation]
]
]
]
end
def application do
[
extra_applications: [:logger, :ssh],
mod: {Drafter.Application, []}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:elixir_make, "~> 0.9"},
{:spark, "~> 2.6"},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:phoenix_pubsub, "~> 2.1"},
{:ex_doc, "~> 0.34", only: :dev, runtime: false}
]
end
defp package do
[
maintainers: ["Drafter"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/jaman/drafter"}
]
end
end