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

Function mergeWith

packages/angular_devkit/schematics/src/rules/base.ts:62–69  ·  view source on GitHub ↗
(source: Source, strategy: MergeStrategy = MergeStrategy.Default)

Source from the content-addressed store, hash-verified

60 * Merge an input tree with the source passed in.
61 */
62export function mergeWith(source: Source, strategy: MergeStrategy = MergeStrategy.Default): Rule {
63 return (tree, context) => {
64 return callSource(source, context).pipe(
65 map((sourceTree) => tree.merge(sourceTree, strategy || context.strategy)),
66 mapTo(tree),
67 );
68 };
69}
70
71export function noop(): Rule {
72 return () => {};

Callers 15

index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
generateFromFilesFunction · 0.90
addServerFileFunction · 0.90
index.tsFile · 0.90
index.tsFile · 0.90

Calls 2

callSourceFunction · 0.90
mergeMethod · 0.65

Tested by

no test coverage detected