Loading...

How HAX knows its own elements

7 manifests, 7 ubiquity steps that touch them, 6 readers.

Registry and manifests

  1. The registry: where every tag loads from, and the import graph behind it. (wc-registry.json, wc-registry-graph.json, HAXcms Node.js, HAXcms PHP, HAX CLI, haxcms-elements, web-container)
  2. Each package describes its elements in a Custom Elements Manifest; the catalog and HAX's registry are built from them. (custom-elements.json, elements-catalog.json, hax-elements-registry.json, 9. hax-elements-discovery, 10. elements-catalog, 11. hax-elements-demo-page, api-snapshot.mjs, extract-element-docs.mjs, haxschema-check.mjs, i18n-layout-check.mjs, leak-check.mjs, runtime-deps-check.mjs, cem analyze)
  3. Translations: which languages exist and which elements speak them. (languages.json, translation-manifest.json, HAXcms Node.js, HAXcms PHP, HAX CLI, i18n-manager, Languages)
  4. The ubiquity build writes them in order. (Ubiquity, 6. wc-autoloader, 8. language-registry-sync, 9. hax-elements-discovery, 10. elements-catalog, 11. hax-elements-demo-page, 13. translation-manifest, 14. language-registry-report)
  5. Everything at once.