-
Notifications
You must be signed in to change notification settings - Fork 2
Remove Nutrient assets copy requirement from examples. #25
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
"predev": "npm run copy-files", | ||
"dev": "tsc", | ||
"start": "serve -l 8080 ./dist", | ||
"prestart:dev": "node bin/verify-install.js", | ||
"prestart:dev": "npm run copy-files", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need two different scripts to run npm run copy-files
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pre
prefixed scripts run before the start:dev
and dev
scripts respectively, that's the reason they're repeated, to make sure they run before building on each mode.
Part of https://pspdfkit.atlassian.net/browse/WEB-2319
Details
Remove the copy assets step from the Web examples where possible using strategies as close to each framework's recommended practices as possible.
These changes will be reflected in the corresponding "Getting started" guides in the Website repo as part of the same task.
Examples are being updated to match as closely as possible the new instructions in the guides, opting in some cases for the CDN approach, or for the framework-specific local installation approach as it seemed easier or more helpful for readers.
Some integrations like ASP.NET and Blazor have been left alone because of the nature of the integration, which would not involve the use of a JavaScript package manager so the complexity of the setup, if any, is already built in and trying to make it easier would involve providing more instructions than simply asking to copy the corresponding assets as it is now.
Others were already free of the assets copying step.
Some minor tasks have been included here, like updating some vulnerable dependencies and minor edits.