Class BuilderAbstract

Builder: turns Source into Contract, providing artifact and codeHash

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

caching: boolean = true

Whether to enable build caching. When set to false, this builder will rebuild even when binary and checksum are both present in wasm/ directory

id: string

Unique identifier of this builder implementation.

log: Console = ...
variants: Record<string, BuilderClass<Builder>> = {}

Global registry of builder variants. Populated downstream.

Methods

  • Up to the implementation. @hackbg/fadroma implements dockerized and non-dockerized variants on top of the build.impl.mjs script.

    Parameters

    Returns Promise<Built>

  • Default implementation of buildMany is parallel. Builder implementations override this, though.

    Parameters

    • sources: Buildable[]
    • Rest ...args: unknown[]

    Returns Promise<Built[]>

Generated using TypeDoc