Files
softharbor/lefthook.yml
T
poli0981 b875957d41 feat(data): seed the app catalogue — 5 to 326 vetted apps
Takes SoftHarbor from 5 seed entries to the full catalogue, with the
docs/09 §6 vetting pass recorded for every one.

- 326 apps / 697 pages, all 12 categories populated
- 320 `clean`, 6 held at `unverified`, 0 `flagged`; every entry carries
  its VirusTotal permalink in `security.evidence`
- New `logo` form `monogram` (D23) for the 209 apps with no brand mark,
  since docs/14 §3d sanctions only Simple Icons or vendor-official assets
- `security.evidence` is now actually rendered — it had been required by
  docs/09 §6 and shown nowhere, invisible because it was always null
- L3 caught ten dead official links, incl. henrypp.org 301ing to an
  unrelated site; `ds4windows` dropped as having no maintained home
- /apps measures 112 KB gzip against the 200 KB budget, so pagination
  stays deferred (docs/15 §2 item 9)

Does not tag v1.0.0: the L4 read-through of summaries, licences and
developer names is still open.
2026-07-30 14:25:03 +07:00

37 lines
1.1 KiB
YAML

# Git hooks — docs/10 §4.
# `data` and `i18n` are two jobs on two globs on purpose: folding the parity
# check into validate:data means a commit touching only src/i18n/*.json never
# runs it (docs/07 §3).
pre-commit:
parallel: true
jobs:
- name: format
glob: '*.{ts,js,mjs,astro,svelte,css,json,jsonc,yml,yaml,md}'
exclude:
- 'src/data/apps/*.json'
run: pnpm prettier --write {staged_files}
stage_fixed: true
# App data is formatted by directory rather than by file list. A bulk
# data change interpolates one path per app into {staged_files}, and the
# 286-app seed overran the Windows 8 KB command-line limit — the commit
# aborted with "The command line is too long."
- name: format-data
glob: 'src/data/apps/*.json'
run: pnpm prettier --write src/data/apps
stage_fixed: true
- name: lint
glob: '*.{ts,js,mjs,astro,svelte}'
run: pnpm eslint {staged_files}
- name: data
glob: 'src/data/**'
run: pnpm validate:data
- name: i18n
glob: 'src/i18n/**'
run: pnpm i18n:check
pre-push:
jobs:
- name: test
run: pnpm test