forked from kbrw/reaxt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
46 lines (41 loc) · 1.15 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
defmodule Reaxt.Mixfile do
use Mix.Project
def project do
[app: :reaxt,
version: "2.0.0",
description: description,
package: package,
elixir: ">= 1.0.0",
deps: deps]
end
def application do
[applications: [:logger, :poolboy, :exos],
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, "1.0.0"},
{:poolboy, "~> 1.5.0"},
{:cowboy,"~> 1.0.0"},
{:plug, "~> 1.0"},
{:poison,"~> 2.1.0"},
{:ex_doc, ">= 0.0.0", only: :dev}]
end
defp package do
[ maintainers: ["Arnaud Wetzel"],
licenses: ["The MIT License (MIT)"],
links: %{ "GitHub"=>"https://github.com/awetzel/reaxt"} ]
end
defp description do
"""
Use your react components into your elixir application, using webpack compilation.
"""
end
end