-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmix.exs
More file actions
101 lines (93 loc) · 2.56 KB
/
mix.exs
File metadata and controls
101 lines (93 loc) · 2.56 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
defmodule Fnord.MixProject do
use Mix.Project
def project do
[
app: :fnord,
version: "0.9.29",
elixir: "~> 1.19",
start_permanent: Mix.env() == :prod,
description: "AI code archaeology",
package: package(),
deps: deps(),
escript: escript(),
cli: cli(),
docs: docs(),
test_coverage: [tool: ExCoveralls],
test_ignore_filters: [
~r/^test\/support\/.*\.ex/
]
]
end
def cli do
[
preferred_envs: [
coveralls: :test,
"coveralls.html": :test,
"coveralls.json": :test
]
]
end
defp docs do
# Glob so adding a new guide under docs/user/ auto-publishes it to
# hexdocs. The self-help tool (`AI.Tools.SelfHelp.Docs`) already globs
# the same directory at compile time for its URL list, so both stay
# in sync without hand-editing two lists. The root README.md at the
# top is separate from docs/user/README.md to avoid a
# `readme.html` filename collision in the published output.
user_guides =
"docs/user/*.md"
|> Path.wildcard()
|> Enum.reject(&(&1 == "docs/user/README.md"))
|> Enum.sort()
[
main: "readme",
extras: ["README.md" | user_guides],
groups_for_extras: [Guides: user_guides],
source_url: "https://github.com/sysread/fnord",
homepage_url: "https://hex.pm/packages/fnord",
format: :html
]
end
defp package do
[
maintainers: ["Jeff Ober"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/sysread/fnord"}
]
end
defp escript do
[
main_module: Fnord,
strip_beams: Mix.env() == :prod
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:briefly, "~> 0.5.1"},
{:clipboard, "~> 0.2.1"},
{:dialyxir, "~> 1.4.5", only: [:dev], runtime: false},
{:ex_doc, ">= 0.0.0", only: [:dev], runtime: false},
{:excoveralls, "~> 0.18.5", only: [:test], runtime: false},
{:hermes_mcp, "~> 0.14"},
{:httpoison, "~> 2.2.1"},
{:jason, "~> 1.4"},
{:meck, "~> 1.0", only: [:test], runtime: false},
{:mox, "~> 1.2", only: [:test], runtime: false},
{:optimus, "~> 0.2"},
{:owl, "~> 0.12"},
{:stemmer, "~> 1.2"},
{:toml, "~> 0.7"},
{:uniq, "~> 0.1"},
{:yaml_elixir, "~> 2.9"},
# OAuth2 browser-based flow (loopback server)
{:plug_cowboy, "~> 2.7"}
]
end
end