refactor folder structure
This commit is contained in:
16
CLAUDE.md
16
CLAUDE.md
@@ -46,10 +46,18 @@ drag a JavaScript bundler along for a CSS file.
|
||||
### go/ — module `kjol`
|
||||
|
||||
Packages, imported as `kjol/<name>`: `appenv basic chrono config csv dbutil finance httputil
|
||||
l4g lexer security snailmail validation jsbundler tw`, plus the **gowasm** web-UI engine (`vdom`
|
||||
`wasmruntime` `rsc` `wasmdevserver`, and `webui` — a Tailwind-styled component kit ported
|
||||
from `jsruntime/uikit`; author components in pure Go compiled to WebAssembly; all
|
||||
stdlib-only), and `cmd/{bundle,twcss,migrate,loc,passgen,typecheck,wasmgen}`.
|
||||
l4g lexer security snailmail validation jsbundler tw`, plus the **gowasm** web-UI engine
|
||||
(`wasmruntime` and its sub-packages `wasmruntime/vdom` + `wasmruntime/rsc`, `wasmdevserver`,
|
||||
and `webui` — a Tailwind-styled component kit ported from `jsruntime/uikit`; author
|
||||
components in pure Go compiled to WebAssembly; all stdlib-only), and
|
||||
`cmd/{bundle,twcss,migrate,loc,passgen,typecheck,wasmgen}`.
|
||||
|
||||
`vdom` and `rsc` are **sub-packages of `wasmruntime`** — imported as `kjol/wasmruntime/vdom`
|
||||
and `kjol/wasmruntime/rsc` (the package names stay `vdom` / `rsc`, so call sites are still
|
||||
`vdom.VNode`, `rsc.Mount`). They nest cleanly because `vdom` imports nothing and both `rsc`
|
||||
and `wasmruntime` import only `vdom` — no child imports the parent, so there is no cycle.
|
||||
`wasmgen` emits these import paths in the `*.gen.go` glue, so if they ever move again, its
|
||||
templates move with them.
|
||||
|
||||
`jsbundler` is the **JS** build (TSX → Solid → esbuild + the goja SSR bake). It was called
|
||||
`webbundler`.
|
||||
|
||||
Reference in New Issue
Block a user