MCPcopy Create free account
hub / github.com/angular/components / getProjectTargetOptions

Function getProjectTargetOptions

src/cdk/schematics/utils/project-targets.ts:25–38  ·  view source on GitHub ↗
(
  project: ProjectDefinition,
  buildTarget: string,
)

Source from the content-addressed store, hash-verified

23
24/** Resolves the architect options for the build target of the given project. */
25export function getProjectTargetOptions(
26 project: ProjectDefinition,
27 buildTarget: string,
28): Record<string, JsonValue | undefined> {
29 const options = project.targets?.get(buildTarget)?.options;
30
31 if (!options) {
32 throw new SchematicsException(
33 `Cannot determine project target configuration for: ${buildTarget}.`,
34 );
35 }
36
37 return options;
38}
39
40/** Gets all of the default CLI-provided build targets in a project. */
41export function getProjectBuildTargets(project: ProjectDefinition): TargetDefinition[] {

Callers 4

expectProjectStyleFileFunction · 0.90
addThemeStyleToTargetFunction · 0.90
getProjectStyleFileFunction · 0.90
getProjectMainFileFunction · 0.90

Calls 1

getMethod · 0.65

Tested by 1

expectProjectStyleFileFunction · 0.72