MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/buildpacks / OverrideAngularBuildScript

Function OverrideAngularBuildScript

pkg/nodejs/angular.go:82–84  ·  view source on GitHub ↗

OverrideAngularBuildScript overrides the build script to be the Angular build script.

(njsl *libcnb.Layer)

Source from the content-addressed store, hash-verified

80
81// OverrideAngularBuildScript overrides the build script to be the Angular build script.
82func OverrideAngularBuildScript(njsl *libcnb.Layer) {
83 njsl.BuildEnvironment.Override(AppHostingBuildEnv, fmt.Sprintf("npm exec --prefix %s apphosting-adapter-angular-build", njsl.Path))
84}
85
86// ExtractAngularStartCommand inspects the given package.json file for an idiomatic `serve:ssr:APP_NAME`
87// command. If one exists, its value is returned. If not, return an empty string.

Callers 1

BuildFnFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected