-
Notifications
You must be signed in to change notification settings - Fork 12k
Provide option to re-use configurations in angular.json #10987
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
Comments
what about
|
I know how to build these configurations. But as stated above (in my edited post), the current system can easily lead to (for example) 18 different configurations. And most of them share a large part. This leads to a large |
@istiti (in reply to your edit): As I have written in my initial post, So I could write different configurations for But still, I would have a some duplications for the different environment files, where only the environment file (in |
apologize i still not understand, is this what you are speaking about: #10612 Why not putt other options inside build.options like : And if you don't want write i18n specific to language inside angular.json you cant still write them inline in command |
Yeah, #10612 seems to be what I want. Of course I can use The issue is not only with languages, but generally with different build options, environments etc. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I am working on a project with different languages.
This requires that each language is a separate configuration in the
angular.json
, egThis very soon becomes a maintenance nightmare and is definitely not DRY.
And all this only for enabling different languages.
The languages could be configured using
ng build --i18n-locale=en …
, but unfortunatelyng serve
does not provide these options.(Before v6, i18n could be configured using CLI parameters for
ng serve
.)This becomes worse when one wants to have a different set of options for
ng serve
(hashing, disable optimisations, source maps, etc.).Then, one has to add another set of configurations (e.g. 'dev-en', 'dev-fr'), containing only the i18n options.
A third dimension (the first two being 'locale' and 'buildType') are different environment files.
Thus, if my application is deployed in three languages on three different environments, I need 9 different configurations for the build, and up to 9 more for local testing.
Thus, a mechanism to easily mix and match different sets of configurations would be great.
Or am I missing another feature that would solve my problem?
The text was updated successfully, but these errors were encountered: