sample/gulp/gulpfile.js
function checkProjectCompilations(project) {
	return waitForCompletion(project)
	.then(() => {
		for (const platform in project.compilations) {
			if (!project.compilations.hasOwnProperty(platform)) {
				continue;
			}
			const compilation = project.compilations[platform];
			if (compilation.isReady()) {
				console.info(compilation.platform + " compilation from " + project.name + " project: " + project.id + " is completed.");
			} else if (compilation.isErred()) {
				console.error(compilation.platform + " compilation from " + project.name + " project: " + project.id + " is erred.");
				console.error("ERROR LOG of the " + compilation.platform + " platform:");
				console.error(compilation.error);
			} else {
				console.error(compilation.platform + " compilation from " + project.name + " project: " + project.id +
					" was ignored. Status: " + compilation.status + ".");
			}
		}
		return undefined;
	})
	.catch((error) => {
		console.trace(error);
		throw error;
	});
}
function checkProjectCompilations(project) {
	return waitForCompletion(project)
	.then(() => {
		for (const platform in project.compilations) {
			if (!project.compilations.hasOwnProperty(platform)) {
				continue;
			}
			const compilation = project.compilations[platform];
			if (compilation.isReady()) {
				console.info(compilation.platform + " compilation from " + project.name + " project: " + project.id + " is completed.");
			} else if (compilation.isErred()) {
				console.error(compilation.platform + " compilation from " + project.name + " project: " + project.id + " is erred.");
				console.error("ERROR LOG of the " + compilation.platform + " platform:");
				console.error(compilation.error);
			} else {
				console.error(compilation.platform + " compilation from " + project.name + " project: " + project.id +
					" was ignored. Status: " + compilation.status + ".");
			}
		}
		return undefined;
	})
	.catch((error) => {
		console.trace(error);
		throw error;
	});
}
function checkProjectCompilations ( project ) { return waitForCompletion ( project ) . then ( ( ) => { for ( const platform in project . compilations ) { if ( ! project . compilations . hasOwnProperty ( platform ) ) { continue ; } const compilation = project . compilations [ platform ] ; if ( compilation . isReady ( ) ) { console . info ( compilation . platform + " compilation from " + project . name + " project: " + project . id + " is completed." ) ; } else if ( compilation . isErred ( ) ) { console . error ( compilation . platform + " compilation from " + project . name + " project: " + project . id + " is erred." ) ; console . error ( "ERROR LOG of the " + compilation . platform + " platform:" ) ; console . error ( compilation . error ) ; } else { console . error ( compilation . platform + " compilation from " + project . name + " project: " + project . id + " was ignored. Status: " + compilation . status + "." ) ; } } return undefined ; } ) . catch ( ( error ) => { console . trace ( error ) ; throw error ; } ) ; }
Logs the results of the latest compilation of the project
@param {Project} project
@return {Promise<void>}
Logs the results of the latest compilation of the project