Skip to content

Commit b8aaa24

Browse files
committed
Convert all node make instances to gulp
1 parent ec1cf28 commit b8aaa24

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

docs/contents/getting_started/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ $ cd pdf.js
107107

108108
## Trying the Viewer
109109

110-
With the prebuilt or source version open `web/viewer.html` in a browser and the test pdf should load. Note: the worker is not enabled for file:// urls, so use a server. If you're using the source build and have node, you can run `node make server`.
110+
With the prebuilt or source version open `web/viewer.html` in a browser and the test pdf should load. Note: the worker is not enabled for file:// urls, so use a server. If you're using the source build and have node, you can run `gulp server`.
111111

112112
## More Information
113113

examples/components/pageviewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
if (!PDFJS.PDFViewer || !PDFJS.getDocument) {
1919
alert('Please build the library and components using\n' +
20-
' `node make generic components`');
20+
' `gulp generic components`');
2121
}
2222

2323
// The workerSrc property shall be specified.

examples/components/simpleviewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
if (!PDFJS.PDFViewer || !PDFJS.getDocument) {
1919
alert('Please build the library and components using\n' +
20-
' `node make generic components`');
20+
' `gulp generic components`');
2121
}
2222

2323
// The workerSrc property shall be specified.

examples/helloworld/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ simple and human-readable PDF.
88

99
Instead of simply opening `index.html` in a browser, you must serve the page
1010
using a web server. This can be done on your local machine without an internet
11-
connection. In the root directory of PDF.js, run `node make server` in a
11+
connection. In the root directory of PDF.js, run `gulp server` in a
1212
terminal. The example can then be viewed using the following URL:
1313

1414
`http://localhost:8888/examples/helloworld/index.html`

examples/node/getinfo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
//
55
// Basic node example that prints document metadata and text content.
66
// Requires single file built version of PDF.js -- please run
7-
// `node make singlefile` before running the example.
7+
// `gulp singlefile` before running the example.
88
//
99

1010
var fs = require('fs');
1111

1212
// HACK adding DOMParser to read XMP metadata.
1313
global.DOMParser = require('./domparsermock.js').DOMParserMock;
1414

15-
// Run `node make dist` to generate 'pdfjs-dist' npm package files.
15+
// Run `gulp dist` to generate 'pdfjs-dist' npm package files.
1616
require('../../build/dist');
1717

1818
// Loading file from file system into typed array

examples/node/pdf2svg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var fs = require('fs');
1010
// HACK few hacks to let PDF.js be loaded not as a module in global space.
1111
require('./domstubs.js');
1212

13-
// Run `node make dist` to generate 'pdfjs-dist' npm package files.
13+
// Run `gulp dist` to generate 'pdfjs-dist' npm package files.
1414
require('../../build/dist');
1515

1616
// Loading file from file system into typed array

examples/text-only/pdf2svg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function pageLoaded() {
6363
document.addEventListener('DOMContentLoaded', function () {
6464
if (typeof PDFJS === 'undefined') {
6565
alert('Built version of PDF.js was not found.\n' +
66-
'Please run `node make generic`.');
66+
'Please run `gulp generic`.');
6767
return;
6868
}
6969
pageLoaded();

examples/webpack/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Example to demonstrate PDF.js library usage with webpack.
66

77
Build project and install the example dependencies:
88

9-
$ node make dist
9+
$ gulp dist
1010
$ cd examples/webpack
1111
$ npm install
1212

make.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,7 +1357,7 @@ target.mozcentralbaseline = function() {
13571357
if (test('-d', 'build')) {
13581358
rm('-rf', 'build');
13591359
}
1360-
exec('node make mozcentral');
1360+
exec('gulp mozcentral');
13611361

13621362
cd(ROOT_DIR);
13631363
mkdir(MOZCENTRAL_BASELINE_DIR);
@@ -1391,7 +1391,7 @@ target.mozcentraldiff = function() {
13911391
var MOZCENTRAL_BASELINE_DIR = BUILD_DIR + 'mozcentral.baseline';
13921392
if (!test('-d', MOZCENTRAL_BASELINE_DIR)) {
13931393
echo('mozcentral baseline was not found');
1394-
echo('Please build one using "node make mozcentralbaseline"');
1394+
echo('Please build one using "gulp mozcentralbaseline"');
13951395
exit(1);
13961396
}
13971397
cd(MOZCENTRAL_BASELINE_DIR);
@@ -1432,7 +1432,7 @@ target.mozcentralcheck = function() {
14321432
var MOZCENTRAL_BASELINE_DIR = BUILD_DIR + 'mozcentral.baseline';
14331433
if (!test('-d', MOZCENTRAL_BASELINE_DIR)) {
14341434
echo('mozcentral baseline was not found');
1435-
echo('Please build one using "node make mozcentralbaseline"');
1435+
echo('Please build one using "gulp mozcentralbaseline"');
14361436
exit(1);
14371437
}
14381438
cd(MOZCENTRAL_BASELINE_DIR);

web/view_history.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var DEFAULT_VIEW_HISTORY_CACHE_SIZE = 20;
2222
* recently opened files.
2323
*
2424
* The way that the view parameters are stored depends on how PDF.js is built,
25-
* for 'node make <flag>' the following cases exist:
25+
* for 'gulp <flag>' the following cases exist:
2626
* - FIREFOX or MOZCENTRAL - uses sessionStorage.
2727
* - GENERIC or CHROME - uses localStorage, if it is available.
2828
*/

0 commit comments

Comments
 (0)