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

Function ngServe

tests/e2e/utils/project.ts:26–39  ·  view source on GitHub ↗
(...args: string[])

Source from the content-addressed store, hash-verified

24}
25
26export async function ngServe(...args: string[]) {
27 const port = await findFreePort();
28
29 const esbuild = getGlobalVariable('argv')['esbuild'];
30 const validBundleRegEx = esbuild ? /complete\./ : /Compiled successfully\./;
31
32 await execAndWaitForOutputToMatch(
33 'ng',
34 ['serve', '--port', String(port), ...args],
35 validBundleRegEx,
36 );
37
38 return port;
39}
40
41export async function prepareProjectForE2e(name: string) {
42 const argv: Record<string, unknown> = getGlobalVariable('argv');

Callers 15

assets.tsFile · 0.90
head-request.tsFile · 0.90
serve-path.tsFile · 0.90
serve.tsFile · 0.90
rebuild.tsFile · 0.90
ssr-error-stack.tsFile · 0.90
ssr-with-ssl.tsFile · 0.90
ssr-base-href.tsFile · 0.90
ssr-default.tsFile · 0.90

Calls 3

findFreePortFunction · 0.90
getGlobalVariableFunction · 0.90

Tested by

no test coverage detected