github plz bring back DarkVIllager d185dd7ec4 fix(CLI): make options consistent (#9358) 1 hodinu pred
..
src d185dd7ec4 fix(CLI): make options consistent (#9358) 1 hodinu pred
templates 239a48fad8 feat: modernize repo (#9184) 2 týždňov pred
README.md 239a48fad8 feat: modernize repo (#9184) 2 týždňov pred
package-lock.json 6742759cba chore(cli): fix punycode deprecation warning (#9340) 4 dní pred
package.json 6742759cba chore(cli): fix punycode deprecation warning (#9340) 4 dní pred
tsconfig.json 239a48fad8 feat: modernize repo (#9184) 2 týždňov pred
vitest.config.ts 239a48fad8 feat: modernize repo (#9184) 2 týždňov pred

README.md

CLI

The CLI is used to build the services, and when in dev mode, it will watch for changes and rebuild the services.

API Versionizing

Default (api version specified in metadata.json): /websites/<letter>/<service>/metadata.json

If there is support for multiple api versions, the api version is specified in the metadata.json file and folder /websites/<letter>/<service>/v1/metadata.json /websites/<letter>/<service>/v2/metadata.json

Building steps

  • install dependencies
  • typecheck
  • compile the presence.ts file to dist
  • compile the iframe.ts file to dist (if it exists)
  • copy the metadata.json file to dist
  • copy the .json file to dist (if it exists)
  • Dev mode

    • watch for changes and rebuild the services
    • connect to extension