JS/TS workflow#

Use this page when you work on the TypeScript runtime.

Source of truth#

  • TypeScript sources: molsysviewer/js/src/

  • Generated artifacts:

    • molsysviewer/viewer.js

    • molsysviewer/viewer.js.map

Do not edit generated artifacts by hand.

Install and build#

cd molsysviewer/js
npm install
npm run build

Test#

Unit tests

cd molsysviewer/js
npm run test:js

E2E tests (manual, requires a browser with WebGL)

cd molsysviewer/js
npm run test:e2e

Debug#

  • Use Debugging for message-level debugging and popout sync issues.

  • Use your browser devtools console for runtime logs.