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; 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;} 10 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 a browser debugger for the JavaScript application
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 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