Cell API
    Preparing search index...

    Class OutputWriter

    Writes everything around the bundles: generated code under .cell/generated (so agents and humans can read what was built), frontend static files, server externals and manifest.json.

    Index
    • Parameters

      • model: ProjectModel
      • outDir: string
      • format: "esm" | "cjs"
      • Optionalpreset: string

      Returns OutputWriter

    format: "esm" | "cjs"
    model: ProjectModel
    outDir: string
    preset?: string
    ASSET_DIRS: string[] = ...
    DEFAULT_FAVICON: string = ...
    • Before a build: a previous Cell output (it has manifest.json) is removed entirely, so files a preset wrote last time (a start script, a platform configuration) do not linger; in another directory only the server bundle is replaced.

      Returns void

    • The file that copyFrontendFiles puts at path of the public directory (/favicon.ico, /assets/...), for cell dev, which serves them from where they are. The first component that has the file wins, as in the copy.

      Parameters

      • path: string

      Returns string | undefined

    • Parameters

      • file: string
      • content: string

      Returns void

    • Parameters

      • relative: string
      • content: string

      Returns void

    • single: the frontend is inside the server bundle.

      Parameters

      • single: boolean = false

      Returns OutputManifest