Quantcast
Channel: Cloud Functions for Firebase: Project structure multiple self-contained functions - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Cloud Functions for Firebase: Project structure multiple self-contained functions

$
0
0

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 intention is to do "firebase deploy --only functions" in either the anonymous-login or auth-login folders but the deployment fails.

Currently, "firebase init functions" creates new index.js and package.json files in the functions folder, which is not what I want.

Also, we want to avoid using require to pull all functions into one index.js file.


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>