sample/gulp/gulpfile.js
function createProject(zipFile) {
	return cocoonSDK.ProjectAPI.createFromZipUpload(zipFile)
	.catch((error) => {
		console.error("Project couldn't be created.");
		console.trace(error);
		throw error;
	});
}
function createProject(zipFile) {
	return cocoonSDK.ProjectAPI.createFromZipUpload(zipFile)
	.catch((error) => {
		console.error("Project couldn't be created.");
		console.trace(error);
		throw error;
	});
}
function createProject ( zipFile ) { return cocoonSDK . ProjectAPI . createFromZipUpload ( zipFile ) . catch ( ( error ) => { console . error ( "Project couldn't be created." ) ; console . trace ( error ) ; throw error ; } ) ; }
Creates a new Cocoon Project from a zip file
@param {File} zipFile
@return {Promise<Project>}
Creates a new Cocoon Project from a zip file