feat: add CommonJS support to npm package by tbouffard · Pull Request #826 · maxGraph/maxGraph

@tbouffard

The new commonjs resources are built with a new tsc command and now referenced in the package.json file.

Add new examples using CommonJS with Node.js to demonstrate the new support:
- TypeScript example: show the integration with jest and ts-jest
- JavaScript example: use `maxGraph` in a headless environment with Node.js (and jsdom).
  This example exports Graph Model as XML, and exports the rendered Graph to SVG.

In addition, add missing git extension in the repository attribute of the package.json file.

@tbouffard

This is more portable, the previous implementation failed on Windows.

@tbouffard tbouffard marked this pull request as ready for review

May 13, 2025 07:46

coderabbitai[bot]

@tbouffard

@tbouffard

coderabbitai[bot]

coderabbitai[bot]

@tbouffard

coderabbitai[bot]

@tbouffard

coderabbitai[bot]

@tbouffard

@tbouffard tbouffard deleted the feat/824-add_commonjs_support_in_npm_package branch

May 14, 2025 13:15