@jxsuite/compiler 6.0.2 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -2
- package/dist/cli.js +256 -295
- package/dist/compiler.js +147 -186
- package/package.json +8 -9
- package/src/compiler.ts +21 -12
- package/src/shared.ts +133 -10
- package/src/site/layout-resolver.ts +43 -3
- package/src/site/server-entries.ts +118 -0
- package/src/site/site-build.ts +114 -52
- package/src/targets/compile-client.ts +54 -12
- package/src/targets/compile-element.ts +37 -0
- package/src/targets/compile-server.ts +17 -52
package/README.md
CHANGED
|
@@ -40,7 +40,6 @@ The compiler auto-detects the appropriate output target:
|
|
|
40
40
|
| 1: Static | No dynamic bindings | Plain HTML/CSS, zero JS |
|
|
41
41
|
| 2: Custom element | Root `tagName` contains a hyphen | `HTMLElement` subclass + lit-html |
|
|
42
42
|
| 3: Dynamic page | Dynamic, standard `tagName` | Pre-rendered HTML + reactive JS |
|
|
43
|
-
| 4: Server | Has `timing: "server"` entries | Hono server handler |
|
|
44
43
|
|
|
45
44
|
## Site builder
|
|
46
45
|
|
|
@@ -60,7 +59,6 @@ const result = await buildSite("./my-site", { verbose: true, clean: true });
|
|
|
60
59
|
| `compile(src, opts)` | Compile a single Jx document |
|
|
61
60
|
| `compileClient(doc, opts)` | Dynamic page with reactive hydration |
|
|
62
61
|
| `compileElement(doc, opts)` | Custom element module |
|
|
63
|
-
| `compileServer(src, opts)` | Hono server handler |
|
|
64
62
|
| `compileSiteServer(entries)` | Site-wide server bundle |
|
|
65
63
|
| `isDynamic(doc)` | Detect whether a document needs JS |
|
|
66
64
|
|