src/utils/write.js
function write(filepath, contents) {
  return mkdirp(path.dirname(filepath)).then(() => {
    return writeFile(filepath, contents);
  });
}
function write(filepath, contents) {
  return mkdirp(path.dirname(filepath)).then(() => {
    return writeFile(filepath, contents);
  });
}
function write ( filepath , contents ) { return mkdirp ( path . dirname ( filepath ) ) . then ( ( ) => { return writeFile ( filepath , contents ) ; } ) ; }
Write `contents` to path at `filepath`
@param {String} filepath
@param {String} contents
@return {Promise}
Write contents to path at filepath