@zenithbuild/cli 0.6.6 → 0.6.9

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.
Files changed (43) hide show
  1. package/dist/build.d.ts +32 -0
  2. package/dist/build.js +193 -548
  3. package/dist/compiler-bridge-runner.d.ts +5 -0
  4. package/dist/compiler-bridge-runner.js +70 -0
  5. package/dist/component-instance-ir.d.ts +6 -0
  6. package/dist/component-instance-ir.js +0 -20
  7. package/dist/component-occurrences.d.ts +6 -0
  8. package/dist/component-occurrences.js +6 -28
  9. package/dist/dev-server.d.ts +18 -0
  10. package/dist/dev-server.js +65 -114
  11. package/dist/dev-watch.d.ts +1 -0
  12. package/dist/dev-watch.js +2 -2
  13. package/dist/index.d.ts +8 -0
  14. package/dist/index.js +6 -28
  15. package/dist/manifest.d.ts +23 -0
  16. package/dist/manifest.js +22 -48
  17. package/dist/preview.d.ts +100 -0
  18. package/dist/preview.js +418 -488
  19. package/dist/resolve-components.d.ts +39 -0
  20. package/dist/resolve-components.js +30 -104
  21. package/dist/server/resolve-request-route.d.ts +39 -0
  22. package/dist/server/resolve-request-route.js +104 -113
  23. package/dist/server-contract.d.ts +39 -0
  24. package/dist/server-contract.js +15 -67
  25. package/dist/toolchain-paths.d.ts +23 -0
  26. package/dist/toolchain-paths.js +139 -39
  27. package/dist/toolchain-runner.d.ts +33 -0
  28. package/dist/toolchain-runner.js +194 -0
  29. package/dist/types/generate-env-dts.d.ts +5 -0
  30. package/dist/types/generate-env-dts.js +4 -2
  31. package/dist/types/generate-routes-dts.d.ts +8 -0
  32. package/dist/types/generate-routes-dts.js +7 -5
  33. package/dist/types/index.d.ts +14 -0
  34. package/dist/types/index.js +16 -7
  35. package/dist/ui/env.d.ts +18 -0
  36. package/dist/ui/env.js +0 -12
  37. package/dist/ui/format.d.ts +33 -0
  38. package/dist/ui/format.js +8 -46
  39. package/dist/ui/logger.d.ts +59 -0
  40. package/dist/ui/logger.js +3 -32
  41. package/dist/version-check.d.ts +54 -0
  42. package/dist/version-check.js +41 -98
  43. package/package.json +6 -4
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Build a per-build warning emitter that deduplicates repeated compiler lines.
3
+ *
4
+ * @param {(line: string) => void} sink
5
+ * @returns {(line: string) => void}
6
+ */
7
+ export function createCompilerWarningEmitter(sink?: (line: string) => void): (line: string) => void;
8
+ /**
9
+ * Build all pages by orchestrating compiler and bundler binaries.
10
+ *
11
+ * Pipeline:
12
+ * 1. Build component registry (PascalCase name → .zen file path)
13
+ * 2. For each page:
14
+ * a. Expand PascalCase tags into component template HTML
15
+ * b. Compile expanded page source via --stdin
16
+ * c. Compile each used component separately for script IR
17
+ * d. Merge component IRs into page IR
18
+ * 3. Send all envelopes to bundler
19
+ *
20
+ * @param {{ pagesDir: string, outDir: string, config?: object, logger?: object | null, showBundlerInfo?: boolean }} options
21
+ * @returns {Promise<{ pages: number, assets: string[] }>}
22
+ */
23
+ export function build(options: {
24
+ pagesDir: string;
25
+ outDir: string;
26
+ config?: object;
27
+ logger?: object | null;
28
+ showBundlerInfo?: boolean;
29
+ }): Promise<{
30
+ pages: number;
31
+ assets: string[];
32
+ }>;