site-library/scripts/todos-merchant.md
2025-03-12 18:53:16 +01:00

624 B

Todos

skip checked todos

  • platform : windows

  • environment : Astro (5.3+)

  • language: Typescript, ESM

  • dont use classes

  • no lazy imports

  • use pure functions

  • each handler has the same function signature and naming

  • create a registry of handlers, transforming json data to platform specific formats, in ../src/model/registry.ts, the input schema is provided (see ../polymech-mono/packages/commons/src/component.ts), create a new file per type, eg: ../src/model/rss.ts

    • "rss" (@astrojs/rss)
    • "merchant" (google)
    • "json-ld" (products)
  • evaluate the registry on demand