examples/boilerplate/assemblefile.js
function rename(files) {
  return function(file) {
    var base = path.relative(path.resolve(file.cwd), file.base);
    var destBase = files.options.destBase;
    file.dirname = path.resolve(path.join(destBase, base));
    return file.base;
  };
}
function rename(files) {
  return function(file) {
    var base = path.relative(path.resolve(file.cwd), file.base);
    var destBase = files.options.destBase;
    file.dirname = path.resolve(path.join(destBase, base));
    return file.base;
  };
}
function rename ( files ) { return function ( file ) { var base = path . relative ( path . resolve ( file . cwd ) , file . base ) ; var destBase = files . options . destBase ; file . dirname = path . resolve ( path . join ( destBase , base ) ) ; return file . base ; } ; }
Custom rename function
Custom rename function