forked from dynamo/dynamo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
40 lines (34 loc) · 884 Bytes
/
mix.exs
File metadata and controls
40 lines (34 loc) · 884 Bytes
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
defmodule Dynamo.Mixfile do
use Mix.Project
def project do
[ app: :dynamo,
elixir: "~> 0.13.3 or ~> 0.14.0-dev",
version: "0.1.0-dev",
name: "Dynamo",
source_url: "https://github.com/dynamo/dynamo",
deps: deps(Mix.env),
docs: &docs/0 ]
end
def deps(:prod) do
[ { :mime, github: "dynamo/mime" },
{ :cowboy, github: "extend/cowboy", optional: true } ]
end
def deps(:docs) do
deps(:prod) ++
[ { :ex_doc, github: "elixir-lang/ex_doc" } ]
end
def deps(_) do
deps(:prod) ++
[ { :hackney, github: "benoitc/hackney", tag: "0.12.1" } ]
end
def application do
[ applications: [:crypto],
env: [under_test: nil],
mod: { Dynamo.App, [] } ]
end
defp docs do
[ readme: true,
main: "README",
source_ref: System.cmd("git rev-parse --verify --quiet HEAD") ]
end
end