Skip to content

Support having a default project in v6 #10352

Closed
angular/devkit
#813
@filipesilva

Description

@filipesilva

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.

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions