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

Function startNgProcess

packages/angular/cli/src/commands/mcp/host.ts:221–240  ·  view source on GitHub ↗
(
    args: readonly string[],
    options: {
      stdio?: 'pipe' | 'ignore';
      cwd?: string;
      env?: Record<string, string>;
    } = {},
  )

Source from the content-addressed store, hash-verified

219 },
220
221 startNgProcess(
222 args: readonly string[],
223 options: {
224 stdio?: 'pipe' | 'ignore';
225 cwd?: string;
226 env?: Record<string, string>;
227 } = {},
228 ): ChildProcess {
229 const resolved = resolveNgCommand(args, options.cwd);
230
231 return spawn(resolved.command, resolved.args, {
232 shell: false,
233 stdio: options.stdio ?? 'pipe',
234 cwd: options.cwd,
235 env: {
236 ...process.env,
237 ...options.env,
238 },
239 });
240 },
241
242 getAvailablePort(): Promise<number> {
243 return new Promise((resolve, reject) => {

Callers

nothing calls this directly

Calls 3

resolveNgCommandFunction · 0.85
checkPathFunction · 0.85
startNgProcessMethod · 0.80

Tested by

no test coverage detected