Commit Graph

3 Commits

Author SHA1 Message Date
Amiram_se 60b62d98db docs(decisions): fixed-name fonts and sprite versioned in its link
- 0009 and 0010 versioned the file names; both are now superseded.
- 0011: fonts keep fixed names with no version; a changed font ships
  under a new name.
- 0012: the sprite stays symbol-defs.svg, linked with ?v=<N>, written by
  icon-sprite-plugin and font-copy-plugin.
- 0007 and 0008 are marked superseded, and the index lists 0011 and 0012.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 19:00:46 +04:00
Amiram_se bbf84069c9 feat(island,apps): island asset plugin writes hashed fonts and icon sprite
Add withIslandAssets (island tools/asset-plugin) per ADR 0008. On next dev
and next build it builds the svgo sprite from src/icons and copies the
Yekan Bakh fonts into the app's public/ under content-hashed names, puts
their paths in env (NEXT_PUBLIC_ISLAND_*) and serves them with an
immutable Cache-Control. Files are written in headers(), which only Next
calls, because Nx's next plugin also evaluates the config from the
workspace root.

- island env (setEnv/getEnv); Icon reads the sprite path from it
- icon-sprite-plugin becomes icon-name-extraction (IconName type only);
  the committed sprite.svg is removed
- bull and bear register the plugin, validate the paths, pass them to
  island through their bootstraps, and add an optional CDN origin for fonts
- gitignore the generated files; Nx build outputs include them

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 11:58:56 +04:00
Amiram_se 9de000f3d2 chore: docs 2026-10-04 22:03:42 +04:00