Convert all node make
instances to gulp
This commit is contained in:
parent
ec1cf28679
commit
b8aaa24257
10 changed files with 13 additions and 13 deletions
|
@ -17,7 +17,7 @@
|
|||
|
||||
if (!PDFJS.PDFViewer || !PDFJS.getDocument) {
|
||||
alert('Please build the library and components using\n' +
|
||||
' `node make generic components`');
|
||||
' `gulp generic components`');
|
||||
}
|
||||
|
||||
// The workerSrc property shall be specified.
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
if (!PDFJS.PDFViewer || !PDFJS.getDocument) {
|
||||
alert('Please build the library and components using\n' +
|
||||
' `node make generic components`');
|
||||
' `gulp generic components`');
|
||||
}
|
||||
|
||||
// The workerSrc property shall be specified.
|
||||
|
|
|
@ -8,7 +8,7 @@ simple and human-readable PDF.
|
|||
|
||||
Instead of simply opening `index.html` in a browser, you must serve the page
|
||||
using a web server. This can be done on your local machine without an internet
|
||||
connection. In the root directory of PDF.js, run `node make server` in a
|
||||
connection. In the root directory of PDF.js, run `gulp server` in a
|
||||
terminal. The example can then be viewed using the following URL:
|
||||
|
||||
`http://localhost:8888/examples/helloworld/index.html`
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Basic node example that prints document metadata and text content.
|
||||
// Requires single file built version of PDF.js -- please run
|
||||
// `node make singlefile` before running the example.
|
||||
// `gulp singlefile` before running the example.
|
||||
//
|
||||
|
||||
var fs = require('fs');
|
||||
|
@ -12,7 +12,7 @@ var fs = require('fs');
|
|||
// HACK adding DOMParser to read XMP metadata.
|
||||
global.DOMParser = require('./domparsermock.js').DOMParserMock;
|
||||
|
||||
// Run `node make dist` to generate 'pdfjs-dist' npm package files.
|
||||
// Run `gulp dist` to generate 'pdfjs-dist' npm package files.
|
||||
require('../../build/dist');
|
||||
|
||||
// Loading file from file system into typed array
|
||||
|
|
|
@ -10,7 +10,7 @@ var fs = require('fs');
|
|||
// HACK few hacks to let PDF.js be loaded not as a module in global space.
|
||||
require('./domstubs.js');
|
||||
|
||||
// Run `node make dist` to generate 'pdfjs-dist' npm package files.
|
||||
// Run `gulp dist` to generate 'pdfjs-dist' npm package files.
|
||||
require('../../build/dist');
|
||||
|
||||
// Loading file from file system into typed array
|
||||
|
|
|
@ -63,7 +63,7 @@ function pageLoaded() {
|
|||
document.addEventListener('DOMContentLoaded', function () {
|
||||
if (typeof PDFJS === 'undefined') {
|
||||
alert('Built version of PDF.js was not found.\n' +
|
||||
'Please run `node make generic`.');
|
||||
'Please run `gulp generic`.');
|
||||
return;
|
||||
}
|
||||
pageLoaded();
|
||||
|
|
|
@ -6,7 +6,7 @@ Example to demonstrate PDF.js library usage with webpack.
|
|||
|
||||
Build project and install the example dependencies:
|
||||
|
||||
$ node make dist
|
||||
$ gulp dist
|
||||
$ cd examples/webpack
|
||||
$ npm install
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue