* Build a default project path for generating. * @param project The project to build the path for.
(project: ProjectDefinition)
| 42 | * @param project The project to build the path for. |
| 43 | */ |
| 44 | function 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 |