maxGraph/packages/ts-example
Thomas Bouffard ea836a1fb5
chore: improve vite config in ts-example (#104)
bump vite from 2.9.12 to 3.1.0
add vite config to generate a dedicated chunk for maxgraph@core. It lets know the size the produced bundle in an
external application and if tree shaking works.
2022-09-14 13:15:04 +02:00
..
src doc: update copyright and license in source file headers (#100) 2022-08-30 17:36:33 +02:00
README.md chore: improve vite config in ts-example (#104) 2022-09-14 13:15:04 +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: improve the configuration to build the npm package (#87) 2022-07-05 08:08:25 +02: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

Do not forget to initialize all packages (you may also need to build the maxgraph@core package)

From the repository root, run npm install.

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.