-
Notifications
You must be signed in to change notification settings - Fork 18
/
mix.exs
executable file
·44 lines (39 loc) · 986 Bytes
/
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
defmodule Bson.Mixfile do
use Mix.Project
def project do
[ app: :bson,
name: "bson",
version: "0.4.4",
elixir: "~> 1.0 or ~> 1.1",
description: "BSON implementation for Elixir",
source_url: "https://github.com/checkiz/elixir-bson",
deps: deps(Mix.env),
package: package,
docs: &docs/0 ]
end
# Configuration for the OTP application
def application do
[]
end
# Returns the list of dependencies in the format:
defp deps(:docs) do
[
{:ex_doc, ">= 0.0.0" },
{:earmark, ">= 0.0.0"}
]
end
defp deps(_), do: []
defp docs do
[ #readme: true,
#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/checkiz/elixir-bson",
"Documentation" => "http://hexdocs.pm/bson/"
} ]
end
end