sample/gulp/gulpfile.js
function downloadProjectCompilationsWithId(projectId, outputDir) {
	return fetchProject(projectId)
	.then((project) => {
		return downloadProjectCompilations(project, outputDir);
	})
	.catch((error) => {
		console.trace(error);
		throw error;
	});
}
function downloadProjectCompilationsWithId(projectId, outputDir) {
	return fetchProject(projectId)
	.then((project) => {
		return downloadProjectCompilations(project, outputDir);
	})
	.catch((error) => {
		console.trace(error);
		throw error;
	});
}
function downloadProjectCompilationsWithId ( projectId , outputDir ) { return fetchProject ( projectId ) . then ( ( project ) => { return downloadProjectCompilations ( project , outputDir ) ; } ) . catch ( ( error ) => { console . trace ( error ) ; throw error ; } ) ; }
Downloads the results of the latest compilation of the project with the ID provided
@param {string} projectId
@param {string} outputDir
@return {Promise<void>}
Downloads the results of the latest compilation of the project with the ID provided