-
Notifications
You must be signed in to change notification settings - Fork 11
/
mix.exs
51 lines (45 loc) · 1.47 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
Code.append_path "deps/relex/ebin"
defmodule Expm.Mixfile do
use Mix.Project
def project do
[ app: :expm,
version: String.strip(System.cmd("git describe --always --tags"),?\n),
deps: deps,
escript_embed_elixir: true,
release_options: [path: "rel"]
]
end
# Configuration for the OTP application
def application do
[applications: [:lager, :lagerex, :hackney, :ranch, :cowboy, :mimetypes, :inets,
:genx, :crypto, :exreloader, :erlpass, :exconfig],
mod: {Expm, []}]
end
defp deps do
[
{:validatex, github: "yrashk/validatex"},
{:hackney, github: "benoitc/hackney"},
{:edown, github: "esl/edown"},
{:genx, github: "yrashk/genx"},
{:cowboy, github: "extend/cowboy"},
{:ranch, github: "extend/ranch"},
{:mimetypes, github: "spawngrid/mimetypes"},
{:lagerex, github: "yrashk/lagerex"},
{:exreloader, github: "yrashk/exreloader"},
{:erlpass, github: "ferd/erlpass", compile: "rebar compile deps_dir=.."},
{:proper, github: "manopapad/proper"},
{:bcrypt, github: "spawngrid/erlang-bcrypt"},
{:relex, github: "yrashk/relex"},
{:exconfig, github: "yrashk/exconfig"},
]
end
if Code.ensure_loaded?(Relex.Release) do
defmodule Release do
use Relex.Release
def name, do: "expm"
def version, do: Mix.project[:version]
def applications, do: [:expm]
def lib_dirs, do: ["deps"]
end
end
end