forked from gar1t/lambdapad
-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
mix.exs
68 lines (61 loc) · 1.79 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
defmodule Lambdapad.MixProject do
use Mix.Project
def project do
[
name: "Lambdapad",
description: "Static website generator",
app: :lambdapad,
version: "0.10.1",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps(),
escript: escript(),
name: "Lambdapad",
homepage_url: "https://lambdapad.com"
]
end
defp escript do
if Mix.env() == :dev and is_nil(System.get_env("IGNORE_BUILD_WARNING")) do
IO.warn(
"""
This script generated is including dependencies like ex_check,
dialyxir, credo, and all of the development tools which aren't
needed for production, use this command instead for generating
the correct build:
MIX_ENV=prod mix escript.build
""",
[]
)
end
[
main_module: Lambdapad.Cli,
name: "lpad"
]
end
def application do
[
extra_applications: [:logger, :eex, :inets, :ssl, :mix]
]
end
defp deps do
[
{:earmark, "~> 1.4"},
{:earmark_parser, "~> 1.4"},
{:erlydtl, github: "manuel-rubio/erlydtl"},
{:pockets, "~> 1.0"},
{:toml, "~> 0.6"},
{:optimus, "~> 0.3"},
{:cowboy, "~> 2.8"},
{:floki, "~> 0.30"},
{:phoenix_html, "~> 4.1"},
{:gettext, "~> 0.22"},
# dependencies only for check, use `MIX_ENV=prod mix escript.build` for
# generating the production script avoiding including these.
{:ex_doc, "~> 0.24", runtime: false, only: [:dev, :test]},
{:ex_check, "~> 0.14", runtime: false, only: [:dev, :test]},
{:dialyxir, "~> 1.2", runtime: false, only: [:dev, :test]},
{:doctor, "~> 0.19", runtime: false, only: [:dev, :test]},
{:credo, "~> 1.6", runtime: false, only: [:dev, :test]}
]
end
end