@pithyjs/ssr 0.1.2-beta.9 → 0.2.0-beta.14

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.
@@ -8,7 +8,7 @@
8
8
  */
9
9
  import { type SpriteBundle } from '@pithyjs/shared/sprite';
10
10
  import type { RouteNode } from '@pithyjs/router';
11
- import type { HeadState } from '../shared/types.js';
11
+ import type { HeadState, ShellOptions } from '../shared/types.js';
12
12
  import { NOT_FOUND_OUTPUT, hasRenderedText } from './not-found.js';
13
13
  interface SSGBuildResult {
14
14
  /**
@@ -22,6 +22,8 @@ interface SSGBuildResult {
22
22
  * rendered no content, or a hand-authored `public/404.html` that won.
23
23
  */
24
24
  notFound: string | null;
25
+ /** Entries written for `ssg.shells`, e.g. `app/index.html`. */
26
+ shells: string[];
25
27
  failed: Array<{
26
28
  path: string;
27
29
  error: Error;
@@ -82,7 +84,30 @@ export interface ClientBuildResult {
82
84
  script?: string;
83
85
  /** Relative paths to extracted CSS files */
84
86
  css?: string[];
87
+ /** `base` as the client build resolved it (`/`, `/sub/`, a CDN URL, `./`). */
88
+ base?: string;
89
+ /** `publicDir` as the client build resolved it (`''` when disabled). */
90
+ publicDir?: string;
91
+ /** `build.copyPublicDir` as the client build resolved it. */
92
+ copyPublicDir?: boolean;
85
93
  }
94
+ /** Where a build's `public/` files came from, and whether they were copied. */
95
+ /** @codexApi {"parent":"pithy.ssr.build.vite-ssg","name":"PublicCopy","stability":"experimental","signature":"interface PublicCopy"} */
96
+ export interface PublicCopy {
97
+ publicDir: string | false | undefined;
98
+ copyPublicDir: boolean;
99
+ }
100
+ /**
101
+ * The `public/` settings that produced the output. In hydrate mode the
102
+ * production client build copied it, under its own config, which can differ
103
+ * from the serve-mode config the prerender server resolved.
104
+ *
105
+ * @param hydrate - Whether a client build ran.
106
+ * @param clientBuild - What it recorded.
107
+ * @param serve - The prerender server's `publicDir` and `build.copyPublicDir`.
108
+ */
109
+ /** @codexApi {"parent":"pithy.ssr.build.vite-ssg","name":"publicCopySource","stability":"experimental","signature":"(hydrate: boolean, clientBuild: ClientBuildResult, serve: PublicCopy) => PublicCopy"} */
110
+ export declare function publicCopySource(hydrate: boolean, clientBuild: ClientBuildResult, serve: PublicCopy): PublicCopy;
86
111
  export { pathToFilePath } from '../shared/shell-helpers.js';
87
112
  export { NOT_FOUND_OUTPUT, hasRenderedText };
88
113
  /** One route {@link buildSSG}'s render loop renders and writes. */
@@ -130,6 +155,120 @@ export interface RenderJob {
130
155
  */
131
156
  /** @codexApi {"parent":"pithy.ssr.build.vite-ssg","name":"planRenderJobs","stability":"experimental","signature":"(staticPaths: string[], notFoundRoute: RouteNode | null | undefined, findRouteByPattern: (routePath: string) => RouteNode | null | undefined) => RenderJob[]"} */
132
157
  export declare function planRenderJobs(staticPaths: string[], notFoundRoute: RouteNode | null | undefined, findRouteByPattern: (routePath: string) => RouteNode | null | undefined): RenderJob[];
158
+ /** One SPA shell {@link buildSSG} writes: a document with no prerendered content. */
159
+ /** @codexApi {"parent":"pithy.ssr.build.vite-ssg","name":"ShellJob","stability":"experimental","signature":"interface ShellJob"} */
160
+ export interface ShellJob {
161
+ /** URL path the shell is written for, normalised (`/app`). */
162
+ path: string;
163
+ /** Output file relative to `outDir` (`app/index.html`). */
164
+ entry: string;
165
+ }
166
+ /** What {@link planShellJobs} made of `ssg.shells`. */
167
+ /** @codexApi {"parent":"pithy.ssr.build.vite-ssg","name":"ShellPlan","stability":"experimental","signature":"interface ShellPlan"} */
168
+ export interface ShellPlan {
169
+ /** Shells to write, in config order, duplicates removed. */
170
+ jobs: ShellJob[];
171
+ /** Entries that cannot be written. The build reports them as build failures. */
172
+ errors: string[];
173
+ /** Non-fatal notes, e.g. shells configured for a static (no-JS) build. */
174
+ warnings: string[];
175
+ }
176
+ /**
177
+ * Plan the SPA shells listed in `pithy.config` `ssg.shells`.
178
+ *
179
+ * Each path must be a literal URL path: no parameter, wildcard, query, hash,
180
+ * percent-escape, dot or empty segment, and no segment ending in `.` or a
181
+ * space (Win32 trims those from file names). One trailing slash is dropped. A shell is only useful with a client bundle, so static
182
+ * mode plans none and warns instead.
183
+ *
184
+ * @param shells - The raw `ssg.shells` value; not trusted to be well-typed.
185
+ * @param hydrate - Whether the build emits a client bundle.
186
+ * @returns The jobs to write plus any errors and warnings.
187
+ */
188
+ /** @codexApi {"parent":"pithy.ssr.build.vite-ssg","name":"planShellJobs","stability":"experimental","signature":"(shells: unknown, hydrate: boolean) => ShellPlan"} */
189
+ export declare function planShellJobs(shells: unknown, hydrate: boolean): ShellPlan;
190
+ /** Inputs to {@link renderShellDocument}. */
191
+ /** @codexApi {"parent":"pithy.ssr.build.vite-ssg","name":"ShellDocumentOptions","stability":"experimental","signature":"interface ShellDocumentOptions"} */
192
+ export interface ShellDocumentOptions {
193
+ /** Head from the app's HTML shell file. */
194
+ head: HeadState;
195
+ /** Root-absolute client script URLs (`/assets/…`). */
196
+ scripts: string[];
197
+ /** Root-absolute client stylesheet URLs, linked in `<head>`. */
198
+ styles: string[];
199
+ /** The production build's `base` (default `/`): every URL is moved under it. */
200
+ base?: string;
201
+ /** The `base` the head was read with (default `/`), which its root-absolute URLs carry. */
202
+ headBase?: string;
203
+ /** App container id (default `app`). */
204
+ appId?: string;
205
+ /** The app's icon sprite, or the empty bundle. */
206
+ sprite: SpriteBundle;
207
+ }
208
+ /**
209
+ * Render one SPA shell: head, every stylesheet, the module script, an empty
210
+ * app root and no hydration state, so `bootstrap()` mounts fresh.
211
+ *
212
+ * Links stay absolute (`linkBase: null`, as for the 404): one shell answers
213
+ * every URL under its path, at any depth. Relative `href`/`src` in the head's
214
+ * links and scripts are resolved against `base`, as the root `index.html` they
215
+ * came from would; with a `<base>` in the head they are left alone, with a
216
+ * warning. The head gets `robots: noindex` unless it sets robots itself: a
217
+ * shell has no content and answers arbitrary URLs.
218
+ *
219
+ * @param htmlShellFn - `htmlShell` from `@pithyjs/ssr/server`.
220
+ * @param options - See {@link ShellDocumentOptions}.
221
+ * @returns The document as it will be written.
222
+ */
223
+ /** @codexApi {"parent":"pithy.ssr.build.vite-ssg","name":"renderShellDocument","stability":"experimental","signature":"(htmlShellFn: (options: ShellOptions) => string, options: ShellDocumentOptions) => FinalizePageResult"} */
224
+ export declare function renderShellDocument(htmlShellFn: (options: ShellOptions) => string, options: ShellDocumentOptions): FinalizePageResult;
225
+ /** What {@link excludeShellPaths} made of the static paths. */
226
+ /** @codexApi {"parent":"pithy.ssr.build.vite-ssg","name":"ShellExclusion","stability":"experimental","signature":"interface ShellExclusion"} */
227
+ export interface ShellExclusion {
228
+ /** Paths still prerendered. */
229
+ kept: string[];
230
+ /** Paths a shell serves instead, so they are not prerendered. */
231
+ skipped: string[];
232
+ /** One message per path that sets `prerender = true` under a shell. */
233
+ errors: string[];
234
+ }
235
+ /**
236
+ * Drop the static paths a shell serves: its own path and, unless it is the
237
+ * root shell, every URL path below it, compared as written (one trailing slash
238
+ * ignored). Such routes need no `prerender = false` of their own. A path that
239
+ * only folds onto the shell's file (`/App`) is kept, and the entry check in
240
+ * {@link claimShellEntries} reports it.
241
+ * A path whose config says `prerender = true` contradicts the shell and is an
242
+ * error.
243
+ *
244
+ * @param staticPaths - Every literal path `collectStaticPaths()` found.
245
+ * @param shells - Planned shells, see {@link planShellJobs}.
246
+ * @param forced - Paths whose route config sets `prerender = true`.
247
+ */
248
+ /** @codexApi {"parent":"pithy.ssr.build.vite-ssg","name":"excludeShellPaths","stability":"experimental","signature":"(staticPaths: readonly string[], shells: readonly ShellJob[], forced: ReadonlySet<string>) => ShellExclusion"} */
249
+ export declare function excludeShellPaths(staticPaths: readonly string[], shells: readonly ShellJob[], forced: ReadonlySet<string>): ShellExclusion;
250
+ /** Who wrote an output entry: a route path and the file it went to. */
251
+ /** @codexApi {"parent":"pithy.ssr.build.vite-ssg","name":"EntryOwner","stability":"experimental","signature":"interface EntryOwner"} */
252
+ export interface EntryOwner {
253
+ path: string;
254
+ entry: string;
255
+ }
256
+ /**
257
+ * Decide which shells may be written, given the entries the pages already
258
+ * wrote (keyed by `entryCollisionKey`). A shell is refused when a page owns its
259
+ * file (`/App` against `/app` on a case-insensitive filesystem) or when the app
260
+ * ships that file in `public/`, which the shell would overwrite. Claimed shells
261
+ * are registered in `owners`, which this mutates.
262
+ *
263
+ * @param shells - Planned shells, see {@link planShellJobs}.
264
+ * @param owners - Entries written so far.
265
+ * @param isAuthored - Whether `public/` holds a file at an entry.
266
+ */
267
+ /** @codexApi {"parent":"pithy.ssr.build.vite-ssg","name":"claimShellEntries","stability":"experimental","signature":"(shells: readonly ShellJob[], owners: Map<string, EntryOwner>, isAuthored: (entry: string) => boolean) => { claimed: ShellJob[]; errors: string[] }"} */
268
+ export declare function claimShellEntries(shells: readonly ShellJob[], owners: Map<string, EntryOwner>, isAuthored: (entry: string) => boolean): {
269
+ claimed: ShellJob[];
270
+ errors: string[];
271
+ };
133
272
  /** @codexApi {"parent":"pithy.ssr.build.vite-ssg","name":"copyPublicAssets","stability":"experimental","signature":"(publicDir: string | false | undefined, outDir: string) => string[]"} */
134
273
  /**
135
274
  * Copy the app's public directory into the output.
@@ -1 +1 @@
1
- {"version":3,"file":"vite-ssg.d.ts","sourceRoot":"","sources":["../../src/build/vite-ssg.ts"],"names":[],"mappings":"AAAA;;;;;;;EAOE;AA8BF,OAAO,EAEL,KAAK,YAAY,EAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AASpD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAUnE,UAAU,cAAc;IACtB;;;OAGG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,E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