firebase-tools
firebase-tools copied to clipboard
[DO NOT MERGE] integration with frameworks and JS SDK autoinit
trafficstars
Utilizes firebase-framework-tools#24 alongside firebase-js-sdk#6526.
There are a number of improvements but most importantly this serves as the PoC for go/firebase-api-client-autoinit and hosting init for Web Frameworks.
- Frameworks now needs the emulator address environment variables in the current env, so that they can be consume during SSG
- For emulators, I had to rearrange the start order with frameworks, functions, and finally hosting last. That way SSG could connect to Auth, RTDB, Firestore, and Storage if they are spun up
- Default cleanUrls to true for frameworks, use
??=, so that developers can opt-out - Fetch the default service account and set that and gcloud project env variables for SSG
- Rearrange init hosting a bit to allow Angular, Next, and Nuxt project creation
- Starting to move more of the business logic from firebase-frameworks into firebase-tools