forked from Dalgona/Serum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
109 lines (101 loc) · 2.68 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
defmodule Serum.Mixfile do
use Mix.Project
@serum_version "1.5.1"
def project do
[
app: :serum,
version: @serum_version,
elixir: ">= 1.13.0",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],
preferred_cli_env: preferred_cli_env(),
deps: deps(),
package: package(),
docs: docs(),
elixirc_paths: elixirc_paths(Mix.env())
]
end
def application do
[extra_applications: [:logger, :eex, :cowboy, :tzdata], mod: {Serum, []}]
end
defp preferred_cli_env do
[
coveralls: :test,
"coveralls.detail": :test,
"coveralls.travis": :test,
"coveralls.html": :test
]
end
defp deps do
[
{:earmark, "~> 1.4"},
{:file_system, "~> 1.0", override: true},
{:microscope, "~> 1.4.0"},
{:timex, "~> 3.7"},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.18", only: [:test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:floki, "~> 0.35"},
{:ex_doc, "~> 0.31", only: :dev, runtime: false},
{:mix_test_watch, "~> 1.1", only: :dev, runtime: false},
{:mox, "~> 1.1", only: :test}
]
end
defp package do
[
name: "serum",
description: "Yet another static website generator written in Elixir",
maintainers: ["Eunbin Jeong"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/Dalgona/Serum",
"Website" => "http://dalgona.github.io/Serum"
}
]
end
defp docs do
[
main: "Serum",
source_url: "https://github.com/Dalgona/Serum",
homepage_url: "https://dalgona.github.io/Serum",
groups_for_modules: [
"Entry Points": [
Serum,
Serum.Build,
Serum.DevServer,
Serum.DevServer.Prompt
],
"Core Types": [
Serum.File,
Serum.Fragment,
Serum.Page,
Serum.Post,
Serum.PostList,
Serum.Project,
Serum.Result,
Serum.Tag,
Serum.Template
],
"Built-in Plugins": [
Serum.Plugins.LiveReloader,
Serum.Plugins.PreviewGenerator,
Serum.Plugins.RssGenerator,
Serum.Plugins.SitemapGenerator,
Serum.Plugins.TableOfContents
],
"Extension Development": [
Serum.HtmlTreeHelper,
Serum.Plugin,
Serum.Theme
]
],
nest_modules_by_prefix: [
Serum,
Serum.Plugins
]
]
end
defp elixirc_paths(:test), do: ["test/support", "lib"]
defp elixirc_paths(_), do: ["lib"]
end