-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
area: @angular/clifreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity3: brokentype: bug/fix
Milestone
Description
🐞 Bug report
Command (mark with an x
)
- new
- build
- serve
- deploy
- test
- e2e
- generate
- add
- update
- lint
- xi18n
- run
- config
- help
- version
- doc
Is this a regression?
Probably not
Description
Not sure if this is a bug or a feature request.
Allow specifying a --configuration='production'
for ng deploy
commands.
This should simply read from the corresponding configuration and apply those settings on top of settings found in options
under the deploy
config.
According to docs, this should work for other types of tasks such as build/serve/lint: https://angular.io/guide/cli-builder#target-configuration
🔬 Minimal Reproduction
"deploy": {
"builder": "@angular/fire:deploy",
"options": {
"buildTarget": "my-project:build",
"firebaseProject": "dev"
},
"configurations": {
"production": {
"buildTarget": "my-project:build:production",
"firebaseProject": "prod"
}
}
}
This command works:
ng deploy myProject
This command does not work, even with correct configuration:
ng deploy myProject --configuration production
🔥 Exception or Error
Unknown option: '--configuration'
Unknown option: 'production'
🌍 Your Environment
Angular CLI 9
Splaktar
Metadata
Metadata
Assignees
Labels
area: @angular/clifreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity3: brokentype: bug/fix