-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
61 lines (51 loc) · 1.51 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 WechatMp.Mixfile do
use Mix.Project
@version "0.0.3"
def project do
[app: :wechat_mp_auth,
version: @version,
package: package,
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
source_url: "https://github.com/he9qi/wechat_mp_auth",
homepage_url: "https://github.com/he9qi/wechat_mp_auth",
description: description,
deps: deps,
docs: docs,
elixirc_paths: elixirc_paths(Mix.env),
test_coverage: [tool: ExCoveralls]]
end
def application do
[applications: [:cowboy, :logger, :plug, :httpoison, :redix, :con_cache],
mod: {WechatMPAuth, []}]
end
defp deps do
[{:cowboy, "~> 1.0.0"},
{:httpoison, "~> 0.9.0"},
{:plug, "~> 1.0"},
{:poison, "~> 2.0"},
{:mimetype_parser, "~> 0.1"},
{:redix, "0.4.0"},
{:bypass, "~> 0.1", only: :test},
{:excoveralls, "~> 0.3", only: :test},
{:con_cache, "~> 0.11.1"},
# docs dependencies
{:earmark, "~>0.1", only: :dev},
{:ex_doc, "~>0.1", only: :dev}]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp docs do
[extras: ["README.md"], main: "readme"]
end
defp description do
"An Elixir WeChat Media Platform Authentication Client Library."
end
defp package do
[files: ["lib", "mix.exs", "README.md", "LICENSE"],
maintainers: ["Qi He"],
licenses: ["MIT"],
links: %{"Github": "https://github.com/he9qi/wechat_mp_auth"}]
end
end