-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
86 lines (81 loc) · 2.48 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
defmodule GptAgent.MixProject do
use Mix.Project
def project do
[
app: :gpt_agent,
version: "10.0.0",
elixir: "~> 1.16",
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
docs: [
main: "GptAgent",
extras: ["README.md"]
],
source_url: "https://github.com/thisisartium/gpt_agent",
homepage_url: "https://thisisartium.com",
package: [
description: "A client for the OpenAI Assistants API",
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/thisisartium/gpt_agent",
"Documentation" => "https://hexdocs.pm/gpt_agent",
"Artium" => "https://thisisartium.com"
}
],
compilers: [:domo_compiler | Mix.compilers()]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:assert_match, "~> 1.0", only: :test},
{:bypass, "~> 2.1", only: :test},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:doctor, "~> 0.21", only: :dev, runtime: false},
{:domo, "~> 1.5"},
{:eventually, "~> 1.1", only: :test},
{:ex_doc, "~> 0.30", only: [:dev, :test], runtime: false},
{:faker, "0.17.0", only: :test},
{:jason, "~> 1.2"},
{:knigge, "~> 1.4"},
{:mix_audit, "~> 2.1", only: :dev, runtime: false},
{:mix_test_interactive, "~> 1.2", only: :dev, runtime: false},
{:mox, "~> 1.1", only: :test},
{:open_ai_client, "~> 3.0"},
{:phoenix_pubsub, "~> 2.1"},
{:stream_data, "~> 0.6"},
{:sobelow, "~> 0.12", only: [:dev, :test], runtime: false},
{:typed_struct, "~> 0.3"},
{:uuid, "~> 1.1"}
]
end
defp aliases do
[
compile: ["compile --warnings-as-errors"],
sobelow: ["sobelow --config"],
dialyzer: ["dialyzer --list-unused-filters"],
credo: ["credo --strict"],
check_formatting: ["format --check-formatted"],
check: [
"check_formatting",
"docs --raise",
"credo --strict",
"doctor --raise",
"dialyzer",
"deps.audit --raise",
"deps.unlock --check-unused"
]
]
end
end