addJavaScriptApp
Method
interface IDistributedApplicationBuilder { // ... omitted for brevity addJavaScriptApp( name: string, appDirectory: string, runScriptName?: string): JavaScriptAppResource;}Signature
method
addJavaScriptApp builderAdds a JavaScript application resource to the distributed application using the specified app directory and run script.
addJavaScriptApp( name: string, appDirectory: string, runScriptName?: string): JavaScriptAppResourceParameters
namestringThe unique name of the JavaScript application resource. Cannot be null or empty.appDirectory stringThe path to the directory containing the JavaScript application.runScriptName stringoptional= devThe name of the npm script to run when starting the application. Defaults to "dev". Cannot be null or empty.Returns
JavaScriptAppResource Applies to
This method applies to the following types: