Constructors

Properties

getElectronVersion: ((dir, packageJSON) => Promise<string>) = getElectronVersion

Type declaration

    • (dir, packageJSON): Promise<string>
    • Parameters

      • dir: string
      • packageJSON: PackageJSONWithDeps

      Returns Promise<string>

hasYarn: (() => boolean) = hasYarn

Type declaration

    • (): boolean
    • Returns boolean

yarnOrNpmSpawn: ((args?, opts?) => Promise<string>) = yarnOrNpmSpawn

Type declaration

    • (args?, opts?): Promise<string>
    • Parameters

      • Optional args: CrossSpawnArgs
      • Optional opts: CrossSpawnOptions

      Returns Promise<string>

Methods

  • Helper for creating a dynamic config value that will get its real value based on the "buildIdentifier" in your Forge config.

    Usage: fromBuildIdentifier({ stable: 'App', beta: 'App Beta' })

    Type Parameters

    • T

    Parameters

    • map: BuildIdentifierMap<T>

    Returns BuildIdentifierConfig<T>

  • Register a virtual config file for forge to find. Takes precedence over other configuration options like a forge.config.js file. Dir should point to the folder containing the app.

    Parameters

    Returns void

  • Unregister a forge config previously registered with registerForgeConfigForDirectory.

    Parameters

    • dir: string

    Returns void