JavaScriptAppResource.WithBuildScript
Method
type JavaScriptAppResource interface { // ... omitted for brevity WithBuildScript( scriptName string, options ...*WithBuildScriptOptions, ) JavaScriptAppResource}Signature
method
WithBuildScript builderAdds a build script annotation to the resource builder using the specified command-line arguments.
WithBuildScript( scriptName string, options ...*WithBuildScriptOptions,) JavaScriptAppResourceParameters
scriptName stringThe name of the script to be executed when the resource is built.options...*WithBuildScriptOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithBuildScriptOptions argument.
Args[]string An array of command-line arguments to use for the build script.Returns
JavaScriptAppResource The same resource builder instance with the build script annotation applied.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: