Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

TurborepoResource

Handle
📦 CommunityToolkit.Aspire.Hosting.JavaScript.Extensions v13.6.1
type TurborepoResource interface {
Resource
}

Methods

methodAddAppbuilder
AddApp(
name string,
options ...*TurborepoResourceAddAppOptions,
) TurborepoAppResource
namestring
options...*TurborepoResourceAddAppOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*TurborepoResourceAddAppOptions argument.

Filter*string
TurborepoAppResource

Returns a handle; failures surface later via Err().

methodWithBunbuilder
WithBun(options ...*WithBunOptions) TurborepoResource
options...*WithBunOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithBunOptions argument.

Install*bool
TurborepoResource

Returns a handle; failures surface later via Err().

methodWithNpmbuilder
WithNpm(options ...*WithNpmOptions) TurborepoResource
options...*WithNpmOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithNpmOptions argument.

Install*bool
TurborepoResource

Returns a handle; failures surface later via Err().

Configures the Turborepo workspace to use the specified JavaScript package manager when starting apps.
WithPackageManagerLaunch(options ...*WithPackageManagerLaunchOptions) TurborepoResource
options...*WithPackageManagerLaunchOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithPackageManagerLaunchOptions argument.

PackageManager*stringThe package manager to use. If none is provided it will attempt to use the installer annotation's resource command.
TurborepoResource

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

methodWithPnpmbuilder
WithPnpm(options ...*WithPnpmOptions) TurborepoResource
options...*WithPnpmOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithPnpmOptions argument.

Install*bool
TurborepoResource

Returns a handle; failures surface later via Err().

methodWithYarnbuilder
WithYarn(options ...*WithYarnOptions) TurborepoResource
options...*WithYarnOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithYarnOptions argument.

Install*bool
TurborepoResource

Returns a handle; failures surface later via Err().