add a statsStream that aggregates the number of files and bytes so that we can handle them

This commit is contained in:
Johannes Rieken
2018-08-31 11:21:09 +02:00
parent e055c6ef94
commit 14596e9475
4 changed files with 96 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ import * as path from 'path';
import { Stream } from 'stream';
import * as File from 'vinyl';
import * as vsce from 'vsce';
import { createStatsStream } from './stats';
import * as util2 from './util';
import assign = require('object-assign');
import remote = require('gulp-remote-src');
@@ -131,7 +132,7 @@ export function fromLocal(extensionPath: string, sourceMappingURLBase?: string):
}).catch(err => result.emit('error', err));
return result;
return createStatsStream(path.basename(extensionPath), result, true);
}
function error(err: any): Stream {