-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
112 lines (95 loc) · 3.08 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
defmodule GenAI.MixProject do
use Mix.Project
def project do
[
app: :genai_core,
name: "GenAI Wrapper (core library)",
description: description(),
package: package(),
version: "0.1.0",
elixir: "~> 1.16",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
docs: [
main: "GenAI",
extras: [
"README.md",
"CHANGELOG.md",
"TODO.md",
"CONTRIBUTING.md",
"LICENSE"
]
],
dialyzer: [
plt_file: {:no_warn, "priv/plts/project.plt"}
],
test_coverage: [
summary: [
threshold: 40
],
ignore_modules: [
]
]
]
end
defp description() do
"Generative AI Wrapper (core libs): access multiple apis through single standardized interface."
end
defp package() do
[
licenses: ["MIT"],
links: %{
project: "https://github.com/noizu-labs-ml/genai_core",
},
files: [
"mix.exs",
"lib",
"README.md",
"CONTRIBUTING.md",
"TODO.md",
"LICENSE",
]
]
end
defp env_applications(), do: env_applications(Mix.env())
defp env_applications(:dev), do: [:ex_doc]
defp env_applications(:test), do: [:ex_doc, :junit_formatter]
defp env_applications(_), do: []
def application do
[
extra_applications: [:logger, :jason | env_applications()]
]
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
test_deps = [
{:junit_formatter, "~> 3.3", only: [:test]},
{:mimic, "~> 1.0.0", only: :test},
]
hex_deps = [
# Documentation Provider
{:ex_doc, "~> 0.28.3", only: [:dev, :test], optional: true, runtime: false},
# Static Analysis: Type Checking
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
]
common = [
# html parser and api client
{:floki, ">= 0.30.0"},
# UUID Library
{:elixir_uuid, "~> 1.2"},
#{:shortuuid, "~> 3.0"},
# Core Libraries
{:noizu_labs_core, "~> 0.1"},
# JSON/YAML
{:jason, "~> 1.2"},
#{:ymlr, "~> 4.0"},
#{:yaml_elixir, "~> 2.9.0"},
#{:sweet_xml, "~> 0.7", only: :test},
{:credo, "~> 1.0", only: [:dev, :test], runtime: false},
]
common ++ test_deps ++ hex_deps
end
end