-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathmix.exs
73 lines (65 loc) · 1.66 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
64
65
66
67
68
69
70
71
72
73
defmodule Reaxt.Mixfile do
use Mix.Project
def version, do: "4.1.1"
defp description do
"""
Use your react components into your elixir application, using webpack compilation.
"""
end
def project do
[
app: :reaxt,
version: version(),
description: description(),
package: package(),
elixir: "~> 1.12",
deps: deps(),
docs: docs(),
source_url: git_repository(),
]
end
def application do
[applications: [:logger, :poolboy, :exos, :plug, :poison],
mod: {Reaxt.App,[]},
env: [
otp_app: :reaxt, #the OTP application containing compiled JS server
hot: false, # false | true | :client hot compilation and loading
pool_size: 1, #pool size of react renderes
webpack_config: "webpack.config.js",
server_dir: "react_servers",
pool_max_overflow: 5 #maximum pool extension when the pool is full
]]
end
defp deps do
[{:exos, "~> 2.0"},
{:poolboy, "~> 1.5"},
{:plug, "~> 1.15"},
{:poison,"~> 5.0"},
{:ex_doc, "~> 0.31", only: :dev, runtime: false}]
end
defp package do
[
licenses: ["The MIT License (MIT)"],
links: %{
"GitHub" => git_repository(),
"Changelog" => "https://hexdocs.pm/reaxt/changelog.html",
},
maintainers: ["Arnaud Wetzel"],
]
end
def docs do
[
extras: [
"CHANGELOG.md": [title: "Changelog"],
"README.md": [title: "Overview"],
],
api_reference: false,
main: "readme",
source_url: git_repository(),
source_ref: "v#{version()}",
]
end
defp git_repository do
"https://github.com/kbrw/reaxt"
end
end