webcomponents / webcomponents.org

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

Add command to export emulator data, import on start #1398

Closed justinfagnani closed 1 year ago

justinfagnani commented 1 year ago

This adds emulators:export to the catalog-server scripts. It can be run when the emulator is running to export data to catalog-server/firebase-data/. The --import flag on emulators:start works as long as that data folder exists, even if it's empty.

github-actions[bot] commented 1 year ago

A live preview of this PR will be available at the URL below and will update on each commit. = The build takes ~5-10 minutes, and will 404 until finished.

https://pr1398---site-khswqo4xea-wl.a.run.app/

Warning Until our Cloud Run project is public, only authorized users can view the above URL. The easiest way to view it authenticated is to run the following proxy command and visit http://localhost:5453

(gcloud beta run services proxy --project=webcomponents-org-test --region=us-west2 --tag=pr1398 --port=5453 site \
& gcloud beta run services proxy --project=webcomponents-org-test --region=us-west2 --tag=pr1398 --port=6453 catalog)