sample/gulp/gulpfile.js
function downloadProjectCompilations(project, outputDir) {
	const promises = [];
	for (const platform in project.compilations) {
		if (!project.compilations.hasOwnProperty(platform)) {
			continue;
		}
		promises.push(downloadProjectCompilation(project, platform, outputDir).catch(() => {
			return undefined;
		}));
	}
	return Promise.all(promises);
}
function downloadProjectCompilations(project, outputDir) {
	const promises = [];
	for (const platform in project.compilations) {
		if (!project.compilations.hasOwnProperty(platform)) {
			continue;
		}
		promises.push(downloadProjectCompilation(project, platform, outputDir).catch(() => {
			return undefined;
		}));
	}
	return Promise.all(promises);
}
function downloadProjectCompilations ( project , outputDir ) { const promises = [ ] ; for ( const platform in project . compilations ) { if ( ! project . compilations . hasOwnProperty ( platform ) ) { continue ; } promises . push ( downloadProjectCompilation ( project , platform , outputDir ) . catch ( ( ) => { return undefined ; } ) ) ; } return Promise . all ( promises ) ; }
Downloads the results of the latest compilation of the project
@param {Project} project
@param {string} outputDir
@return {Promise<void>}
Downloads the results of the latest compilation of the project