Skip to content

Improve javascript library management#182

Merged
hcooper merged 1 commit intomasterfrom
npm
Mar 9, 2026
Merged

Improve javascript library management#182
hcooper merged 1 commit intomasterfrom
npm

Conversation

@hcooper
Copy link
Contributor

@hcooper hcooper commented Mar 9, 2026

For reliability and idempotent results we've preferred self-hosting js libraries ourselves rather than dynamically serving them from unpkg or similar.

However the process of manually doing this is tedious, and makes upgrading annoying.

This script is a middle ground. We keep serving the files but they are automatically fetched for us as build time. It also provides one place to keep a list of npm libraries we use.

Testing...

github tests are good. Tested locally, and then in prod.

image

@hcooper hcooper marked this pull request as ready for review March 9, 2026 05:15
@hcooper
Copy link
Contributor Author

hcooper commented Mar 9, 2026

I'm going to push this through without approval because it's a complex process requiring common,js, common.css and app to all be updated & deployed in lock step together. Something in the MW 1.39 is causing odd JS behavior, and installing the libraries afresh resolves it.

@hcooper hcooper merged commit 92c83dc into master Mar 9, 2026
1 check passed
@hcooper hcooper deleted the npm branch March 9, 2026 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant