-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrsconstruct.toml
More file actions
87 lines (68 loc) · 3.48 KB
/
Copy pathrsconstruct.toml
File metadata and controls
87 lines (68 loc) · 3.48 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
# rsconstruct build configuration for this repository.
[build]
# src_dirs entries name directories; "." (the whole tree) is a config error
reject_dot_src_dirs = true
# ─── analyzers ───────────────────────────────────────────────────────────────
[analyzer.tera]
# Convention: tera configs are Lua (config/*.lua). Every dep_auto entry
# listed here must exist: rsconstruct rejects a missing one at config load.
# Repos still on config/*.py keep a dep_inputs override in their local
# overlay until converted.
[processor.tera]
dep_auto = [
"config/project.lua",
"config/personal.lua",
"config/version.lua",
]
src_dirs = ["tera.templates"]
dep_inputs = [
"config/project.lua",
"config/personal.lua",
"config/version.lua",
"config/jschess.lua",
]
[processor.shellcheck]
src_dirs = ["scripts", "docs", "config"]
# ─── lua ─────────────────────────────────────────────────────────────────────
[processor.luacheck]
src_dirs = ["config"]
# ─── toml / yaml / json ──────────────────────────────────────────────────────
[processor.taplo]
src_files = [".rumdl.toml", "rsconstruct.toml"]
# The JS packaging pipeline the pydmt-era Makefile used to own: concatenate
# the tera-rendered out/src/*.js into docs/jschess.js, minify it with
# yuicompressor, produce the pack variants and out/jschess.zip, and generate
# docs/jsdoc/ with jsdoc. The out/src/*.js glob matches the tera processor's
# outputs, so tera renders before this runs. jsdoc output is deterministic
# (support/jsdoc.json sets includeDate: false).
[processor.explicit.jsbundle]
command = "scripts/build_js.sh"
inputs = ["package.json", "support/jsdoc.json"]
input_globs = ["out/src/*.js"]
output_files = [
"docs/jschess.js",
"docs/jschess.min.js",
"docs/jschess.pack.js",
"docs/jschess.pack.min.js",
"out/jschess.zip",
]
output_dirs = ["docs/jsdoc"]
# lint the GitHub Actions workflow files with actionlint
[processor.actionlint]
src_dirs = [".github/workflows"]
# ─── markdown ────────────────────────────────────────────────────────────────
[processor.rumdl]
src_files = ["README.md"]
# ─── json ────────────────────────────────────────────────────────────────────
[processor.ijsonlint]
src_dirs = ["support"]
src_files = ["package.json"]
# ─── html ────────────────────────────────────────────────────────────────────
# not linted: docs/jsdoc (generated jsdoc output)
[processor.htmlhint]
src_dirs = ["docs"]
# ─── javascript ──────────────────────────────────────────────────────────────
# not linted: docs/jsdoc (generated jsdoc output)
[processor.eslint]
src_dirs = ["docs"]
args = ["-c", ".eslint.config.js"]