I can not find any documentation for angular-cli.json and how to properly configure it.
For instance:
a) What is the "addons" and "packages" keys for ?
b) The value of the "apps" key is an array where it appears only first entry is presently used. It would be nice if I can add multiple configuration values and chose which one to use from the CLI interface. Is that possible or planned for the future (as the array type seems to indicate) ?
@mmc41 there is currently no documentation for angular-cli.json that I know of, it might be useful to have it though.
One of the places to read up on what the various components do is in this schema file:
A lot of things are inherited from being based off ember-cli, like addons, packages and the support for multiple apps but all this is currently all not supported.
Please note that addons, packages recently got removed from the default generated app as it raised too much questions #4052
I hope this answers your questions.
@beeman Thank you very much for your answer. It helps.
We do plan on having multiple app support, but currently they are not supported.
I agree we need better docs. That's being tracked in https://github.com/angular/angular-cli/issues/2711. I'll add the config file item there as well.
You can refer to their wiki for detail:
https://github.com/angular/angular-cli/wiki/stories
There's also a dedicated wiki page for .angular-cli.json https://github.com/angular/angular-cli/wiki/angular-cli, and multiple apps https://github.com/angular/angular-cli/wiki/stories-multiple-apps.
@filipesilva Both pages are missing in the wiki list: https://github.com/angular/angular-cli/wiki/stories .
Also Angular CLI config page do not seem up to date. E.g. architect, builder, configurations is totally missing. It took me hours and hours to figure out this builder and browserTarget stuff and which options each browserTarget has. Still there is a lot of stuff not clear.
Please reopen this issue!
@MickL the multiple apps story was replaced by the multiple project story: https://github.com/angular/angular-cli/wiki/stories-multiple-projects
The config information is also there at https://github.com/angular/angular-cli/wiki/angular-workspace. It doesn't go very deep in detail but it is there.
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._
Most helpful comment
There's also a dedicated wiki page for
.angular-cli.jsonhttps://github.com/angular/angular-cli/wiki/angular-cli, and multiple apps https://github.com/angular/angular-cli/wiki/stories-multiple-apps.