webcomponents / webcomponents.org

Home of the web components community
https://www.webcomponents.org
Apache License 2.0
359 stars 95 forks source link

Add bootstrap import script and endpoint #1357

Closed justinfagnani closed 1 year ago

justinfagnani commented 1 year ago

This isn't the tightest PR... it just adds an un-authenticated endpoint to the catalog server that imports all packages listed in catalog-server/data/bootstrap-packages.json.

The import should be relatively idempotent, except when new package versions are published. We may want to put this behind auth though. We probably do not want to run it in a GCP project before we have a way of wiping the database in our staging project.

I also made respository.getCustomElements() accept a dist-tag in a probably temporary way. That needs a test.

Part of #1353