Documentation
    Preparing search index...

    Stub Manager is used to read and copy stubs from different sources. Also allows creating resources from pre-existing stubs

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Creates an instance of stub by its name. The lookup is performed inside the publishTarget and the optional source or pkg destination.

      Parameters

      • stubName: string

        Name of the stub file to build

      • Optionaloptions: { source?: string; pkg?: string }

        Optional configuration for stub source

      Returns Promise<Stub>

      Promise that resolves to a Stub instance

    • Copy one or more stub files from a custom location to publish target.

      Parameters

      • stubPath: string

        Path to the stub file or directory to copy

      • options: { overwrite?: boolean } & ({ source: string } | { pkg: string })

        Copy options including source/package and overwrite settings

      Returns Promise<string[]>

      Promise that resolves to an array of copied file paths