-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
88 lines (79 loc) · 2.15 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
defmodule Noizu.OpenAI.MixProject do
use Mix.Project
def project do
[
app: :noizu_labs_open_ai,
name: "Noizu Labs: OpenAI",
description: description(),
package: package(),
version: "0.1.3",
elixir: "~> 1.14",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: [
plt_file: {:no_warn, "priv/plts/project.plt"}
],
test_coverage: [
summary: [
threshold: 40
],
ignore_modules: [
]
]
]
end
defp description() do
"OpenAI Wrapper"
end
defp package() do
[
licenses: ["MIT"],
links: %{
project: "https://github.com/noizu-labs/elixir-openai",
noizu_labs: "https://github.com/noizu-labs",
noizu_labs_machine_learning: "https://github.com/noizu-labs-ml",
noizu_labs_scaffolding: "https://github.com/noizu-labs-scaffolding",
developer_github: "https://github.com/noizu"
}
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help compile.app" to learn about applications.
def application do
dev_apps = if Mix.env() in [:dev] do
[:ex_doc]
else
[]
end
test_apps = if Mix.env() in [:test] do
[:junit_formatter]
else
[]
end
[
mod: {
Noizu.OpenAI.Application,
[
]
},
extra_applications: [:logger, :finch, :jason] ++ dev_apps ++ test_apps
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:junit_formatter, "~> 3.3", only: [:test]},
{:ex_doc, "~> 0.28.3", only: [:dev, :test], optional: true, runtime: false}, # Documentation Provider
{:finch, "~> 0.15"},
{:jason, "~> 1.2"},
{:mimic, "~> 1.0.0", only: :test},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:sweet_xml, "~> 0.7", only: :test}
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
]
end
end