-
Notifications
You must be signed in to change notification settings - Fork 31
/
mix.exs
56 lines (49 loc) · 1.17 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
defmodule Mongo.Mixfile do
use Mix.Project
def project do
[ app: :mongo,
name: "mongo",
version: "0.5.4",
elixir: "~> 1.0 or ~> 1.1",
source_url: "https://github.com/checkiz/elixir-mongo",
description: "MongoDB driver for Elixir",
deps: deps(Mix.env),
package: package,
docs: &docs/0 ]
end
# Configuration for the OTP application
def application do
[
applications: [],
env: [host: {"127.0.0.1", 27017}]
]
end
# Returns the list of dependencies for prod
defp deps(:prod) do
[
bson: "~> 0.4.4"
]
end
# Returns the list of dependencies for docs
defp deps(:docs) do
deps(:prod) ++
[
{:ex_doc, ">= 0.0.0" },
{:earmark, ">= 0.0.0"}
]
end
defp deps(_), do: deps(:prod)
defp docs do
[ #readme: false,
#main: "README",
source_ref: System.cmd("git", ["rev-parse", "--verify", "--quiet", "HEAD"])|>elem(0) ]
end
defp package do
[ maintainers: ["jerp"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/checkiz/elixir-mongo",
"Documentation" => "http://hexdocs.pm/mongo"
} ]
end
end