-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmix.exs
93 lines (85 loc) · 2.16 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
defmodule Tableau.MixProject do
use Mix.Project
@source_url "https://github.com/elixir-tools/tableau"
def project do
[
app: :tableau,
description: "Static site generator for elixir",
source_url: @source_url,
version: "0.20.1",
elixir: "~> 1.15",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
package: package(),
deps: deps(),
docs: docs()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :inets],
mod: {TableauDevServer.Application, []}
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:bandit, "~> 1.0"},
{:date_time_parser, "~> 1.2"},
{:floki, "~> 0.34"},
{:html_entities, "~> 0.5.2"},
{:libgraph, "~> 0.16.0"},
{:mdex, "~> 0.2.0"},
{:plug_static_index_html, "~> 1.0"},
{:schematic, "~> 0.4"},
{:tz, "~> 0.28.1"},
{:web_dev_utils, "~> 0.2"},
{:websock_adapter, "~> 0.5"},
{:xml_builder, "~> 2.1"},
{:yaml_elixir, "~> 2.9"},
# dev
{:ex_doc, ">= 0.0.0", only: :dev},
{:styler, "~> 1.0", only: :dev}
]
end
defp package do
[
maintainers: ["Mitchell Hanberg"],
licenses: ["MIT"],
links: %{
GitHub: @source_url,
Sponsor: "https://github.com/sponsors/mhanberg"
},
files: ~w(lib LICENSE mix.exs README.md .formatter.exs)
]
end
defp docs do
[
main: "Tableau",
groups_for_modules: [
Site: [
Tableau,
Tableau.Layout,
Tableau.Page,
Tableau.Document.Helper
],
Converters: [
Tableau.Converter,
Tableau.MDExConverter
],
Extensions: [
Tableau.Extension,
Tableau.PostExtension,
Tableau.PageExtension,
Tableau.SitemapExtension,
Tableau.RSSExtension,
Tableau.DataExtension
]
]
]
end
end