mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Adds streams-lib polyfill and exports ReadableStream from shared/util.
Added test for ReadableStream. Adds ref-implementation license-header in streams-lib and change gulp task to copy external/streams/ in build/ external/streams/ and build/dist/external/streams folder. Adds README.md and LICENSE.md
This commit is contained in:
parent
32bb0e8c0e
commit
c9f44f30e5
7 changed files with 4015 additions and 3 deletions
10
gulpfile.js
10
gulpfile.js
|
@ -1012,8 +1012,7 @@ gulp.task('lib', ['buildnumber'], function () {
|
|||
};
|
||||
var licenseHeader = fs.readFileSync('./src/license_header.js').toString();
|
||||
var preprocessor2 = require('./external/builder/preprocessor2.js');
|
||||
|
||||
return merge([
|
||||
var buildLib = merge([
|
||||
gulp.src([
|
||||
'src/{core,display}/*.js',
|
||||
'src/shared/{compatibility,util}.js',
|
||||
|
@ -1027,6 +1026,11 @@ gulp.task('lib', ['buildnumber'], function () {
|
|||
gulp.src('test/unit/*.js', {base: '.'}),
|
||||
]).pipe(transform(preprocess))
|
||||
.pipe(gulp.dest('build/lib/'));
|
||||
return merge([
|
||||
buildLib,
|
||||
gulp.src('external/streams/streams-lib.js', {base: '.'})
|
||||
.pipe(gulp.dest('build/')),
|
||||
]);
|
||||
});
|
||||
|
||||
gulp.task('web-pre', ['generic', 'extension', 'jsdoc']);
|
||||
|
@ -1320,6 +1324,8 @@ gulp.task('dist-repo-prepare', ['dist-pre'], function () {
|
|||
createStringSource('bower.json', JSON.stringify(bowerManifest, null, 2));
|
||||
|
||||
return merge([
|
||||
gulp.src('external/streams/streams-lib.js', {base: '.'})
|
||||
.pipe(gulp.dest('build/dist/')),
|
||||
packageJsonSrc.pipe(gulp.dest(DIST_DIR)),
|
||||
bowerJsonSrc.pipe(gulp.dest(DIST_DIR)),
|
||||
vinyl.src('external/dist/**/*',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue