MCPcopy
hub / github.com/angular/angular-cli / isStandaloneApp

Function isStandaloneApp

packages/schematics/angular/utility/ng-ast-utils.ts:81–93  ·  view source on GitHub ↗
(host: Tree, mainPath: string)

Source from the content-addressed store, hash-verified

79}
80
81export function isStandaloneApp(host: Tree, mainPath: string): boolean {
82 try {
83 findBootstrapApplicationCall(host, mainPath);
84
85 return true;
86 } catch (error) {
87 if (error instanceof SchematicsException) {
88 return false;
89 }
90
91 throw error;
92 }
93}

Callers 6

index.tsFile · 0.90
getRootInsertionRuleFunction · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90

Calls 1

Tested by

no test coverage detected