feat(assets): add helpers package for chroma lexer map generation (#781)

- Add `packages/helpers` with CLI dispatcher pattern for code generation
- Add `chroma-lexers` helper that fetches lexer definitions from alecthomas/chroma
- Rename `$code-type-map` to `$chroma-lexers`, `_code-type.scss` to `_chroma-lexers.scss`
- Fix `fi-var` and `set-fi-var` to preserve quotes for string fallbacks
- Add `capitalize` utility to `packages/shared`
- Replace `console.*` with `consola` in packages
- Add `pnpm gen:lexers` script and CI workflow for auto-regeneration
- Update CLAUDE.md and CONTRIBUTING.md
This commit is contained in:
Cell
2026-06-03 16:41:07 +08:00
committed by GitHub
parent eeff00f8c7
commit 03ca90b49f
24 changed files with 537 additions and 30 deletions
+2 -1
View File
@@ -17,7 +17,8 @@
"lruihao.hugo-partials-refs",
"tamasfe.even-better-toml",
"casualjim.gotemplate",
"SomewhatStationery.some-sass"
"SomewhatStationery.some-sass",
"gruntfuggly.todo-tree"
]
}
}