MCPcopy Create free account
hub / github.com/angular/components / buildDefaultPath

Function buildDefaultPath

src/cdk/schematics/utils/build-component.ts:44–51  ·  view source on GitHub ↗

* Build a default project path for generating. * @param project The project to build the path for.

(project: ProjectDefinition)

Source from the content-addressed store, hash-verified

42 * @param project The project to build the path for.
43 */
44function buildDefaultPath(project: ProjectDefinition): string {
45 const root = project.sourceRoot ? `/${project.sourceRoot}/` : `/${project.root}/src/`;
46
47 const projectDirName =
48 project.extensions['projectType'] === ProjectType.Application ? 'app' : 'lib';
49
50 return `${root}${projectDirName}`;
51}
52
53/**
54 * List of style extensions which are CSS compatible. All supported CLI style extensions can be

Callers 1

buildComponentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected