This repository has been archived by the owner on Jul 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
mix.exs
106 lines (97 loc) · 2.41 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
defmodule Still.MixProject do
use Mix.Project
@version "0.8.0"
def project do
[
app: :still,
description: "A modern static site generator for the Elixir community",
version: @version,
elixir: "~> 1.11",
elixirc_paths: ["lib"] ++ elixirc_paths(Mix.env()),
package: package(),
aliases: aliases(),
deps: deps(),
name: "Still",
source_url: "https://github.com/still-ex/still",
homepage_url: "https://stillstatic.io",
docs: docs(),
xref: [exclude: [IEx]]
]
end
defp docs do
[
main: "getting_started",
extras: [
"guides/introduction/getting_started.md",
"guides/introduction/templates.md",
"guides/introduction/configuration.md",
"guides/introduction/data.md",
"guides/introduction/pagination.md",
"guides/advanced/preprocessors.md",
"guides/advanced/hooks.md"
],
nest_modules_by_prefix: [
Still.Preprocessor,
Still.Compiler,
Still.Web
],
groups_for_extras: [
Introduction: Path.wildcard("guides/introduction/*.md"),
Advanced: Path.wildcard("guides/advanced/*.md")
]
]
end
def application do
[
extra_applications: [:logger, :inets, :mix, :iex],
mod: {Still.Application, []},
env: [
server: false,
profiler: false
]
]
end
defp deps do
[
{:cachex, "~> 3.3"},
{:cowboy, "~> 2.8"},
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:earmark, "~> 1.4.20"},
{:ex_doc, "~> 0.23", only: :dev, runtime: false},
{:ex_image_info, "~> 0.2.4"},
{:file_system, "~> 0.2.10"},
{:floki, "~> 0.32.0"},
{:jason, "~> 1.2"},
{:mime, "~> 1.0"},
{:mock, "~> 0.3.0", only: :test},
{:mogrify, "~> 0.8.0"},
{:plug, "~> 1.10"},
{:plug_cowboy, "~> 2.3"},
{:slime, "~> 1.2"},
{:timex, "~> 3.7"},
{:yaml_elixir, "~> 2.4"}
]
end
defp aliases do
[
test: "test --no-start"
]
end
defp elixirc_paths(:test) do
["test/support"]
end
defp elixirc_paths(_), do: []
defp package() do
[
licenses: ["ISC"],
links: %{"GitHub" => "https://github.com/still-ex/still"},
files: [
"LICENSE",
"mix*",
"lib/*",
"priv/still/*"
]
]
end
end