Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

refactor(@angular/cli): provide default serve target for applications#28011

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
clydin wants to merge3 commits intoangular:main
base:main
Choose a base branch
Loading
fromclydin:cli/default-workspace-targets

Conversation

clydin
Copy link
Member

Theserve 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.

sheikalthaf, garrettld, zygarios, and ThomOrlo reacted with thumbs up emojizygarios reacted with hooray emoji
@clydinclydin added the target: minorThis PR is targeted for the next minor release labelJul 9, 2024
@clydinclydinforce-pushed thecli/default-workspace-targets branch fromb63e0df to7701ee6CompareJuly 9, 2024 17:06
@clydinclydin marked this pull request as ready for reviewJuly 10, 2024 14:42
@clydinclydin marked this pull request as draftJuly 10, 2024 17:32
@zygarios
Copy link

What about this PR? It's cool, and i hope it will be released with 19 :(

The `serve` command will now use a default project target and buildername if the target entry is not explicitly defined. This allows the removalof additional configuration from an `angular.json` file. If the target isalready present than it will take priority over any default builder behavior.The default logic will use the appropriate development server builder forofficially supported packages (`@angular/build`/`@angular-devkit/build-angular`).The `dev-server` builder from these packages will currently assume a `development`configuration is present within the `build` target. The default behavior maybe expanded in the future to support more arbitrary `build` target configurations.If there is third-party package usage within the `build` target, the CLIwill attempt to discover a `dev-server` builder within the same package usedby the `build` target. If none is found, no default will be added and the`serve` command will issue an error when no explicit target is present.
…on to be optionalThe development server (`dev-server`) within `@angular/build` no longerrequires a `buildTarget` option to be specified. If not present, the valuewill default to the current project's 'build' target. The configuration usedfor the build target will be the same as the development server configurationif specified or, if not specified, it will default to `development`.
…ildTarget` option to be optionalThe development server (`dev-server`) within `@angular-devkit/build-angular` no longerrequires a `buildTarget` option to be specified. If not present, the valuewill default to the current project's 'build' target. The configuration usedfor the build target will be the same as the development server configurationif specified or, if not specified, it will default to `development`.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@clydin@zygarios

[8]ページ先頭

©2009-2025 Movatter.jp