Closed
Description
Versions
Angular CLI: 6.0.0-rc.7
Node: 8.10.0
OS: darwin x64
Angular: 6.0.0-rc.6
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router
... service-worker
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.5.11
@angular-devkit/build-angular 0.5.11
@angular-devkit/build-optimizer 0.5.11
@angular-devkit/core 0.5.11
@angular-devkit/schematics 0.5.10
@angular/cdk 6.0.0-rc.14
@angular/cli 6.0.0-rc.7
@angular/flex-layout 6.0.0-beta.15
@angular/material 6.0.0-rc.14
@ngtools/json-schema 1.1.0
@ngtools/webpack 6.0.0-rc.9
@schematics/angular 0.5.10
@schematics/update 0.5.10
rxjs 6.0.0
typescript 2.7.2
webpack 4.6.0
Repro steps
> ng run site:app-shell --configuration=accp
Observed behavior
Unknown option: '--configuration'
Desired behavior
I expect to be able to use --configuration
in the same way as it works for ng build
, ng serve
, etc.
The documentation also suggests this should be possible: https://github.com/angular/angular-cli/blob/master/docs/documentation/run.md
Mention any other details that might be useful (optional)
I know this can be done using ng run site:app-shell:accp
, but why not make it consistent with other commands? Argument are easier to pass around in npm scripts as well.
My use case:
{
"scripts": {
"build.app-shell": "ng run site:app-shell"
}
}
Then use npm run build.app-shell -- --configuration=accp
.
This does not seem to be possible with a command like ng run site:app-shell:${configuration}
Metadata
Metadata
Assignees
Labels
No labels