mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Wraps mozL10n to async calls; splits firefox and generic l10n libs.
This commit is contained in:
parent
09d46e94c6
commit
5438ce9b98
28 changed files with 463 additions and 260 deletions
11
gulpfile.js
11
gulpfile.js
|
@ -608,9 +608,6 @@ gulp.task('generic', ['buildnumber', 'locale'], function () {
|
|||
gulp.src(COMMON_WEB_FILES, {base: 'web/'})
|
||||
.pipe(gulp.dest(GENERIC_DIR + 'web')),
|
||||
gulp.src('LICENSE').pipe(gulp.dest(GENERIC_DIR)),
|
||||
gulp.src([
|
||||
'external/webL10n/l10n.js'
|
||||
]).pipe(gulp.dest(GENERIC_DIR + 'web')),
|
||||
gulp.src([
|
||||
'web/locale/*/viewer.properties',
|
||||
'web/locale/locale.properties'
|
||||
|
@ -695,7 +692,6 @@ gulp.task('minified-pre', ['buildnumber', 'locale'], function () {
|
|||
|
||||
gulp.task('minified-post', ['minified-pre'], function () {
|
||||
var viewerFiles = [
|
||||
'external/webL10n/l10n.js',
|
||||
MINIFIED_DIR + BUILD_DIR + 'pdf.js',
|
||||
MINIFIED_DIR + '/web/viewer.js'
|
||||
];
|
||||
|
@ -789,9 +785,6 @@ gulp.task('firefox-pre', ['buildnumber', 'locale'], function () {
|
|||
.pipe(gulp.dest(FIREFOX_BUILD_DIR)),
|
||||
gulp.src('LICENSE').pipe(gulp.dest(FIREFOX_BUILD_DIR)),
|
||||
|
||||
gulp.src(FIREFOX_EXTENSION_DIR + 'tools/l10n.js')
|
||||
.pipe(gulp.dest(FIREFOX_BUILD_CONTENT_DIR + '/web')),
|
||||
|
||||
preprocessJS(FIREFOX_CONTENT_DIR + 'PdfStreamConverter.jsm', defines, true)
|
||||
.pipe(replace(/\bPDFJSSCRIPT_STREAM_CONVERTER_ID\b/g,
|
||||
FIREFOX_STREAM_CONVERTER_ID))
|
||||
|
@ -892,8 +885,6 @@ gulp.task('mozcentral-pre', ['buildnumber', 'locale'], function () {
|
|||
.pipe(replace(/\bPDFJSSCRIPT_COMMIT\b/g, commit))
|
||||
.pipe(gulp.dest(MOZCENTRAL_EXTENSION_DIR)),
|
||||
gulp.src('LICENSE').pipe(gulp.dest(MOZCENTRAL_EXTENSION_DIR)),
|
||||
gulp.src(FIREFOX_EXTENSION_DIR + 'tools/l10n.js')
|
||||
.pipe(gulp.dest(MOZCENTRAL_CONTENT_DIR + '/web')),
|
||||
|
||||
preprocessJS(FIREFOX_CONTENT_DIR + 'PdfJs.jsm', defines, true)
|
||||
.pipe(gulp.dest(MOZCENTRAL_CONTENT_DIR)),
|
||||
|
@ -935,8 +926,6 @@ gulp.task('chromium-pre', ['buildnumber', 'locale'], function () {
|
|||
gulp.src(COMMON_WEB_FILES, {base: 'web/'})
|
||||
.pipe(gulp.dest(CHROME_BUILD_CONTENT_DIR + 'web')),
|
||||
|
||||
gulp.src('external/webL10n/l10n.js')
|
||||
.pipe(gulp.dest(CHROME_BUILD_CONTENT_DIR + 'web')),
|
||||
gulp.src([
|
||||
'web/locale/*/viewer.properties',
|
||||
'web/locale/locale.properties'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue