Skip to content

feat(ng-deploy): add option for buildTarget #2063

Closed
@FrozenPandaz

Description

@FrozenPandaz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions