-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Operate in non-CLI projects - Feature Request #1464
Comments
I wanted to use angular-cli as a quick tool to generate components without having to overhaul my project. |
You can currently do this for the most part. The only config items in This is supported and tested for, but not documented as it's fairly low prio atm. See https://github.com/angular/angular-cli/blob/master/tests/e2e/tests/misc/minimal-config.ts for examples. |
Would also like to leverage CLI, in a non CLI project. Link to examples is broken :( |
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. |
This is a feature request. As an alternative to the message "You have to be inside an angular-cli project", instead CLI could offer a subset of it capabilities even in non-CLI projects.
To do this, CLI would note the absence of CLI configuration files, print message about this, then make assumptions based on defaults and on what files/directories are present.
With these assumptions, CLI could provide a useful subset of its full feature set. It could generate components and most other types. Skip lacing up any aspect which can't be done without full CLI config.
Over time it might be possible to do even more than generate, some other features may be possible in non-CLI projects also.
In addition to offering value to non-CLI projects, this feature could also encourage CLI adoption. It would provide an easy on-ramp: any existing project can start using CLI immediately, but with each use, CLI can print messages about extra things it could have done, if the project was a full CLI project.
The text was updated successfully, but these errors were encountered: