Stone.js API
    Preparing search index...

    Class BlueprintBuilder<BlueprintType, ContextType>

    Class representing a BlueprintBuilder for the Stone.js framework.

    The BlueprintBuilder is responsible for constructing and configuring the dynamic, complex structured options required by the Stone.js framework. It introspects various modules, extracts metadata, and builds the "blueprint" object which serves as the primary configuration for the Stone.js application. This class also manages middleware used to process and populate the configuration during the application setup.

    The BlueprintBuilder allows users to create a unified configuration that is used to initialize and bootstrap the Stone.js application, ensuring all necessary metadata is aggregated into a blueprint that can be used consistently throughout the application lifecycle.

    Mr. Stone evensstone@gmail.com

    Type Parameters

    Implements

    Index
    • Build the configuration blueprint by extracting metadata from the provided modules.

      This method processes the given raw modules, extracts metadata to populate the blueprint, and returns the resulting configuration blueprint.

      Parameters

      • modules: unknown[]

        The modules to build the configuration from.

      Returns Promise<BlueprintType>

      The configuration blueprint.

      const BlueprintBuilder = BlueprintBuilder.create(Config.create());
      const blueprint = await BlueprintBuilder.build(rawModules);