JavaScriptAppResource
Handle
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
Configures browser debugging support
withBrowserDebugger(browser?: string): JavaScriptAppResourceParameters
browser string optional = msedge Returns
JavaScriptAppResource Specifies an npm script to run before starting the application
withBuildScript( scriptName: string, args?: string[]): JavaScriptAppResourceParameters
scriptName string args string[] optional Returns
JavaScriptAppResource Configures Bun as the package manager
withBun( install?: boolean, installArgs?: string[]): JavaScriptAppResourceParameters
install boolean optional = True installArgs string[] optional Returns
JavaScriptAppResource Enables debugging support for a JavaScript application
withDebugging(): JavaScriptAppResourceReturns
JavaScriptAppResource 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 Configures pnpm as the package manager
withPnpm( install?: boolean, installArgs?: string[]): JavaScriptAppResourceParameters
install boolean optional = True installArgs string[] optional Returns
JavaScriptAppResource Specifies an npm script to run during development
withRunScript( scriptName: string, args?: string[]): JavaScriptAppResourceParameters
scriptName string args string[] optional Returns
JavaScriptAppResource Configures yarn as the package manager
withYarn( install?: boolean, installArgs?: string[]): JavaScriptAppResourceParameters
install boolean optional = True installArgs string[] optional Returns
JavaScriptAppResource