Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Vendor assets

This directory contains runtime third-party assets that are committed to the repository and loaded by the shipped HTML pages.

Rules

  • Load browser libraries from /tools/vendor/**, not from external CDNs.
  • Keep node_modules/ development-only and gitignored.
  • Commit all runtime vendor files, plus package.json and package-lock.json, whenever versions change.
  • Prefer stable filenames in /tools/vendor/ so app code does not need to change when versions are updated.

Update workflow

  1. Update the dependency versions in package.json when needed.
  2. Run npm install.
  3. Run npm run vendor:sync.
  4. Verify the tools still work.
  5. Commit package.json, package-lock.json, and the changed files in /tools/vendor/.

Current layout

  • /tools/vendor/pdfjs/ — shared PDF.js runtime files
  • /tools/vendor/pdf-lib/ — shared pdf-lib bundle
  • /tools/vendor/jspdf/ — shared jsPDF bundle
  • /tools/vendor/ffmpeg/ — shared FFmpeg.wasm runtime files

tools/vendor/manifest.json is generated by the sync script and records the currently vendored package versions.