@nodeve/checks 3.0.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lefthook.checks.yml +7 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -57,7 +57,7 @@ Per-check semantics, tuning, and examples: **[docs/checks.md](docs/checks.md)**.
|
|
|
57
57
|
|
|
58
58
|
## Prose gate (Vale)
|
|
59
59
|
|
|
60
|
-
A second engine gates markdown _wording_ — [Vale](https://vale.sh) against the org house rules in `styles/nodeve/` (`Narration`, `Ephemeral`, `Hedging`, `Filler`, `SentenceLength`), an unguarded `
|
|
60
|
+
A second engine gates markdown _wording_ — [Vale](https://vale.sh) against the org house rules in `styles/nodeve/` (`Narration`, `Ephemeral`, `Hedging`, `Filler`, `SentenceLength`), an unguarded `md-prose` job (`packages.md-tools`) in `lefthook.checks.yml`. ALWAYS ON: it runs the package's own `.vale.ini` with vendored styles — no per-repo `.vale.ini`, no `vale sync`. Fails the commit if `md-prose` is missing. Rules: **[PROSE.md](PROSE.md)**.
|
|
61
61
|
|
|
62
62
|
It covers every staged `.md` — the scope `doc-tokens` budgets. One contract: stage a doc, it answers to both.
|
|
63
63
|
|
package/lefthook.checks.yml
CHANGED
|
@@ -80,19 +80,15 @@ pre-commit:
|
|
|
80
80
|
glob: '*.md'
|
|
81
81
|
run: md-lint {staged_files}
|
|
82
82
|
|
|
83
|
-
# Prose gate
|
|
84
|
-
#
|
|
85
|
-
#
|
|
86
|
-
#
|
|
87
|
-
|
|
88
|
-
# if `vale` isn't on PATH the commit FAILS (install it: it's in the nix
|
|
89
|
-
# devShell). vale exits nonzero on `error` alerts; warning/suggestion are
|
|
90
|
-
# advisory.
|
|
91
|
-
- name: vale
|
|
83
|
+
# Prose gate: md-prose (md-tools) runs vale with this package's
|
|
84
|
+
# `.vale.ini` and styles, baked in by store path. ALWAYS ON: no per-repo
|
|
85
|
+
# `.vale.ini`, no `vale sync`. UNGUARDED like md-fmt. vale exits nonzero
|
|
86
|
+
# on `error` alerts; warning/suggestion are advisory.
|
|
87
|
+
- name: md-prose
|
|
92
88
|
glob: '*.md'
|
|
93
89
|
run: |
|
|
94
|
-
command -v
|
|
95
|
-
|
|
90
|
+
command -v md-prose >/dev/null || { echo "✖ md-prose is not installed — it ships in the nix devShell ('nix develop') as nodeve's packages.md-tools."; exit 1; }
|
|
91
|
+
md-prose {staged_files} || { echo "↑ You touched these docs, so you own their prose errors — clear ALL of them (not just your edit)."; echo " Re-run on one file for jump-to-line detail: pnpm exec nodeve-prose <file.md>"; exit 1; }
|
|
96
92
|
|
|
97
93
|
- name: reshape
|
|
98
94
|
glob: '*.ts'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nodeve/checks",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Org-wide commit-gate checks (doc budgets, reshape/dup/helper smells, page size) and helper-index generators, driven by a per-repo config file and wired through lefthook.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|