mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
f5b030b4eb
- Replace helpers dispatcher pattern with standalone chroma-lexers package - Add runCommand, fromRoot, consola re-export to shared - Update versioning and integration to use shared utilities - Shorten dev version format: base36 timestamp, no hash - Rename eslint.config.js to eslint.config.ts (add jiti) - Add README.md to each package
@hugo-fixit/chroma-lexers
Generates the Chroma lexer SCSS map (assets/scss/core/maps/_chroma-lexers.scss) by fetching lexer definitions from the Chroma repository on GitHub.
Usage
pnpm gen:lexers
How it works
- Fetches lexer definitions (XML + Go) from the Chroma GitHub repo via the GitHub API
- Extracts language names and aliases from each lexer
- Generates a SCSS map (
$chroma-lexers) mapping aliases to canonical names - Appends custom code types defined in
src/custom-types.ts