_updateFileContent()

in lib/base-generator.js [47:53]


  _updateFileContent(filePath, transformations, options) {
    let contents = this.fs.read(filePath);

    contents = transformations.reduce((contents, f) => f(contents, options), contents);

    this.fs.write(filePath, contents);
  }