JavaScriptAppResource
Handle TypeScript
interface JavaScriptAppResource extends IComputeResource, IResource, IResourceWithArgs, IResourceWithEndpoints, IResourceWithEnvironment, IResourceWithProbes, IResourceWithWaitSupport, IResourceWithContainerFiles, IResourceWithServiceDiscovery { readonly command: string; readonly name: string; readonly workingDirectory: string; withBrowserDebugger(browser?: string): JavaScriptAppResource; withBuildScript( scriptName: string, args?: string[]): JavaScriptAppResource; withBun( install?: boolean, installArgs?: string[]): JavaScriptAppResource; withDebugging(): JavaScriptAppResource; withNpm( install?: boolean, installCommand?: string, installArgs?: string[]): JavaScriptAppResource; withPnpm( install?: boolean, installArgs?: string[]): JavaScriptAppResource; withRunScript( scriptName: string, args?: string[]): JavaScriptAppResource; withYarn( install?: boolean, installArgs?: string[]): JavaScriptAppResource;} 11 members
Properties
property
command string get Gets the Command property
property
name string get Gets the Name property
property
workingDirectory string get Gets the WorkingDirectory property
Methods
method
withBrowserDebugger builder Configures browser debugging support
withBrowserDebugger(browser?: string): JavaScriptAppResourceParameters
browser string optional = msedge Returns
JavaScriptAppResource method
withBuildScript builder Specifies an npm script to run before starting the application
withBuildScript( scriptName: string, args?: string[]): JavaScriptAppResourceParameters
scriptName string args string[] optional Returns
JavaScriptAppResource method
withBun builder Configures Bun as the package manager
withBun( install?: boolean, installArgs?: string[]): JavaScriptAppResourceParameters
install boolean optional = True installArgs string[] optional Returns
JavaScriptAppResource method
withDebugging builder Enables debugging support for a JavaScript application
withDebugging(): JavaScriptAppResourceReturns
JavaScriptAppResource method
withNpm builder Configures npm as the package manager
withNpm( install?: boolean, installCommand?: string, installArgs?: string[]): JavaScriptAppResourceParameters
install boolean optional = True installCommand string optional installArgs string[] optional Returns
JavaScriptAppResource method
withPnpm builder Configures pnpm as the package manager
withPnpm( install?: boolean, installArgs?: string[]): JavaScriptAppResourceParameters
install boolean optional = True installArgs string[] optional Returns
JavaScriptAppResource method
withRunScript builder Specifies an npm script to run during development
withRunScript( scriptName: string, args?: string[]): JavaScriptAppResourceParameters
scriptName string args string[] optional Returns
JavaScriptAppResource method
withYarn builder Configures yarn as the package manager
withYarn( install?: boolean, installArgs?: string[]): JavaScriptAppResourceParameters
install boolean optional = True installArgs string[] optional Returns
JavaScriptAppResource