Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Apr 3, 2024

Conversation

simondotm
Copy link
Owner

@simondotm simondotm commented Apr 3, 2024

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.

@simondotm simondotm linked an issue Apr 3, 2024 that may be closed by this pull request
@simondotm simondotm merged commit e952ac9 into main Apr 3, 2024
5 checks passed
@simondotm simondotm deleted the 213-use-firebase-sdk-template-in-the-init-generator branch April 3, 2024 22:56
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.

Use firebase SDK template in the init generator
1 participant