Changed structure of example to follow the firebase provided one

This commit is contained in:
Alexander Cerutti
2023-07-29 00:13:48 +02:00
parent b548d42079
commit 8f3a07d483
8 changed files with 14594 additions and 4666 deletions

View File

@@ -0,0 +1,31 @@
{
"name": "functions",
"description": "Cloud Functions for Firebase",
"scripts": {
"serve": "firebase emulators:start --only functions",
"shell": "firebase functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log",
"service:link-pg": "cd ../.. && npm run build && npm link",
"preinstall": "npm run clear:deps",
"postinstall": "npm run service:link-pg && npm link passkit-generator",
"clear:deps": "rm -rf node_modules"
},
"engines": {
"node": "16"
},
"main": "lib/index.js",
"dependencies": {
"axios": "^1.2.6",
"firebase-admin": "^10.3.0",
"firebase-functions": "^3.24.1"
},
"peerDependencies": {
"passkit-generator": "latest"
},
"devDependencies": {
"firebase-functions-test": "^0.2.3"
},
"private": true
}