Skip to content

Instantly share code, notes, and snippets.

@monsat
Created April 11, 2023 13:28
Show Gist options
  • Save monsat/b4c4897320f0cfd8265c57e039323ab6 to your computer and use it in GitHub Desktop.
Save monsat/b4c4897320f0cfd8265c57e039323ab6 to your computer and use it in GitHub Desktop.
monorepo 環境で Firebase Cloud Functions の設定
{
"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"
]
}
]
}
{
"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