-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathmix.exs
63 lines (55 loc) · 1.55 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
55
56
57
58
59
60
61
62
63
Code.ensure_loaded?(Hex) and Hex.start
defmodule Weber.Mixfile do
use Mix.Project
def project do
[ app: :weber,
version: "0.1.1",
name: "Weber",
elixir: ">= 0.13.3",
deps: deps(Mix.env),
source_url: "https://github.com/0xAX/weber",
homepage_url: "http://0xax.github.io/weber/index.html",
description: "weber - is Elixir MVC web framework.",
package: package
]
end
def application do
[
description: 'weber - is Elixir MVC web framework.',
registered: [:weber],
mod: { Weber, [] },
lager: [
{:handlers, [
{:lager_console_backend, :info},
{:lager_file_backend, [{:file, "error.log"}, {:level, :error}]},
{:lager_file_backend, [{:file, "console.log"}, {:level, :info}]},
]}
]
]
end
defp deps(:prod) do
[
{:cowboy, "~> 1.0.0" },
{:jsex, github: "talentdeficit/jsex"},
{:plug, "~> 0.5.0"},
{:exlager, github: "khia/exlager"},
{:weberContrib, github: "0xAX/weber-contrib"}
]
end
defp deps(:test) do
deps(:prod) ++ [{ :hackney, github: "benoitc/hackney" }]
end
defp deps(_) do
deps(:prod)
end
defp package do
[
files: ["lib", "test", "tmp", "templates", "examples", "README.md", "LICENSE", "ChangeLog.md", "mix.exs", "Makefile"],
contributors: ["0xAX"],
licenses: ["MIT"],
links: [
{ "GitHub", "https://github.com/elixir-web/weber" },
{ "Docs", "http://0xax.github.io/weber/index.html" } ]
]
end
end