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 or ng lint, is that all projects are built/linted. But other commands, like ng serve or ng 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 reason ng 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.
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 buildorng lint, is that all projects are built/linted. But other commands, likeng serveorng 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 buildwould 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 buildshould be a single project command.We should have a default project to make sure single-project commands are run over the default one.