Add Google Cloud Storage to functions dependencies, fix firebase.json pre-deploy scripts, update functions eslint

This commit is contained in:
Xevion
2022-05-24 18:45:45 -05:00
parent b59e0df7ac
commit 713d96ac33
4 changed files with 2755 additions and 5 deletions

View File

@@ -8,8 +8,8 @@
],
"rewrites": [
{
"source": "/api/hello-world/",
"function": "helloWorld"
"source": "/api/surrounding",
"function": "surrounding"
},
{
"source": "**",
@@ -19,8 +19,8 @@
},
"functions": {
"predeploy": [
"npm --prefix \"$RESOURCE_DIR\" run lint",
"npm --prefix \"$RESOURCE_DIR\" run build"
"yarn --prefix \"$RESOURCE_DIR\" run lint",
"yarn --prefix \"$RESOURCE_DIR\" run build"
]
}
}

View File

@@ -27,6 +27,8 @@ module.exports = {
rules: {
"quotes": ["error", "double"],
"import/no-unresolved": 0,
"indent": ["warn", 4]
"indent": ["warn", 4],
"@typescript-eslint/no-var-requires": 0,
"max-len": ["warn", 120],
},
};

View File

@@ -15,6 +15,7 @@
},
"main": "lib/index.js",
"dependencies": {
"@google-cloud/storage": "^5.20.5",
"firebase-admin": "^10.0.2",
"firebase-functions": "^3.18.0"
},

2747
functions/yarn.lock Normal file
View File

File diff suppressed because it is too large Load Diff