-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
177 lines (167 loc) · 4.98 KB
/
Copy pathmix.exs
File metadata and controls
177 lines (167 loc) · 4.98 KB
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
defmodule Astral.MixProject do
use Mix.Project
@version "0.2.6"
@source_url "https://github.com/elixir-volt/astral"
def project do
[
app: :astral,
version: @version,
elixir: "~> 1.20",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: [plt_add_apps: [:ex_unit, :mix]],
aliases: aliases(),
name: "Astral",
description: "Volt-powered static site generator for Elixir applications.",
source_url: @source_url,
homepage_url: @source_url,
package: package(),
docs: docs()
]
end
def application do
[
extra_applications: [:logger]
]
end
def cli do
[
preferred_envs: [ci: :test]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_env), do: ["lib"]
defp deps do
[
{:volt, "~> 0.17.11"},
{:mdex, "~> 0.13"},
{:yaml_elixir, "~> 2.12"},
{:json_spec, "~> 1.1"},
{:jsv, "~> 0.8"},
{:zoi, "~> 0.18"},
{:xm, "~> 0.2"},
{:ecto, "~> 3.13"},
{:dsl, "~> 0.1.2"},
{:image, "~> 0.68"},
{:req, "~> 0.6"},
{:phoenix_live_view, "~> 1.2"},
{:bandit, "~> 1.12"},
{:floki, "~> 0.38"},
{:plug, "~> 1.20"},
{:phoenix_iconify, "~> 0.3.5"},
{:igniter, "~> 0.8", optional: true},
{:ex_slop, "~> 0.4", only: [:dev, :test], runtime: false},
{:reach, "~> 2.0", only: [:dev, :test], runtime: false},
{:ex_dna, "~> 1.0", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:credo, "~> 1.0", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.35", only: :dev, runtime: false},
{:playwright_ex, "~> 0.5", only: :test}
]
end
defp aliases do
[
ci: [
"format",
"compile --warnings-as-errors",
"format --check-formatted",
"volt.js.check --type-aware --type-check",
"test",
"credo --strict",
"dialyzer",
"ex_dna --max-clones 0",
"reach.check --arch --smells"
]
]
end
defp package do
[
licenses: ["MIT"],
links: %{"GitHub" => @source_url},
files: package_files()
]
end
defp package_files do
~w|
lib
priv
guides
mix.exs
README.md
CHANGELOG.md
ROADMAP.md
LICENSE
examples/basic/.formatter.exs
examples/basic/.gitignore
examples/basic/README.md
examples/basic/assets/app.ts
examples/basic/assets/env.d.ts
examples/basic/assets/images/astral-mark.svg
examples/basic/assets/islands/Gallery.vue
examples/basic/assets/islands/ReactCounter.jsx
examples/basic/assets/styles.css
examples/basic/astral.config.exs
examples/basic/config/config.exs
examples/basic/components/base_head.astral
examples/basic/components/formatted_date.astral
examples/basic/components/pill.astral
examples/basic/content/posts/hello-astral.md
examples/basic/layouts/astral.astral
examples/basic/layouts/default.html
examples/basic/layouts/marketing.html
examples/basic/layouts/post.html
examples/basic/mix.exs
examples/basic/package-lock.json
examples/basic/package.json
examples/basic/pages/404.astral
examples/basic/pages/about.md
examples/basic/pages/blog
examples/basic/pages/components.astral
examples/basic/pages/index.md
examples/basic/pages/landing.md
examples/basic/pages/raw.html
examples/basic/pages/tags
examples/basic/public/robots.txt
examples/basic/tsconfig.json
|
end
defp docs do
[
main: "readme",
source_ref: "v#{@version}",
source_url: @source_url,
extras: [
"README.md",
"CHANGELOG.md",
"ROADMAP.md",
"guides/introduction/getting-started.md",
"guides/introduction/why-astral.md",
"guides/features/pages-and-layouts.md",
"guides/features/astral-templates.md",
"guides/features/content-collections.md",
"guides/features/content-and-data.md",
"guides/features/pagination-and-routes.md",
"guides/features/navigation.md",
"guides/features/server-runtime.md",
"guides/features/backend-auth-testing.md",
"guides/features/feeds-and-sitemaps.md",
"guides/features/assets.md",
"guides/features/ui-and-browser-code.md",
"guides/features/development-server.md",
"guides/features/editor-and-typescript.md",
"guides/features/environment-variables.md",
"guides/features/plugins.md",
"guides/deployment/static-builds.md",
"guides/cheatsheets/configuration.cheatmd",
"guides/cheatsheets/cli.cheatmd"
],
groups_for_extras: [
Introduction: ~r/guides\/introduction\//,
Features: ~r/guides\/features\//,
Deployment: ~r/guides\/deployment\//,
Cheatsheets: ~r/guides\/cheatsheets\//
]
]
end
end