(section: Section)
| 37 | } |
| 38 | |
| 39 | function getSectionBaseName(section: Section): string { |
| 40 | return section.name || section.title.toLowerCase().replace(/[^a-z0-9]+/g, '-'); |
| 41 | } |
| 42 | |
| 43 | function copySourceFiles(srcFile: string, projectRoot: string, sectionDir: string): void { |
| 44 | const srcAbsPath = path.resolve(projectRoot, srcFile); |