forked from dynamo/dynamo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
46 lines (38 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
defmodule Dynamo.Mixfile do
use Mix.Project
def project do
[ app: :dynamo,
elixir: "~> 0.11.0",
version: "0.1.0-dev",
name: "Dynamo",
source_url: "https://github.com/elixir-lang/dynamo",
deps: deps(Mix.env) ]
end
def deps(:prod) do
[ { :mimetypes, github: "spawngrid/mimetypes", override: 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" },
{ :cowboy, github: "extend/cowboy" } ]
end
def application do
[ applications: [:crypto, :mimetypes],
env: [under_test: nil],
mod: { Dynamo.App, [] } ]
end
end
defmodule Mix.Tasks.Release_docs do
@shortdoc "Releases docs"
def run(_) do
Mix.Task.run "docs"
File.cd! "../elixir-lang.github.com", fn -> System.cmd "git checkout master" end
File.rm_rf "../elixir-lang.github.com/docs/dynamo"
File.cp_r "docs/.", "../elixir-lang.github.com/docs/dynamo/"
File.rm_rf "docs"
end
end