rename packages, refactor out tailwind compiler,

This commit is contained in:
2026-07-13 15:06:09 -04:00
parent c5b14d7c41
commit d52151cc1a
62 changed files with 1446 additions and 460 deletions

16
.vscode/launch.json vendored
View File

@@ -1,7 +1,12 @@
{
// Debug configs for the gowasm example. cwd is the example dir because the
// dev server resolves ./wwwroot, ./app, ./wasm and the watched engine dir
// dev server resolves ./wwwroot, ./app, ./wasm and the watched engine dirs
// relative to it.
//
// The dev-server configs preLaunchTask the prebuild (codegen + Tailwind). Codegen must
// run before the server is compiled — it writes app/*.gen.go, which the server imports —
// and under the debugger the binary is built by Delve, not by the server's own Build
// hook, so nothing else would generate it.
"version": "0.2.0",
"configurations": [
{
@@ -11,7 +16,8 @@
"mode": "auto",
"program": "${workspaceFolder}/go/cmd/examples/go-wasm-web/server",
"cwd": "${workspaceFolder}/go/cmd/examples/go-wasm-web",
"args": ["-addr", ":8085"]
"args": ["-addr", ":8085"],
"preLaunchTask": "gowasm: prebuild"
},
{
"name": "gowasm: dev server (no watch)",
@@ -20,7 +26,11 @@
"mode": "auto",
"program": "${workspaceFolder}/go/cmd/examples/go-wasm-web/server",
"cwd": "${workspaceFolder}/go/cmd/examples/go-wasm-web",
"args": ["-watch=false"]
// -watch=false skips the server's own Build entirely, so wwwroot is served exactly
// as it sits on disk. The prebuild is what puts current CSS and generated code
// there; without it you would be debugging against stale artefacts.
"args": ["-watch=false"],
"preLaunchTask": "gowasm: prebuild"
},
{
"name": "gowasm: codegen (wasmgen)",