@method processFiles @param {String} intoDir @param {Object} templateVariables @param {Object} options @return {Promise }
(intoDir, templateVariables, options)
| 887 | @return {Promise<FileInfo[]>} |
| 888 | */ |
| 889 | processFiles(intoDir, templateVariables, options) { |
| 890 | let files = this._getFilesForInstall(templateVariables.targetFiles); |
| 891 | let fileInfos = this._getFileInfos(files, intoDir, templateVariables, options); |
| 892 | this._checkForNoMatch(fileInfos, templateVariables.rawArgs); |
| 893 | |
| 894 | this._ignoreUpdateFiles(); |
| 895 | |
| 896 | let fileInfosToRemove = this._getFileInfos(this.filesToRemove, intoDir, templateVariables); |
| 897 | |
| 898 | fileInfosToRemove = finishProcessingForUninstall(fileInfosToRemove); |
| 899 | |
| 900 | return Promise.all(fileInfos.filter(isValidFile).map(prepareConfirm)) |
| 901 | .then(finishProcessingForInstall) |
| 902 | .then((fileInfos) => { |
| 903 | return Promise.all( |
| 904 | fileInfos.map((info) => { |
| 905 | if (this.shouldConvertToJS(this.options, info)) { |
| 906 | return this.convertToJS(info); |
| 907 | } |
| 908 | |
| 909 | return info; |
| 910 | }) |
| 911 | ); |
| 912 | }) |
| 913 | .then((fileInfos) => fileInfos.concat(fileInfosToRemove)); |
| 914 | }, |
| 915 | |
| 916 | /** |
| 917 | @method processFilesForUninstall |
nothing calls this directly
no test coverage detected
searching dependent graphs…