-
Notifications
You must be signed in to change notification settings - Fork 4
/
mix.exs
54 lines (46 loc) · 1.1 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
52
53
54
defmodule Jolt.Mixfile do
use Mix.Project
def project do
[
app: :jolt,
name: "Jolt",
escript: escript_config(),
version: "0.1.0",
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
package: package(),
source_url: "https://github.com/clarkware/jolt",
description: description()
]
end
def application do
[applications: [:logger, :poison, :cowboy, :plug]]
end
defp deps do
[
{ :poison, "~> 1.5" },
{ :cowboy, "~> 1.0" },
{ :plug, "~> 1.1" }
]
end
defp description do
"""
A full REST JSON API with zero coding, powered by Elixir.
It is intended to be used as a command-line tool
(just run mix escript.build first).
"""
end
defp package do
[
maintainers: [ "Mike Clark"],
files: [ "lib", "mix.exs", "README.md", "LICENSE", "CHANGELOG.md" ],
licenses: ["MIT"],
links: %{github: "https://github.com/clarkware/jolt"},
]
end
defp escript_config do
[main_module: Jolt.CLI]
end
end