Runs the build script in the current envionment.

Hierarchy (view full)

Constructors

Properties

buildGid?: number = ...

Owner gid that is set on build artifacts.

buildUid?: number = ...

Owner uid that is set on build artifacts.

caching: boolean = !this.config.getFlag('FADROMA_REBUILD', ()=>false)

Whether to enable caching and reuse contracts from artifacts directory.

config: Config
id: string = 'local'

Unique identifier of this compiler implementation.

noFetch: boolean = ...

Whether to skip any git fetch calls in the build script.

outputDir: Directory = ...

Name of directory where build artifacts are collected.

quiet: boolean = ...

Whether the build log should be printed only on error, or always

revision: string = Program.HEAD

Default Git reference from which to build sources.

runtime: string = ...

Node.js runtime that runs the build subprocess. Defaults to the same one that is running this script.

script?: string = ...

The build script.

toolchain: string = ...

Version of Rust toolchain to use.

verbose: boolean = ...

Whether the build process should print more detail to the console.

Methods

  • This implementation groups the passed source by workspace and ref, in order to launch one build container per workspace/ref combination and have it build all the crates from that combination in sequence, reusing the container's internal intermediate build cache.

    Parameters

    Returns Promise<CompiledCode[]>

  • Overridable for testing.

    Parameters

    • Rest ...args: [command: string, args: readonly string[], options: SpawnOptions]

    Returns ChildProcess

Generated using TypeDoc