Jonas Jenwald
ad915f8af1
Fix errors reported by the `comma-spacing` ESLint rule
...
http://eslint.org/docs/rules/comma-spacing
8 years ago
Adhika Setya Pramudita
906b8ea907
Make: include minified library files for the distribution target
...
Fixes #5487 .
9 years ago
Yury Delendik
1369997bbf
Properly invoke 'gulp' in make.js and fail when it fails.
9 years ago
Tim van der Meij
224e3a42a2
Gulp: port the `all`, `extension` and `jsdoc` targets
...
This requires the `run-sequence` dependency because Gulp does not have a
way to run sequences of tasks inside a Gulp task. Gulp 4.0 will have
support for this, but until that is released this is the recommended way
to implement it.
9 years ago
Yury Delendik
0576c9c6c6
Replaces all preprocessor directives with PDFJSDev calls.
9 years ago
Tim van der Meij
79db293c36
Stop building the AMO extension
...
The AMO extension is no longer supported as PDF.js is integrated in
Firefox. It was already removed from the bot's preview messages around a
year ago and has not been used or updated since.
9 years ago
Tim van der Meij
b25bc27498
Remove B2G extension building target
9 years ago
klemens
6f03f62327
trivial spelling fixes
9 years ago
Jonas Jenwald
a69e862bc4
[Firefox addon] Remove compatibility.js
...
This was added in PR 4865, but hasn't been necessary for quite some time now (and the minimum version is currently Firefox 38 for the addon).
9 years ago
Tim van der Meij
6a7012aaca
Remove unused variables
...
These have been found using `gulp lint` in combination with the `unused:
true` parameter for JSHint. Unfortunately there are too many false
positives to enable this feature, but now that most globals have been
removed because of the conversion to UMD the results are much more
useful than before.
9 years ago
Yury Delendik
fe6001363d
Moves all testing into gulpfile.
9 years ago
Tim van der Meij
5166b46a1c
Port the `publish` target to Gulp
9 years ago
Yury Delendik
5568a19ee3
Moves bundle target/task to gulpfile.js
9 years ago
Yury Delendik
3132941948
Removes app.js dependency on mozPrintCallback_polyfill.js.
9 years ago
Yury Delendik
81fc46e666
Refactors FindController dependencies.
9 years ago
Yury Delendik
006e8fb59d
Introduces UMD headers to the web/ folder.
9 years ago
Yury Delendik
ae415f9e80
Removing "entry-loader" dependency from webpack.
9 years ago
Yury Delendik
1d12aed5ca
Move all PDFJS.xxx settings into display/global.
9 years ago
Yury Delendik
38c41d86c6
Specifies package format for jspm.
9 years ago
Yury Delendik
d7d7935648
Initial browserify example.
9 years ago
Jonas Jenwald
8f097abb46
Allow unit-tests to use linked PDF files, by having the `unittest` command download unavailable ones (issue 7117)
9 years ago
Tim van der Meij
2b6d7ba3ec
Gulp: allow passing parameters and revert one `node make` renaming
9 years ago
Tim van der Meij
96cca2b37a
Migrate `clean` and `importl10n` target to gulp
9 years ago
Tim van der Meij
b8aaa24257
Convert all `node make` instances to `gulp`
9 years ago
Yury Delendik
9798e1007e
Introducing gulp.
9 years ago
Timothy Gu
e403f52722
Use UglifyJS to minify files in minified target
...
It is written in JavaScript, is less buggy, and compresses better.
9 years ago
Yury Delendik
f340dd5cd5
Adds pdfjs/main_loader module to better mirror pdfjs-dist/build/pdf.
9 years ago
Yury Delendik
cbbb9bb82d
Adds UMD header to pdf.js and pdf.worker.js files.
9 years ago
Yury Delendik
2f8ae38276
Use UMD headers to detect module loading order.
9 years ago
Yury Delendik
fc3282db56
Adds RequireJS to worker.
9 years ago
Yury Delendik
79c2f69c32
Adds/modifies examples for node.js and webpack.
9 years ago
Tim van der Meij
df81b832bb
Remove unused variables
9 years ago
Yury Delendik
2f704f5957
Collapses UMD headers in bundled files.
9 years ago
Yury Delendik
450edc95cc
UMD validation and generation tools.
9 years ago
Yury Delendik
6b60c8f4db
Adds UMD headers to core, display and shared files.
9 years ago
Jonas Jenwald
d6c2ced9e6
Let Travis lint using `node make lint`, instead of a hard-coded command
10 years ago
Tim van der Meij
91274d6d2d
Rename annotation_helper.js to annotation_layer.js
10 years ago
Jonas Jenwald
c310a3790e
Make `stripCommentHeaders` less greedy, to ensure that it doesn't eat 'use strict' directive at the top of files (PR 6627 follow-up)
...
While browsing through the latest PDF.js update on mozilla-central, see https://hg.mozilla.org/integration/fx-team/rev/aef06cd725fc , I noticed that the `'use strict';` directives were missing at the top of a number of files.
This is fallout from the changes made in `make.js` in PR 6627, since `stripCommentHeaders` previously relied on the existence of the mode-lines.
I'm assuming that we do want *all* of the code (e.g. the viewer too) to execute in strict mode, hence this patch tweaks `stripCommentHeaders` to make it less greedy.
10 years ago
Yury Delendik
56ccaea99b
Move text layer building logic into src/display/text_layer.js
10 years ago
Yury Delendik
2f34fd46cb
Move CustomStyle.
10 years ago
Manas
a2ba1b8189
Uses editorconfig to maintain consistent coding styles
...
Removes the following as they unnecessary
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
10 years ago
Yury Delendik
4c9f6741ae
Remove mozcentral test files.
10 years ago
Yury Delendik
2b5fde1259
Pushing update reason for gh-pages and bower.
...
e.g. mozilla/pdf.js@eabbfd78d1fd2301c1bf5ac10bd76a5829150574
10 years ago
Dhole
de83de0a58
Set TZ=UTC before calls to zip
...
This change allows to make the package build reproducible.
Bug-Debian: https://bugs.debian.org/793127
10 years ago
Yury Delendik
4f3f983a21
Removes PdfRedirector.js and PlayPreview support.
10 years ago
Rob Wu
1d4e450a79
make.js: Less greedy comment stripping
...
The previous regex was too greedy, it stripped a significant amount of
code when I put another file after core/murmurhash3.js. This was caused
by the fact that the license header in murmurhash3.js does not contain
"Mozilla Foundation", so the regex continued to match until my new file
(which had the standard license header containing "Mozilla Foundation").
10 years ago
Yury Delendik
0b5330781c
Bug 1179262 - Remove PlayPreview registration from PDF Viewer.
10 years ago
Yury Delendik
f3c3b1fc2d
Removes B2G preprocessing directives.
10 years ago
Yury Delendik
1b847df2f3
Using pdfjs-dist as a library for b2g viewer.
10 years ago
Timothy Gu
a5cfb0a73b
Update Adobe CMaps URL and license
...
They are now using Apache 2.0 as well.
10 years ago