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

Function addDependencies

packages/schematics/angular/ssr/index.ts:309–335  ·  view source on GitHub ↗
({ skipInstall }: SSROptions, isUsingApplicationBuilder: boolean)

Source from the content-addressed store, hash-verified

307}
308
309function addDependencies({ skipInstall }: SSROptions, isUsingApplicationBuilder: boolean): Rule {
310 const install = skipInstall ? InstallBehavior.None : InstallBehavior.Auto;
311
312 const rules: Rule[] = [
313 addDependency('express', latestVersions['express'], {
314 type: DependencyType.Default,
315 install,
316 existing: ExistingBehavior.Replace,
317 }),
318 addDependency('@types/express', latestVersions['@types/express'], {
319 type: DependencyType.Dev,
320 install,
321 existing: ExistingBehavior.Replace,
322 }),
323 ];
324
325 if (!isUsingApplicationBuilder) {
326 rules.push(
327 addDependency('browser-sync', latestVersions['browser-sync'], {
328 type: DependencyType.Dev,
329 install,
330 }),
331 );
332 }
333
334 return chain(rules);
335}
336
337function addServerFile(
338 projectSourceRoot: string,

Callers 1

index.tsFile · 0.70

Calls 3

addDependencyFunction · 0.90
chainFunction · 0.90
pushMethod · 0.45

Tested by

no test coverage detected