AddJavaScriptApp
Method
func (DistributedApplicationBuilder) AddJavaScriptApp( name string, appDirectory string, options ...*AddJavaScriptAppOptions,) JavaScriptAppResourceSignature
method
AddJavaScriptApp builderAdds a JavaScript application resource to the distributed application using the specified app directory and run script.
AddJavaScriptApp( name string, appDirectory string, options ...*AddJavaScriptAppOptions,) JavaScriptAppResourceParameters
namestringThe unique name of the JavaScript application resource. Cannot be null or empty.appDirectory stringThe path to the directory containing the JavaScript application.options...*AddJavaScriptAppOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*AddJavaScriptAppOptions argument.
RunScriptName *stringThe name of the npm script to run when starting the application. Defaults to "dev". Cannot be null or empty.Returns
JavaScriptAppResource A resource builder for the newly added JavaScript application resource.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types:
type
DistributedApplicationBuilder