functions-differ
functions-differ copied to clipboard
Support multiple firebase projects
When working with different firebase projects it would be great to
I can see two way of doing this:
- Provide a new optional parameter to set a projectId and save in the
.differspec.jsona different hash & lastDiff per project like so:
{
"functions": {
"fnA": "path/to/a"
},
"projects": {
"project-1": {
"hashes": { ... },
"lastDiff": { ... }
}
}
}
^ This solution would force each environment to have the same set of functions.
- Provide a new optional parameter to change the spec filename to something like
.differspec.<env>.jsonThis would allow to only specify a subset of functions for each project
What are your thought on the subject?
I see no reason why we can't support it. Thanks for filing this feature request, I'll see what I can do to implement in the next couple of weekends.
Apologies for the delay on this issue.
My requirements for the package have shifted since its inception so I am no longer treating this issue as a priority. I would be happy to accept a PR for this feature!