What is the best practice to organize all our Cloud Functions for Firebase?
I see from the sample GitHub repository that all functions reside in a single index
You could use something like export { functionName } from './file'
at your index.js file.
// This is the main entry point for the app written in ES that is compatible with node lts
import * as functions from 'firebase-functions';
export { sendWelcomeEmail } from './userEmails';
exports.helloWorld = functions.https.onRequest((request, response) => {
let helloMsg = `Hello!`;
response.send(helloMsg);
});