(block: string)
| 178 | } |
| 179 | |
| 180 | export async function createBlockFolder(block: string) { |
| 181 | const { blockContentDir } = getContentConfig('english') as { |
| 182 | blockContentDir: string; |
| 183 | }; |
| 184 | |
| 185 | const newBlockDir = resolve(blockContentDir, block); |
| 186 | await mkdir(newBlockDir, { recursive: true }); |
| 187 | return newBlockDir + '/'; |
| 188 | } |
| 189 | |
| 190 | export function getBlockStructure(block: string) { |
| 191 | return JSON.parse( |
no test coverage detected