3d-components/package.json
Luís Murta f7dac370b4
refactor: break down single html file
Scaffold project structure with vite.

src/
  types.ts    ← Node, Connection, ParseResult, PaletteEntry, BlockInfo, AppState
  parser.ts   ← parsePuml()
  colors.ts   ← PALETTE, guessColor()
  svg.ts      ← makeBlock(), makeArrow(), makeLine() (pure SVG helpers)
  main.ts     ← state, drawLevel(), updateNav(), render(), setBugData(), event wiring
  style.css   ← all styles
index.html    ← shell + default PlantUML example in textarea
package.json  ← vite + typescript devDeps
tsconfig.json ← strict mode, ESNext, bundler resolution
2026-03-14 14:17:16 +00:00

16 lines
271 B
JSON

{
"name": "vite-scaffold",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
},
"devDependencies": {
"typescript": "~5.9.3",
"vite": "^8.0.0"
}
}