matrix-widget-api

v1.9.0
Matrix Widget API SDK

start

tsc -w

clean

rimraf lib dist

build

yarn clean && yarn build:compile && yarn build:types && yarn build:browser

build:compile

babel -d lib --verbose --extensions ".ts" src

build:types

tsc --emitDeclarationOnly

build:browser

yarn build:browser:dev && yarn build:browser:prod

build:browser:dev

browserify lib/index.js --debug --s mxwidgets -o dist/api.js

build:browser:prod

browserify lib/index.js --s mxwidgets -p tinyify -o dist/api.min.js

lint

yarn lint:types && yarn lint:ts && yarn lint:workflows

lint:ts

eslint src test

lint:types

tsc --noEmit

lint:fix

eslint src test --fix

lint:workflows

find .github/workflows -type f \( -iname '*.yaml' -o -iname '*.yml' \) | xargs -I {} sh -c 'echo "Linting {}"; action-validator "{}"'

test

jest
npm i matrix-widget-api

Metadata

  • Apache-2.0
  • Whatever
  • The Matrix.org Foundation C.I.C.
  • released 8/30/2024

Downloads

Maintainers