sample/gulp/gulpfile.js
function updateSource(zipFile, project) {
	return project.updateZip(zipFile)
	.catch((error) => {
		console.error("Project source with ID: " + project.id + " couldn't be updated.");
		console.trace(error);
		throw error;
	});
}
function updateSource(zipFile, project) {
	return project.updateZip(zipFile)
	.catch((error) => {
		console.error("Project source with ID: " + project.id + " couldn't be updated.");
		console.trace(error);
		throw error;
	});
}
function updateSource ( zipFile , project ) { return project . updateZip ( zipFile ) . catch ( ( error ) => { console . error ( "Project source with ID: " + project . id + " couldn't be updated." ) ; console . trace ( error ) ; throw error ; } ) ; }
Uploads the zip file as the new source code of the project
@param {File} zipFile
@param {Project} project
@return {Promise<void>}
Uploads the zip file as the new source code of the project