code: function writeAssetTxt(clientLibPath, asset, options) {
  
    if (!asset || !asset.type || !_.isArray(asset.files)) {
      return;
    }
    var outputFile = path.join(clientLibPath, asset.type + ".txt");
    var basePath = path.posix.join(clientLibPath, asset.base);
  
    // determines file path relative to the base
    var filenames = [];
    var typeExt = "." + asset.type;
  
    options.verbose && console.log("write clientlib asset txt file (type: " + asset.type + "): " + outputFile);
  
    asset.files.forEach(function (file) {
  
      // inject only files that correspondents to the asset type
      if (path.extname(file.dest) === typeExt) {
        var rel = path.posix.relative(basePath, file.dest);
        filenames.push(rel);
      }
    });
  
    var content = "#base=" + asset.base + "\n\n" + filenames.join("\n");
    content.trim();
  
    if (!options.dry) {
      fs.writeFileSync(outputFile, content);
    }
  }
docs: Write the clientlib asset TXT file (js or css) that describes the
  base and contains all resource paths.
  @param {String} clientLibPath - path to the clientlib folder
  @param {Object} asset - asset object