Skip to content

Is any way to extend or generate configuration for Angular CLI? #12635

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fetis opened this issue Oct 18, 2018 · 3 comments
Closed

Is any way to extend or generate configuration for Angular CLI? #12635

fetis opened this issue Oct 18, 2018 · 3 comments

Comments

@fetis
Copy link

fetis commented Oct 18, 2018

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [x] feature request

Command (mark with an x)

- [ ] new
- [x] build
- [x] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

Angular CLI: 6.2.5
Node: 8.9.4
OS: darwin x64
Angular: 6.1.10
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.8.5
@angular-devkit/build-angular     0.8.5
@angular-devkit/build-optimizer   0.8.5
@angular-devkit/build-webpack     0.8.5
@angular-devkit/core              0.8.5
@angular-devkit/schematics        0.8.5
@angular/cdk                      6.4.7
@angular/cli                      6.2.5
@angular/material                 6.4.7
@ngtools/webpack                  6.2.5
@schematics/angular               0.8.5
@schematics/update                0.8.5
rxjs                              6.3.3
typescript                        2.9.2
webpack                           4.20.2

Desired functionality

Let's assume I have 5 language versions. According Angular way I have to create 5 configs for every build. It's a lot of repetition and manual work. Is any way that we can extend configuration or maybe some external tool that can generate it. Will it be possible to do this with schematics?

Yes, it's possible to workaround it somehow with individual parameters for the builder, but this eliminates usefulness angular.json and it would be might clear to provide only configuration parameters. The only way to specify it for serve is via config, so it's very problematic to develop

@alan-agius4
Copy link
Collaborator

Duplicate of #11233

@alan-agius4 alan-agius4 marked this as a duplicate of #11233 Oct 18, 2018
@fetis
Copy link
Author

fetis commented Jun 21, 2019

#10612

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants