MCPcopy
hub / github.com/angular/angular / buildTargets

Function buildTargets

tools/symbol-extractor/run_all_symbols_extractor_tests.js:51–63  ·  view source on GitHub ↗

Builds all targets in parallel.

(targets)

Source from the content-addressed store, hash-verified

49
50/** Builds all targets in parallel. */
51function buildTargets(targets) {
52 process.stdout.write('Building all symbol extractor targets...');
53 const commandResult = spawnSync('pnpm', ['--silent', 'bazel', 'build', targets.join(' ')], {
54 encoding: 'utf8',
55 shell: true,
56 });
57 if (commandResult.status) {
58 console.error(commandResult.stdout || commandResult.stderr);
59 } else {
60 process.stdout.clearLine();
61 process.stdout.cursorTo(0);
62 }
63}
64
65/** Run the provided bazel commands on each provided target individually. */
66function runBazelCommandOnTargets(command, targets, present) {

Calls 3

writeMethod · 0.65
joinMethod · 0.65
errorMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…