mermaid integration

This commit is contained in:
Martin Kavík 2024-09-26 12:45:17 +02:00
parent 39887b3396
commit 9bca370872
6 changed files with 1451 additions and 1 deletions

View file

@ -0,0 +1,12 @@
Init
- `npm install`
Watch & build (without typechecking)
- `node_modules/.bin/esbuild mermaid.ts --bundle --outfile=../bundles/mermaid.js --format=esm --watch`
Watch & typecheck (without building)
- `node_modules/.bin/tsc mermaid.ts --watch -noEmit --preserveWatchOutput --target esnext --module esnext --moduleResolution bundler`
Created with commands:
- `npm i -E mermaid`
- `npm i -D esbuild typescript`

View file

@ -0,0 +1,3 @@
export function hello(): String {
return "Hello from Mermaid"
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,9 @@
{
"dependencies": {
"mermaid": "11.2.1"
},
"devDependencies": {
"esbuild": "^0.24.0",
"typescript": "^5.6.2"
}
}

View file

@ -2,7 +2,7 @@ Init
- `npm install`
Watch & build (without typechecking)
-`- `node_modules/.bin/esbuild pixi_canvas.ts --bundle --outfile=../bundles/tauri_glue.js --format=esm --watch``
- `node_modules/.bin/esbuild tauri_glue.ts --bundle --outfile=../bundles/tauri_glue.js --format=esm --watch`
Watch & typecheck (without building)
- `node_modules/.bin/tsc tauri_glue.ts --watch -noEmit --preserveWatchOutput --target esnext --module esnext --moduleResolution bundler`