maxGraph/packages/ts-example
Anatoliy Mayorov 2ad1395aab refactor: run eslint and prettier on codebase 2022-10-29 22:53:09 +03:00
..
src refactor: run eslint and prettier on codebase 2022-10-29 22:53:09 +03:00
README.md ts-example: restore the rounded shape in the custom rectangle 2022-09-24 11:16:26 +02:00
favicon.svg chore: improve the configuration to build the npm package (#87) 2022-07-05 08:08:25 +02:00
index.html chore: improve the configuration to build the npm package (#87) 2022-07-05 08:08:25 +02:00
package.json chore: improve vite config in ts-example (#104) 2022-09-14 13:15:04 +02:00
tsconfig.json chore(tsconfig): add base tsconfig.json 2022-10-23 10:33:45 +03:00
vite.config.js chore: improve vite config in ts-example (#104) 2022-09-14 13:15:04 +02:00

README.md

TypeScript project using the maxGraph npm package

Initialized from https://github.com/vitejs/vite/tree/v2.9.8/packages/create-vite/template-vanilla-ts

Setup

Initialize all packages

From the repository root, run npm install.

Build maxgraph@core

From the packages/core directory, run npm run generate-esm.

Run

Run npm run dev and go to http://localhost:5173/

If you want to bundle the application, run npm run build and then run npm run preview to access to a preview of the bundle application.