mermaid integration
This commit is contained in:
parent
39887b3396
commit
9bca370872
6 changed files with 1451 additions and 1 deletions
12
frontend/typescript/mermaid/README.md
Normal file
12
frontend/typescript/mermaid/README.md
Normal 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`
|
3
frontend/typescript/mermaid/mermaid.ts
Normal file
3
frontend/typescript/mermaid/mermaid.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
export function hello(): String {
|
||||
return "Hello from Mermaid"
|
||||
}
|
1378
frontend/typescript/mermaid/package-lock.json
generated
Normal file
1378
frontend/typescript/mermaid/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
9
frontend/typescript/mermaid/package.json
Normal file
9
frontend/typescript/mermaid/package.json
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"dependencies": {
|
||||
"mermaid": "11.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"esbuild": "^0.24.0",
|
||||
"typescript": "^5.6.2"
|
||||
}
|
||||
}
|
|
@ -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`
|
||||
|
|
Reference in a new issue