packages/build-tools/utils/yaml.js
function writeYamlFile(file, data) {
  return new Promise((resolve, reject) => {
    writeFile(file, toYaml(data))
      .then(resolve)
      .catch(reject);
  });
}
function writeYamlFile(file, data) {
  return new Promise((resolve, reject) => {
    writeFile(file, toYaml(data))
      .then(resolve)
      .catch(reject);
  });
}
function writeYamlFile ( file , data ) { return new Promise ( ( resolve , reject ) => { writeFile ( file , toYaml ( data ) ) . then ( resolve ) . catch ( reject ) ; } ) ; }
Write Yaml string to File
@param {string} file - File path
@param {object} data - Object to turn into Yaml
@returns {Promise}
@see readYamlFile
@see toYaml
Write Yaml string to File