src/write/index.js
function write(drizzleData) {
  return Promise.all([
    writePages(drizzleData),
    writeCollections(drizzleData)
  ]).then(
    () => drizzleData,
    error => DrizzleError.error(error, drizzleData.options)
  );
}
function write(drizzleData) {
  return Promise.all([
    writePages(drizzleData),
    writeCollections(drizzleData)
  ]).then(
    () => drizzleData,
    error => DrizzleError.error(error, drizzleData.options)
  );
}
function write ( drizzleData ) { return Promise . all ( [ writePages ( drizzleData ) , writeCollections ( drizzleData ) ] ) . then ( ( ) => drizzleData , error => DrizzleError . error ( error , drizzleData . options ) ) ; }
Write pages and collection-pages to filesystem.

@param {Object} drizzleData All drizzle data so far
@return {Promise} resolving to drizzleData
Write pages and collection - pages to filesystem .