refactor(@angular/cli): provide default serve target for applications #28011
+49
−8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
serve
command will now use a default project target and builder name if the target entry is not explicitly defined. This allows the removal of additional configuration from anangular.json
file. If the target is already present than it will take priority over any default builder behavior. The default logic will use the appropriate development server builder for officially supported packages (@angular/build
/@angular-devkit/build-angular
). Thedev-server
builder from these packages will currently assume adevelopment
configuration is present within thebuild
target. The default behavior may be expanded in the future to support more arbitrarybuild
target configurations. If there is third-party package usage within thebuild
target, the CLI will attempt to discover adev-server
builder within the same package used by thebuild
target. If none is found, no default will be added and theserve
command will issue an error when no explicit target is present.