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

Operate in non-CLI projects - Feature Request #1464

Closed
kylecordes opened this issue Jul 27, 2016 · 4 comments
Closed

Operate in non-CLI projects - Feature Request #1464

kylecordes opened this issue Jul 27, 2016 · 4 comments
Labels
feature Issue that requests a new feature

Comments

@kylecordes
Copy link

kylecordes commented Jul 27, 2016

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.

@ghost
Copy link

ghost commented Nov 22, 2016

I wanted to use angular-cli as a quick tool to generate components without having to overhaul my project.

@filipesilva
Copy link
Contributor

You can currently do this for the most part. The only config items in angular-cli.json that are truly necessary is the apps[0].root entry, and either main or scripts.

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.

@redevill
Copy link

Would also like to leverage CLI, in a non CLI project. Link to examples is broken :(

@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
feature Issue that requests a new feature
Projects
None yet
Development

No branches or pull requests

3 participants