(files: FiledataPair[], dirPath: string)
| 2073 | } |
| 2074 | |
| 2075 | protected async writeMultipleFiles(files: FiledataPair[], dirPath: string) { |
| 2076 | const filesToWrite: Promise<void>[] = []; |
| 2077 | |
| 2078 | for (const file of files) { |
| 2079 | if (!file.filename) throw new Error('One of more files do not have a filename'); |
| 2080 | |
| 2081 | const fullpath = this.getExtraFilepath(dirPath, file.filename); |
| 2082 | filesToWrite.push(utils.outputTextFile(fullpath, file.contents)); |
| 2083 | } |
| 2084 | |
| 2085 | return Promise.all(filesToWrite); |
| 2086 | } |
| 2087 | |
| 2088 | protected async writeAllFiles(dirPath: string, source: string, files: FiledataPair[]) { |
| 2089 | if (!source) throw new Error(`File ${this.compileFilename} has no content or file is missing`); |
no test coverage detected