Skip to content

feat(angular): support angular cli v20.0.0-rc.3 #30715

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

Merged
merged 36 commits into from
May 26, 2025
Merged

feat(angular): support angular cli v20.0.0-rc.3 #30715

merged 36 commits into from
May 26, 2025

Conversation

leosvelperez
Copy link
Member

@leosvelperez leosvelperez commented Apr 14, 2025

Add support for the Angular CLI 20.0.0-rc.3 version.

@leosvelperez leosvelperez self-assigned this Apr 14, 2025
Copy link

vercel bot commented Apr 14, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview May 26, 2025 0:43am

Copy link
Contributor

nx-cloud bot commented Apr 14, 2025

View your CI Pipeline Execution ↗ for commit fab9c09.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 34m 9s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 19s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 15s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 3s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 5s View ↗
nx documentation ✅ Succeeded 53s View ↗

☁️ Nx Cloud last updated this comment at 2025-05-26 13:20:57 UTC

Expand the browser support to the widely available Baseline in
ng-packagr executors.
- Allow control of source map sources content for application builds by
adding the `sourcesContent` property to the `sourceMap` option
- Support custom resolution conditions with applications by adding the
`conditions` option
- Fix `server` option type
…h `@angular/platform-browser` (#31209)

Update generators to generate code using `@angular/platform-browser`
instead of `@angular/platform-browser-dynamic` for v20. With this
change, new workspaces/apps won't install
`@angular/platform-browser-dynamic` anymore. The only exception is when
using Jest as the test runner, as the `jest-preset-angular` package
still requires that dependency.
#31213)

Support generating components with `.ng.html` extension as per
angular/angular#59522.
… suffix/type (#31236)

- Update generators to generate directives without the
`.directive`/`Directive` suffix/type by default for Angular v20
- Keep the ability to generate directives with the
`.directive`/`Directive` suffix/type by providing the `type` option for
the `@nx/angular:directive` and `@nx/angular:scam-directive` generators
- When the workspace uses a version lower than v20, the generators will
still generate directives with the `.directive`/`Directive` suffix/type
by default

Note: a migration will be provided in a separate PR so existing
workspaces continue generating directives with the
`.directive`/`Directive` suffix/type.
… suffix/type (#31233)

- Update generators to generate components without the
`.component`/`Component` suffix/type by default for Angular v20
- Keep the ability to generate components with the
`.component`/`Component` suffix/type by providing the `type` option for
the `@nx/angular:component` and `@nx/angular:scam` generators
- When the workspace uses a version lower than v20, the generators will
still generate components with the `.component`/`Component` suffix/type
by default

Note: a migration will be provided in a separate PR so existing
workspaces continue generating components with the
`.component`/`Component` suffix/type.
- Update pipe and scam pipe generators to use a `-` type separator by
default for Angular v20
- Generate pipes with a `.` type separator for Angular versions below
v20
- Add the `typeSeparator` option to allow choosing between both

Note: a migration will be provided in a separate PR so existing
workspaces continue generating pipes with the `.` type separator.
Update Angular packages to their latest prerelease versions.
…31248)

Adds a migration that will set relevant generator defaults to ensure
existing workspaces keep using the previous style guide matching their
existing code base.

It adds generator defaults for both `@nx/angular` and
`@schematics/angular` collections.
#31250)

Filter out some extra files when deciding where to generate the web
worker snippet.
- Update generators to generate module files with a `-` type separator
by default for Angular v20
- Generate module files with a `.` type separator for Angular versions
below v20

Note: a migration was already merged in a separate PR so existing
workspaces continue generating module files with the `.` type separator.
@leosvelperez leosvelperez changed the title feat(angular): support angular v20 feat(angular): support angular cli v20.0.0-rc.3 May 26, 2025
@jaysoo jaysoo merged commit 752d418 into master May 26, 2025
7 checks passed
@jaysoo jaysoo deleted the angular/v20 branch May 26, 2025 14:00
Copy link

github-actions bot commented Jun 1, 2025

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants