MCPcopy Index your code
hub / github.com/angular/angular-cli / allTargetOptions

Function allTargetOptions

packages/schematics/angular/utility/workspace.ts:146–163  ·  view source on GitHub ↗
(
  target: workspaces.TargetDefinition,
  skipBaseOptions = false,
)

Source from the content-addressed store, hash-verified

144}
145
146export function* allTargetOptions(
147 target: workspaces.TargetDefinition,
148 skipBaseOptions = false,
149): Iterable<[string | undefined, Record<string, json.JsonValue | undefined>]> {
150 if (!skipBaseOptions && target.options) {
151 yield [undefined, target.options];
152 }
153
154 if (!target.configurations) {
155 return;
156 }
157
158 for (const [name, options] of Object.entries(target.configurations)) {
159 if (options !== undefined) {
160 yield [name, options];
161 }
162 }
163}

Callers 6

migration.tsFile · 0.90
migration.tsFile · 0.90
migration.tsFile · 0.90
processTestTargetOptionsFunction · 0.90
updateBuildTargetFunction · 0.90
updateProjectsFunction · 0.90

Calls 1

entriesMethod · 0.45

Tested by

no test coverage detected