-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
75 lines (66 loc) · 1.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
defmodule IbmSpeechToText.MixProject do
use Mix.Project
@version "0.3.0"
@github_url "https://github.com/SoftwareMansion/elixir-ibm-speech-to-text"
def project do
[
app: :ibm_speech_to_text,
version: @version,
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
# hex
description: "Elixir client for IBM Cloud Speech to Text service",
package: package(),
# docs
name: "IBM Speech to Text",
source_url: @github_url,
docs: docs()
]
end
def application do
[
extra_applications: []
]
end
defp deps do
[
{:ex_doc, "~> 0.19", only: :dev, runtime: false},
{:gun, "~> 1.3"},
{:jason, "~> 1.1"},
{:certifi, "~> 2.5"}
]
end
defp package do
[
maintainers: ["Bartosz Błaszków"],
licenses: ["Apache 2.0"],
links: %{
"GitHub" => @github_url
}
]
end
defp docs do
alias IBMSpeechToText.{
Response,
RecognitionResult,
RecognitionAlternative,
SpeakerLabelsResult
}
[
main: "readme",
extras: ["README.md"],
source_ref: "v#{@version}",
nest_modules_by_prefix: [IBMSpeechToText, IBMSpeechToText.Message],
groups_for_modules: [
Messages: ~r/IBMSpeechToText.Message/,
"API Responses": [
Response,
RecognitionResult,
RecognitionAlternative,
SpeakerLabelsResult
]
]
]
end
end