simondotm / nx-firebase

Firebase plugin for Nx Monorepos
https://www.npmjs.com/package/@simondotm/nx-firebase
MIT License
180 stars 31 forks source link

feat: Use templates from Firebase SDK's directly in the init generator #222

Closed simondotm closed 7 months ago

simondotm commented 7 months ago

Plugin init generator is now using templates direct from the Firebase SDK.

They are copied from the SDK as a postinstall script, and match the SDK version shipped with the plugin releases.

Note that the generated main.ts for functions now no longer contains:

// import { initializeApp } from "firebase-admin/app";
// initializeApp()

since this is not in the Firebase SDK functions template.

Also, when the firebase app generator runs it will set a 30-day expiry in firestore.rules the same way the firebase CLI does.