Skip to content
DocsTry Aspire
DocsTry

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

methodaddAppbuilder
addApp(
name: string,
appName?: string): NxAppResource
namestring
appNamestringoptional
NxAppResource
methodwithBunbuilder
withBun(install?: boolean): NxResource
installbooleanoptional= False
NxResource
methodwithNpmbuilder
withNpm(install?: boolean): NxResource
installbooleanoptional= False
NxResource
Configures the Nx workspace to use the specified JavaScript package manager when starting apps.
withPackageManagerLaunch(packageManager?: string): NxResource
packageManagerstringoptional
NxResource
methodwithPnpmbuilder
withPnpm(install?: boolean): NxResource
installbooleanoptional= False
NxResource
methodwithYarnbuilder
withYarn(install?: boolean): NxResource
installbooleanoptional= False
NxResource