code: function generateFiles() {
          vfs.src(path.join(modulePath, 'dist', 'output', '**'), { base: path.join(modulePath, 'dist', 'output') })
            .pipe(athenaMate.replaceServer({
              cwd: appPath,
              module: moduleConf.module,
              serve: isServe,
              release: isRelease,
              replaceType: remoteName,
              refModuleList: moduleConf.refModuleList || [],
              base64Opts: moduleConf.support.base64
            }))
            .pipe(vfs.dest(path.join(modulePath, 'dist', 'output')))
            .pipe(through2.obj(function (file, encoding, cb) {
              if (file.isNull() || file.isStream()) {
                return cb(null);
              }
              if (file.isBuffer()) {
                var fpath = file.path;
                var outputPath = path.join(modulePath, 'dist', 'output/');
                var innerPath = fpath.replace(outputPath, '');
                var innerPathArr = innerPath.split(path.sep);
                innerPathArr.shift();
                file.path = path.join(outputPath, innerPathArr.join(path.sep));
                this.push(file);
                cb();
              }
            }))
            .pipe(vfs.dest(path.join(appPath, '.temp', appConf.app, moduleConf.module)))
            .on('end', function () {
              generateTemp();
              resolve(remoteName);
            });
        }
docs: 处理文件