Stone.js API
    Preparing search index...

    The Server builder class.

    Index
    • Builds the application.

      Parameters

      • _event: IncomingEvent

        The incoming event.

      Returns Promise<void>

    • Runs the application in the console.

      Parameters

      • _event: IncomingEvent

        The incoming event.

      Returns Promise<void>

    • Starts the development server.

      Parameters

      • _event: IncomingEvent

        The incoming event.

      • Optionalrestart: boolean

        Whether to restart the server.

      Returns Promise<void>

    • Exports server files.

      Parameters

      • event: IncomingEvent

        The incoming event.

      Returns Promise<void>

    • Previews the application.

      Parameters

      • _event: IncomingEvent

        The incoming event.

      Returns void

    • Watch the application sources and invoke cb (debounced) on every change.

      Only the source root (derived from stone.builder.input.all) and the project's config files are watched — not the whole working tree — so a README or .git/ write never triggers a rebuild. Rapid successive saves are coalesced through a small debounce window so a single multi-file save produces one rebuild instead of a burst.

      Parameters

      • cb: (path: string, count: number) => void | Promise<void>

        Called with the triggering file path and its change count.

      Returns void