code: function writeFile(pathToFile, content, verbose) {
    var directory = _path2.default.dirname(pathToFile);
  
    // Create directory if it doesn't exist
    if (!_fs2.default.existsSync(directory)) {
      _fs2.default.mkdirSync(directory);
    }
  
    // Try to write file to disk to the given location
    _fs2.default.writeFile(pathToFile, content, { flag: 'w' }, function (error) {
      if (error) {
        throw new Error(error);
      }
  
      // Log success message to the console if in verbose mode only
      if (verbose) {
        var successMessage = '\nVersion file written to ' + _chalk2.default.green(pathToFile);
  
        console.log(successMessage);
      }
    });
  }
docs: Writes a file to disk with the provided content
  
  @param {string} path    Path to the file we want to create
  @param {string} content File contents