Skip to content

Commit

Permalink
Bump firebase-frameworks (#4539)
Browse files Browse the repository at this point in the history
* Bump frameworks

* schema

* Adding source to array props of schema

* Changelog and bump

* Bump shrinkwrap

* Fixing hosting schema

* Revert for feedback

* Formatting

* Schema

* Formatting

* Bump to 0.4.2 which fixes a build issue for custom / express.js apps

* Update CHANGELOG.md

Co-authored-by: Bryan Kendall <bkend@google.com>
  • Loading branch information
jamesdaniels and bkendall committed May 11, 2022
1 parent 03072fd commit 514bba3
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 9 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Updates [firebase-frameworks](https://github.com/FirebaseExtended/firebase-framework-tools) to 0.4.2 addressing several issues with the web frameworks integration.
- Adds `hosting.source` to configuration schema as an allowed property.
14 changes: 7 additions & 7 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"exit-code": "^1.0.2",
"express": "^4.16.4",
"filesize": "^6.1.0",
"firebase-frameworks": "^0.4.0",
"firebase-frameworks": "^0.4.2",
"fs-extra": "^5.0.0",
"glob": "^7.1.2",
"google-auth-library": "^7.11.0",
Expand Down
9 changes: 9 additions & 0 deletions schema/firebase-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,9 @@
"site": {
"type": "string"
},
"source": {
"type": "string"
},
"target": {
"type": "string"
},
Expand Down Expand Up @@ -1392,6 +1395,9 @@
"site": {
"type": "string"
},
"source": {
"type": "string"
},
"target": {
"type": "string"
},
Expand Down Expand Up @@ -1874,6 +1880,9 @@
"site": {
"type": "string"
},
"source": {
"type": "string"
},
"target": {
"type": "string"
},
Expand Down
1 change: 1 addition & 0 deletions src/firebaseConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export type HostingHeaders = HostingSource & {

type HostingBase = {
public?: string;
source?: string;
ignore?: string[];
appAssociation?: string;
cleanUrls?: boolean;
Expand Down
11 changes: 10 additions & 1 deletion src/frameworks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,17 @@ export const prepareFrameworks = async (targetNames: string[], context: any, opt
firebaseProjectConfig = await getAppConfig(appId, AppPlatform.WEB);
} else {
console.warn(
`No Firebase app associated with site ${site}, unable to provide authenticated server context`
`No Firebase app associated with site ${site}, unable to provide authenticated server context.
You can link a Web app to a Hosting site here https://console.firebase.google.com/project/_/settings/general/web`
);
if (!options.nonInteractive) {
const continueDeploy = await promptOnce({
type: "confirm",
default: true,
message: "Would you like to continue with the deploy?",
});
if (!continueDeploy) exit(1);
}
}
}
}
Expand Down

0 comments on commit 514bba3

Please sign in to comment.