-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathmix.exs
61 lines (53 loc) · 1.52 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
defmodule ChineseTranslation.Mixfile do
use Mix.Project
@version File.cwd!() |> Path.join("version") |> File.read!() |> String.trim()
def project do
[
app: :chinese_translation,
version: @version,
elixir: "~> 1.5",
description: description(),
package: package(),
start_permanent: Mix.env() == :prod,
deps: deps(),
# exdocs
# Docs
name: "ChineseTranslation",
source_url: "https://github.com/tyrchen/chinese_translation",
homepage_url: "https://github.com/tyrchen/chinese_translation",
docs: [
main: "ChineseTranslation",
extras: ["README.md"]
]
]
end
def application do
[extra_applications: [:logger]]
end
defp deps do
[
{:httpoison, "~> 0.13"},
# dev & test
{:benchfella, "~> 0.3.5", only: [:dev]},
{:credo, "~> 0.8", only: [:dev, :test]},
{:ex_doc, "~> 0.18.1", only: [:dev, :test]},
{:pre_commit_hook, "~> 1.0.6", only: [:dev]}
]
end
defp description do
"""
ChineseTranslation provides traditional chinese <-> simplified chinese translation, as well as pinyin translation and slugify for chinese phrases/characters.
"""
end
defp package do
[
files: ["lib", "priv", "mix.exs", "README*", "LICENSE*", "version"],
licenses: ["MIT"],
maintainers: ["[email protected]"],
links: %{
"GitHub" => "https://github.com/tyrchen/chinese_translation",
"Docs" => "https://hexdocs.pm/chinese_translation"
}
]
end
end