Skip to content
Docs Try Aspire
Docs Try

NxResource

Handle
📦 CommunityToolkit.Aspire.Hosting.JavaScript.Extensions v13.4.0
interface NxResource extends IResource {
addApp(
name: string,
appName?: string): NxAppResource;
withBun(install?: boolean): NxResource;
withNpm(install?: boolean): NxResource;
withPackageManagerLaunch(packageManager?: string): NxResource;
withPnpm(install?: boolean): NxResource;
withYarn(install?: boolean): NxResource;
}

Methods

method addApp builder
addApp(
name: string,
appName?: string): NxAppResource
name string
appName string optional
NxAppResource
method withBun builder
withBun(install?: boolean): NxResource
install boolean optional = False
NxResource
method withNpm builder
withNpm(install?: boolean): NxResource
install boolean optional = False
NxResource
Configures the Nx workspace to use the specified JavaScript package manager when starting apps.
withPackageManagerLaunch(packageManager?: string): NxResource
packageManager string optional
NxResource
method withPnpm builder
withPnpm(install?: boolean): NxResource
install boolean optional = False
NxResource
method withYarn builder
withYarn(install?: boolean): NxResource
install boolean optional = False
NxResource