maxGraph/packages/ts-example
Thomas Bouffard f2c2b4cbab
chore(deps-dev): bump vite from 4.5.2 to 5.0.12 (#314)
The vite built complained about an invalid "paths" settings in the root
tsconfig.json file.
It wasn't nested inside a "compilerOptions", so it was useless and this
configuration has been removed.
2024-01-23 10:07:03 +01:00
..
src refactor: simplify the code of `ts-example` (#255) 2023-11-16 11:53:47 +01: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(deps-dev): bump vite from 4.5.2 to 5.0.12 (#314) 2024-01-23 10:07:03 +01:00
tsconfig.json feat: declare exports in package.json (#306) 2024-01-18 07:44:23 +01:00
vite.config.js refactor!: move codecs to dedicated files and reduce side effects (#289) 2023-12-13 17:39:40 +01: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.