-
Notifications
You must be signed in to change notification settings - Fork 916
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding extensions to firebase init (#5701)
* Adding extensions to firebase init * changelog * Formats
- Loading branch information
Showing
10 changed files
with
86 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
- Adds new commands for provisioning and managing Firestore databases: (#5616) | ||
- firestore:databases:list | ||
- firestore:databases:create | ||
- firestore:databases:get | ||
- firestore:databases:update | ||
- firestore:databases:delete | ||
- firestore:locations | ||
- firestore:databases:list | ||
- firestore:databases:create | ||
- firestore:databases:get | ||
- firestore:databases:update | ||
- firestore:databases:delete | ||
- firestore:locations | ||
- Adds `extensions` as an option in `firebase init`. | ||
- Relaxed repo URI validation in ext:dev:publish (#5698). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { requirePermissions } from "../../../requirePermissions"; | ||
import { Options } from "../../../options"; | ||
import { ensure } from "../../../ensureApiEnabled"; | ||
import { Config } from "../../../config"; | ||
import * as manifest from "../../../extensions/manifest"; | ||
|
||
/** | ||
* Set up a new firebase project for extensions. | ||
*/ | ||
export async function doSetup(setup: any, config: Config, options: Options): Promise<any> { | ||
const projectId = setup?.rcfile?.projects?.default; | ||
if (projectId) { | ||
await requirePermissions({ ...options, project: projectId }); | ||
await Promise.all([ensure(projectId, "firebaseextensions.googleapis.com", "unused", true)]); | ||
} | ||
return manifest.writeEmptyManifest(config, options); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters