Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak the pdf.scripting.js bundling, to improve overall consistency #12529

Merged
merged 1 commit into from
Oct 25, 2020

Conversation

Snuffleupagus
Copy link
Collaborator

This brings the new pdf.scripting.js bundling more in-line with the pre-existing handling for the pdf.js/pdf.worker.js files:

  • Add a new src/pdf.scripting.js file as the entry-point for the build scripts.

  • Add the version/build numbers at the top of the built pdf.scripting.js files, since all other built files include that information given that it's often helpful to be able to easily determine the exact version.

  • Tweak the createScriptingBundle in the gulp-file, since it looks like a little bit too much copy-and-paste in the variable names.

This brings the new `pdf.scripting.js` bundling more in-line with the pre-existing handling for the  `pdf.js`/`pdf.worker.js` files:
 - Add a new `src/pdf.scripting.js` file as the entry-point for the build scripts.

 - Add the version/build numbers at the top of the *built* `pdf.scripting.js` files, since all other built files include that information given that it's often helpful to be able to easily determine the *exact* version.

 - Tweak the `createScriptingBundle` in the gulp-file, since it looks like a little bit too much copy-and-paste in the variable names.
@timvandermeij timvandermeij merged commit b2a4dac into mozilla:master Oct 25, 2020
@timvandermeij
Copy link
Contributor

Thanks!

@Snuffleupagus Snuffleupagus deleted the scripting-build-tweaks branch October 26, 2020 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants