Cloud Functions for Firebase: Multiple Standalone Project Structure Functions

I am trying to create a project structure similar to the following:

--firebase-admin-project
  --firebase.json
  --functions
    --anonymous-login
      --node_modules
      --index.js
      --package.json
    --auth-login
      --node_modules
      --index.js
      --package.json

The goal is to perform "firebase deployment - only functions" in folders of anonymous login or logon, but deployment is not performed.

Currently, the "initbbbbbbase functions" creates new index.js and package.json files in the functions folder, which I don't want.

In addition, we want to avoid using require to pull all the functions into a single index.js file.

+4
source share
2 answers

firebase deploy . - , .

. CLI , . partial deploys .

+2
firebase deploy --only functions:<any function>

Firebase

+2

Source: https://habr.com/ru/post/1673114/


All Articles