(str: string)
| 23 | const rootPath = process.cwd(); |
| 24 | |
| 25 | const getName = (str: string) => str |
| 26 | .replace(/\_/g, '-') |
| 27 | .split('-') |
| 28 | .filter(i => i) |
| 29 | .map(i => i[0].toUpperCase() + i.slice(1)) |
| 30 | .join(' '); |
| 31 | |
| 32 | const getTemplateFileContent = (pth: string) => { |
| 33 | const pt = path.resolve(__dirname, `${tmpPath}/${pth}`); |