generator.js
function filter(name, options) {
  return utils.through.obj(function(file, enc, next) {
    if (file.isNull()) {
      next();
      return;
    }

    var basename = path.basename(file.history[0]);
    var stem = basename.slice(0, -3);

    if (basename === name || stem === name) {
      next(null, file);
    } else {
      next();
    }
  });
}
function filter(name, options) {
  return utils.through.obj(function(file, enc, next) {
    if (file.isNull()) {
      next();
      return;
    }

    var basename = path.basename(file.history[0]);
    var stem = basename.slice(0, -3);

    if (basename === name || stem === name) {
      next(null, file);
    } else {
      next();
    }
  });
}
function filter ( name , options ) { return utils . through . obj ( function ( file , enc , next ) { if ( file . isNull ( ) ) { next ( ) ; return ; } var basename = path . basename ( file . history [ 0 ] ) ; var stem = basename . slice ( 0 , - 3 ) ; if ( basename === name || stem === name ) { next ( null , file ) ; } else { next ( ) ; } } ) ; }
Filter files to be rendered
Filter files to be rendered