Description
Current Behavior
Right now, the @angular/fire:deploy
builder infers the build target to be targetProject:build:production
. This makes it impossible to deploy targetProject:build:staging
which may have different environment variables etc.
Expected Behavior
Option 1
Add an option for buildTarget
so that the full targetProject:build:staging
can be passed in and scheduled.
Personally, since schematics can generate the config via ng add
or ng generate
, I would opt for this one.
Option 2
Add an option for configuration
so that staging
can be passed in and targetProject:build:staging
can be scheduled.
More Thoughts
Inferring the build target is okay, but I would rather not schedule anything at all if I leave it blank so a user can build separately ahead of time in the case Firebase Functions are someday supported. :)
Caveat
This configuration information might be important for knowing which Firebase project/ target to deploy to. This might be better done in a separate option.