-
Notifications
You must be signed in to change notification settings - Fork 4
/
mix.exs
68 lines (63 loc) · 1.76 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
defmodule Prompt.MixProject do
use Mix.Project
def project do
[
app: :prompt,
description: "A terminal toolkit and a set of helpers for building console applications.",
version: "0.10.0",
elixir: "~> 1.10",
package: package(),
source_url: "https://github.com/silbermm/prompt",
dialyzer: [
flags: ["-Wunmatched_returns", :error_handling, :underspecs]
],
docs: docs(),
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application do
[
extra_applications: [:logger, :iex]
]
end
defp deps do
[
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
{:ex_doc, ">= 0.28.4", only: :dev, runtime: false},
{:dialyxir, "~> 1.1", only: [:dev], runtime: false},
{:nimble_options, "~> 0.3.0"}
]
end
defp package do
[
licenses: ["GPL-3.0-or-later"],
files: ["lib", "mix.exs", "README.md", "CHANGELOG.md", "COPYING*"],
maintainers: ["Matt Silbernagel"],
links: %{:GitHub => "https://github.com/silbermm/prompt"}
]
end
defp docs do
[
main: "Prompt",
api_reference: false,
extras: [
"README.md": [filename: "introduction", title: "Introduction"],
"example.livemd": [filename: "example", title: "Example"],
"CHANGELOG.md": [filename: "changelog", title: "Changelog"],
LICENSE: [filename: "license", title: "License"]
],
logo: "assets/prompt.png",
authors: ["Matt Silbernagel"],
groups_for_functions: [
"Input Functions": &(&1[:section] == :input),
"Output Functions": &(&1[:section] == :output)
],
nest_modules_by_prefix: [
Prompt,
Prompt.Command,
Prompt.Position
]
]
end
end