-
Notifications
You must be signed in to change notification settings - Fork 12k
Support having a default project in v6 #10352
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
Hello @filipesilva, struggling with ng generate comands I came across this issue and would like to add my thoughts since it's all about the same thing. Is it possible to standardize and simplify the general process of selecting the application as part of this change? Given an example portal project that consists of a I would prefer not to have to wrap the ng generate commands with my own npm scripts just because they are too complex. But currently selecting the app/lib to generate components into is not intuitive enough. The structure of the portal I'm building is available as example project here. To generate a component in the shared
So far so good. But lets try to create a component in one of the apps.
There is not even a
Same result, not happy with hat. How I imagine an ideal solution (for multiple apps and multiple libraries)
So how about bringing the project name forward? Yarn is doing something similar with providing the npm scripts directly without additional So ideally I'd would want to write something like this:
Folder Structure: (click to expand)
Ng Version (click to expand)
|
@Brocco could you comment on @CanKattwinkel's post? The default project I am proposing in this issue is useful for generators with no targeted project but I don't think it would help for targeting specific projects. |
Partially address angular/angular-cli#10352
Still not fixed for |
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. |
Angular CLI 6 supports having multiple projects, and comes with two projects by default (the Angular app and the E2E suite).
The user expectectation for some commands, like
ng build
orng lint
, is that all projects are built/linted. But other commands, likeng serve
orng generate
, are expected to target a single project.Currently we don't support project targets depending on each other either. If you have a library and a project, running
ng build
would built both in no specific order. If your app depends on your library, this can lead to app compilation failing or using an old library build. For this reasonng build
should be a single project command.We should have a default project to make sure single-project commands are run over the default one.
The text was updated successfully, but these errors were encountered: