-
Notifications
You must be signed in to change notification settings - Fork 10
/
mix.exs
43 lines (34 loc) · 763 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
defmodule Razor.Mixfile do
use Mix.Project
@build_path "razor_archives"
@version "1.0.2"
def project do
[app: :razor,
version: @version,
elixir: "~> 1.6",
build_embedded: true,
start_permanent: true,
escript: escript(),
deps: deps(),
]
end
def application do
[applications: [:logger, :poison, :httpoison, :inflex]]
end
defp deps do
[
{:httpoison, "~> 0.12"},
{:poison, "~> 3.1"},
{:inflex, "~> 1.9"},
{:arguments, "~> 0.1"},
{:credo, "~> 0.8", only: [:dev, :test], runtime: false},
]
end
defp escript do
[main_module: Razor.CLI,
path: "#{build_path()}/razor.ez",
]
end
def build_path(), do: @build_path
def version(), do: @version
end