[]previous and next page

ProjectLayout

Files of the project that Dusk looks for by name.

Files of the project that Dusk looks for by name.

Import#

ts
import type { ProjectLayout } from "@shadow-js/dusk/vite";

Signature#

ts
interface ProjectLayout {
  readonly root: string;
  /** Absolute source folder. */
  readonly srcDir: string;
  /** `src/app.tsx`: the root component. */
  readonly appFile: string | undefined;
  /** `src/entry-server.ts`: handler options (middleware, security, env). */
  readonly entryServerFile: string | undefined;
  /** `src/entry-client.ts`: replaces the generated client entry. */
  readonly entryClientFile: string | undefined;
}

Members#

Name Type Description
root readonly root: string
srcDir readonly srcDir: string Absolute source folder.
appFile readonly appFile: string | undefined src/app.tsx: the root component.
entryServerFile readonly entryServerFile: string | undefined src/entry-server.ts: handler options (middleware, security, env).
entryClientFile readonly entryClientFile: string | undefined src/entry-client.ts: replaces the generated client entry.