feat(opsserver): switch to TypedServer and serve bundled UI assets; add index.html; update bundling output and dev watch configuration

This commit is contained in:
2026-02-24 13:47:44 +00:00
parent e5eb6b7582
commit 0d9e76bf94
8 changed files with 73 additions and 17 deletions

View File

@@ -3,19 +3,29 @@
"bundles": [
{
"from": "./ts_web/index.ts",
"to": "./dist_serve/bundle.js",
"outputMode": "bundle",
"to": "./ts_bundled/bundle.ts",
"outputMode": "base64ts",
"bundler": "esbuild",
"production": true
"production": true,
"includeFiles": ["./index.html"]
}
]
},
"@git.zone/tswatch": {
"bundles": [
{
"from": "./ts_web/index.ts",
"to": "./ts_bundled/bundle.ts",
"watchPatterns": ["./ts_web/**/*"],
"triggerReload": true
}
],
"watchers": [
{
"name": "ui-bundle",
"watch": "./ts_web/**/*",
"command": "tsbundle",
"name": "backend",
"watch": "./ts/**/*",
"command": "deno run --allow-all mod.ts server",
"restart": true,
"debounce": 500,
"runOnStart": true
}