github plz bring back DarkVIllager d185dd7ec4 fix(CLI): make options consistent (#9358) 45 분 전
..
src d185dd7ec4 fix(CLI): make options consistent (#9358) 45 분 전
templates 239a48fad8 feat: modernize repo (#9184) 2 주 전
README.md 239a48fad8 feat: modernize repo (#9184) 2 주 전
package-lock.json 6742759cba chore(cli): fix punycode deprecation warning (#9340) 4 일 전
package.json 6742759cba chore(cli): fix punycode deprecation warning (#9340) 4 일 전
tsconfig.json 239a48fad8 feat: modernize repo (#9184) 2 주 전
vitest.config.ts 239a48fad8 feat: modernize repo (#9184) 2 주 전

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