Created
April 11, 2023 13:28
-
-
Save monsat/b4c4897320f0cfd8265c57e039323ab6 to your computer and use it in GitHub Desktop.
monorepo 環境で Firebase Cloud Functions の設定
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
{ | |
"firestore": { | |
"rules": "firestore.rules", | |
"indexes": "firestore.indexes.json" | |
}, | |
"functions": [ | |
{ | |
"codebase": "backend", | |
"source": "packages/firebase-functions", | |
"ignore": [ | |
"node_modules", | |
".git", | |
"firebase-debug.log", | |
"firebase-debug.*.log" | |
], | |
"predeploy": [ | |
"yarn workspace @repos/functions run build" | |
] | |
} | |
] | |
} |
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
{ | |
"name": "@repos/functions", | |
"scripts": { | |
"build": "tsc", | |
"build:watch": "tsc --watch", | |
"serve": "npm run build && firebase emulators:start --only functions", | |
"shell": "npm run build && firebase functions:shell", | |
"start": "npm run shell", | |
"deploy": "firebase deploy --only functions", | |
"logs": "firebase functions:log" | |
}, | |
"engines": { | |
"node": "16" | |
}, | |
"main": "lib/firebase-functions/src/index.js", | |
"dependencies": { | |
"firebase-admin": "^11.6.0", | |
"firebase-functions": "^4.2.1" | |
}, | |
"devDependencies": { | |
"firebase-functions-test": "^3.0.0", | |
"typescript": "^4.9.0" | |
}, | |
"private": true, | |
"version": "1.0.0" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment