functions-differ icon indicating copy to clipboard operation
functions-differ copied to clipboard

Support multiple firebase projects

Open Yabes opened this issue 4 years ago • 2 comments

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.json a 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>.json This would allow to only specify a subset of functions for each project

What are your thought on the subject?

Yabes avatar Jun 15 '21 11:06 Yabes

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.

haroldadmin avatar Jun 15 '21 15:06 haroldadmin

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!

haroldadmin avatar Sep 29 '21 05:09 haroldadmin