Skip to content
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

Documentation needed for angular-cli.json #4154

Closed
mmc41 opened this issue Jan 21, 2017 · 8 comments
Closed

Documentation needed for angular-cli.json #4154

mmc41 opened this issue Jan 21, 2017 · 8 comments

Comments

@mmc41
Copy link

mmc41 commented Jan 21, 2017

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) ?

@beeman
Copy link
Contributor

beeman commented Jan 21, 2017

@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:

https://github.com/angular/angular-cli/blob/08bb738af2a3a257e003081caa154f014cb5365b/packages/angular-cli/lib/config/schema.json

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.

@mmc41
Copy link
Author

mmc41 commented Jan 22, 2017

@beeman Thank you very much for your answer. It helps.

@filipesilva
Copy link
Contributor

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 #2711. I'll add the config file item there as well.

@rajatbyte
Copy link

rajatbyte commented Aug 5, 2017

You can refer to their wiki for detail:
https://github.com/angular/angular-cli/wiki/stories

@filipesilva
Copy link
Contributor

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.

@MickL
Copy link

MickL commented Jun 22, 2018

@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!

@filipesilva
Copy link
Contributor

@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.

@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 8, 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

5 participants