forked from zztczcx/elixir-mongo
-
Notifications
You must be signed in to change notification settings - Fork 5
/
mix.exs
48 lines (42 loc) · 1.05 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
defmodule Mongo.Mixfile do
use Mix.Project
def project do
[ app: :mongo,
name: "mongo",
version: "0.5.5",
elixir: "~> 1.7",
source_url: "https://github.com/ejoy/elixir-mongo",
description: "MongoDB driver for Elixir",
deps: deps(),
package: package(),
docs: &docs/0 ]
end
# Configuration for the OTP application
def application do
[
applications: [:logger],
env: [host: {"127.0.0.1", 27017}]
]
end
# Returns the list of dependencies for prod
defp deps() do
[
{:ex_doc, ">= 0.0.0", only: :doc },
{:earmark, ">= 0.0.0", only: :doc},
{:cbson, "~> 0.1.1"}
]
end
defp docs do
[ #readme: false,
#main: "README",
source_ref: System.cmd("git", ["rev-parse", "--verify", "--quiet", "HEAD"])|>elem(0) ]
end
defp package do
[ contributors: ["jerp"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/ejoy/elixir-mongo",
"Documentation" => "https://checkiz.github.io/elixir-mongo"
} ]
end
end