mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-06-26 01:55:48 +02:00
Use locally-installed Gulp over globally-installed one
parent
3c65fb0d6e
commit
20f3b6c4be
@ -21,8 +21,8 @@ When working on issues related to performance, it is important to provide a perf
|
||||
Run the following commands to create a 'baseline' measurement (i.e., before you make your changes):
|
||||
|
||||
$ git checkout master
|
||||
$ gulp generic
|
||||
$ gulp components
|
||||
$ npx gulp generic
|
||||
$ npx gulp components
|
||||
$ cd test
|
||||
$ node test.mjs --statsFile=stats/results/baseline.json --statsDelay=5000 --manifestFile=benchmark.json
|
||||
|
||||
@ -30,8 +30,8 @@ Then apply your changes and create a 'current' measurement (replace `<feature-br
|
||||
|
||||
$ cd ..
|
||||
$ git checkout <feature-branch>
|
||||
$ gulp generic
|
||||
$ gulp components
|
||||
$ npx gulp generic
|
||||
$ npx gulp components
|
||||
$ cd test
|
||||
$ node test.mjs --statsFile=stats/results/current.json --statsDelay=5000 --manifestFile=benchmark.json
|
||||
|
||||
@ -70,7 +70,7 @@ When the test finishes there will be a section in the terminal with `------- Sum
|
||||
#### Apply Your Changes & Test Again
|
||||
1. In the `<pdfjs_src_dir>`:
|
||||
1. make your changes
|
||||
2. build `gulp mozcentral`
|
||||
2. run `npx gulp mozcentral`
|
||||
3. copy the pdf.js build to firefox `rsync -a -v <pdfjs_src_dir>/build/mozcentral/browser/extensions/pdfjs/ <firefox_src_dir>toolkit/components/pdfjs/`
|
||||
2. Back in `<firefox_src_dir>`:
|
||||
1. Build firefox `./mach build faster`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user