mirror of
https://github.com/Xevion/the-office.git
synced 2025-12-13 14:13:15 -06:00
Add Google Cloud Storage to functions dependencies, fix firebase.json pre-deploy scripts, update functions eslint
This commit is contained in:
@@ -8,8 +8,8 @@
|
|||||||
],
|
],
|
||||||
"rewrites": [
|
"rewrites": [
|
||||||
{
|
{
|
||||||
"source": "/api/hello-world/",
|
"source": "/api/surrounding",
|
||||||
"function": "helloWorld"
|
"function": "surrounding"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"source": "**",
|
"source": "**",
|
||||||
@@ -19,8 +19,8 @@
|
|||||||
},
|
},
|
||||||
"functions": {
|
"functions": {
|
||||||
"predeploy": [
|
"predeploy": [
|
||||||
"npm --prefix \"$RESOURCE_DIR\" run lint",
|
"yarn --prefix \"$RESOURCE_DIR\" run lint",
|
||||||
"npm --prefix \"$RESOURCE_DIR\" run build"
|
"yarn --prefix \"$RESOURCE_DIR\" run build"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,6 +27,8 @@ module.exports = {
|
|||||||
rules: {
|
rules: {
|
||||||
"quotes": ["error", "double"],
|
"quotes": ["error", "double"],
|
||||||
"import/no-unresolved": 0,
|
"import/no-unresolved": 0,
|
||||||
"indent": ["warn", 4]
|
"indent": ["warn", 4],
|
||||||
|
"@typescript-eslint/no-var-requires": 0,
|
||||||
|
"max-len": ["warn", 120],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
},
|
},
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@google-cloud/storage": "^5.20.5",
|
||||||
"firebase-admin": "^10.0.2",
|
"firebase-admin": "^10.0.2",
|
||||||
"firebase-functions": "^3.18.0"
|
"firebase-functions": "^3.18.0"
|
||||||
},
|
},
|
||||||
|
|||||||
2747
functions/yarn.lock
Normal file
2747
functions/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user