Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddTurborepoApp

Method
📦 CommunityToolkit.Aspire.Hosting.JavaScript.Extensions v13.6.1
func (DistributedApplicationBuilder) AddTurborepoApp(
name string,
options ...*AddTurborepoAppOptions,
) TurborepoResource

Signature

methodAddTurborepoAppbuilder
Adds a Turborepo monorepo workspace to the distributed application builder.
AddTurborepoApp(
name string,
options ...*AddTurborepoAppOptions,
) TurborepoResource
namestringThe name of the Turborepo workspace resource.
options...*AddTurborepoAppOptionsOptional settings, described under Options.

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

WorkingDirectory*stringThe working directory of the Turborepo workspace. If not specified, it will be set to a path that is a sibling of the AppHost directory using the name as the folder.
TurborepoResource

A reference to the IResourceBuilder.

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

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder