[Pkg-javascript-commits] [pdf.js] 264/414: Convert all `node make` instances to `gulp`

David Prévot taffit at moszumanska.debian.org
Tue Jun 28 17:12:29 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit b8aaa242576537178201612d69464ddcfbcd8693
Author: Tim van der Meij <timvandermeij at gmail.com>
Date:   Fri Mar 4 20:30:36 2016 +0100

    Convert all `node make` instances to `gulp`
---
 docs/contents/getting_started/index.md | 2 +-
 examples/components/pageviewer.js      | 2 +-
 examples/components/simpleviewer.js    | 2 +-
 examples/helloworld/README.md          | 2 +-
 examples/node/getinfo.js               | 4 ++--
 examples/node/pdf2svg.js               | 2 +-
 examples/text-only/pdf2svg.js          | 2 +-
 examples/webpack/README.md             | 2 +-
 make.js                                | 6 +++---
 web/view_history.js                    | 2 +-
 10 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/docs/contents/getting_started/index.md b/docs/contents/getting_started/index.md
index 6ba9f36..b01362e 100644
--- a/docs/contents/getting_started/index.md
+++ b/docs/contents/getting_started/index.md
@@ -107,7 +107,7 @@ $ cd pdf.js
 
 ## Trying the Viewer
 
-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`.
+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`.
 
 ## More Information
 
diff --git a/examples/components/pageviewer.js b/examples/components/pageviewer.js
index 98590e4..65407d4 100644
--- a/examples/components/pageviewer.js
+++ b/examples/components/pageviewer.js
@@ -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.
diff --git a/examples/components/simpleviewer.js b/examples/components/simpleviewer.js
index fe2276f..c3315e8 100644
--- a/examples/components/simpleviewer.js
+++ b/examples/components/simpleviewer.js
@@ -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.
diff --git a/examples/helloworld/README.md b/examples/helloworld/README.md
index 7096b14..bc979fb 100644
--- a/examples/helloworld/README.md
+++ b/examples/helloworld/README.md
@@ -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`
diff --git a/examples/node/getinfo.js b/examples/node/getinfo.js
index 3511150..c06e05d 100644
--- a/examples/node/getinfo.js
+++ b/examples/node/getinfo.js
@@ -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
diff --git a/examples/node/pdf2svg.js b/examples/node/pdf2svg.js
index f5e3d8f..48268bf 100644
--- a/examples/node/pdf2svg.js
+++ b/examples/node/pdf2svg.js
@@ -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
diff --git a/examples/text-only/pdf2svg.js b/examples/text-only/pdf2svg.js
index effaf2d..29f0e4e 100644
--- a/examples/text-only/pdf2svg.js
+++ b/examples/text-only/pdf2svg.js
@@ -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();
diff --git a/examples/webpack/README.md b/examples/webpack/README.md
index 228b386..318a4d7 100644
--- a/examples/webpack/README.md
+++ b/examples/webpack/README.md
@@ -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
 
diff --git a/make.js b/make.js
index 6449e2f..db6f42d 100644
--- a/make.js
+++ b/make.js
@@ -1357,7 +1357,7 @@ target.mozcentralbaseline = function() {
   if (test('-d', 'build')) {
     rm('-rf', 'build');
   }
-  exec('node make mozcentral');
+  exec('gulp mozcentral');
 
   cd(ROOT_DIR);
   mkdir(MOZCENTRAL_BASELINE_DIR);
@@ -1391,7 +1391,7 @@ target.mozcentraldiff = function() {
   var MOZCENTRAL_BASELINE_DIR = BUILD_DIR + 'mozcentral.baseline';
   if (!test('-d', MOZCENTRAL_BASELINE_DIR)) {
     echo('mozcentral baseline was not found');
-    echo('Please build one using "node make mozcentralbaseline"');
+    echo('Please build one using "gulp mozcentralbaseline"');
     exit(1);
   }
   cd(MOZCENTRAL_BASELINE_DIR);
@@ -1432,7 +1432,7 @@ target.mozcentralcheck = function() {
   var MOZCENTRAL_BASELINE_DIR = BUILD_DIR + 'mozcentral.baseline';
   if (!test('-d', MOZCENTRAL_BASELINE_DIR)) {
     echo('mozcentral baseline was not found');
-    echo('Please build one using "node make mozcentralbaseline"');
+    echo('Please build one using "gulp mozcentralbaseline"');
     exit(1);
   }
   cd(MOZCENTRAL_BASELINE_DIR);
diff --git a/web/view_history.js b/web/view_history.js
index 346d39b..b8404e6 100644
--- a/web/view_history.js
+++ b/web/view_history.js
@@ -22,7 +22,7 @@ var DEFAULT_VIEW_HISTORY_CACHE_SIZE = 20;
  *                recently opened files.
  *
  * The way that the view parameters are stored depends on how PDF.js is built,
- * for 'node make <flag>' the following cases exist:
+ * for 'gulp <flag>' the following cases exist:
  *  - FIREFOX or MOZCENTRAL - uses sessionStorage.
  *  - GENERIC or CHROME     - uses localStorage, if it is available.
  */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list