3526 Commits

Author SHA1 Message Date
Ash Ramirez
434a3740f0 refactor(@angular/cli): update aio links -> adev links
Updates for all angular.io links to the new angular.dev domain. Additionally, adjustment to new resources where the equivalent does not exist on the new site (e.g. Tour of Heroes tutorial)
2024-06-06 11:12:06 +02:00
Angular Robot
ccdb530c71 build: update all non-major dependencies 2024-06-05 10:41:17 -07:00
Alan Agius
687a6c7eca feat(@angular/build): add --inspect option to the dev-server
This commit introduces an `--inspect` option to the dev-server, enabling debugging of server-side code when using SSR or SSG. This option is equivalent to `node --inspect=[[host:]port]`.

Usage examples:
```
$ ng serve --inspect
$ ng serve --inspect 9999
$ ng serve --inspect localhost:9999
```

Closes: #27773
2024-06-05 17:12:58 +02:00
Angular Robot
25644e90c0 build: update all non-major dependencies 2024-06-05 12:12:24 +02:00
Angular Robot
dc4231f33d build: update all non-major dependencies 2024-06-05 12:12:07 +02:00
Angular Robot
2e9fe6a22a build: update all non-major dependencies 2024-06-03 10:50:03 -07:00
Charles Lyding
22e05dcb4a fix(@schematics/angular): generate new projects with ECMAScript standard class field behavior
Newly generated projects will now use ECMAScript standard class field behavior by default.
If the legacy TypeScript behavior is required for a new project the `useDefineForClassFields`
TypeScript option can be set to `false` within the application's `tsconfig`. This should
be uncommon, and if needed, it is recommended to adjust code to match standard behavior where
possible.
2024-05-31 15:24:59 -04:00
Angular Robot
84ae53280c build: update all non-major dependencies 2024-05-31 13:30:34 +02:00
Angular Robot
364d81ecd3 build: update all non-major dependencies 2024-05-30 15:09:51 +02:00
Kristiyan Kostadinov
144f2bfcb2 build: update to TypeScript 5.5
Updates the repo to TypeScript 5.5. Since it's still in beta, we're only using 5.5 for our own build, but not for user projects.
2024-05-30 11:53:15 +02:00
Alan Agius
bc735c948f build: update framework packages to 18.1.0-next.0 2024-05-29 19:44:02 +02:00
Angular Robot
bec677c9c2 build: update all non-major dependencies 2024-05-29 11:55:10 +02:00
David LJ
767652bdcc docs: update blog, analytics, hydration links aio->adev 2024-05-27 08:31:53 +02:00
David LJ
89fbd0f9a2 docs: update build guide links aio->adev 2024-05-27 08:31:53 +02:00
David LJ
d24b087eff docs: update browser support links aio->adev 2024-05-27 08:31:53 +02:00
David LJ
2c2c11323a docs: update workspace config links aio->adev 2024-05-27 08:31:53 +02:00
Angular Robot
84cb277470 build: update all non-major dependencies 2024-05-27 08:09:05 +02:00
Angular Robot
c7205ea182 build: update all non-major dependencies 2024-05-22 17:56:52 -04:00
Angular Robot
d2472443c7 build: update angular 2024-05-22 17:56:24 -04:00
Angular Robot
776e63d3c9 build: update all non-major dependencies 2024-05-20 09:44:20 -04:00
Angular Robot
699d4fca25 build: update all non-major dependencies 2024-05-17 11:07:24 -04:00
Angular Robot
0154af9afa build: update all non-major dependencies 2024-05-14 14:29:10 +02:00
Charles Lyding
d74258a930 refactor(@angular/build): fix linting errors for updated Sass processing 2024-05-14 11:28:31 +02:00
Alan Agius
9ce8fefc5a refactor: replace angular.io link with angular.dev
This replaces https://angular.io/guide/build#configuring-commonjs-dependencies with https://angular.dev/tools/cli/build#configuring-commonjs-dependencies
2024-05-13 14:53:12 -07:00
Angular Robot
8b97d80aaa build: update all non-major dependencies 2024-05-08 08:54:52 +02:00
Angular Robot
6953b4bb13 build: update all non-major dependencies 2024-05-07 12:26:51 +02:00
Angular Robot
0fe5066ce7 build: update all non-major dependencies 2024-05-02 12:01:15 -04:00
Alan Agius
59b69f5855 fix(@angular/build): add a maximum rendering timeout for SSG
There might be cases were currently, the render application promise does not resolve because the application never becomes stable in most cases this is due to errors, this causes the worker to never exit and the build to keep running until it's manually terminated.

With this change, we add a maximum rendering timeout of 30seconds for each page.

Closes #27565
2024-05-02 16:56:43 +02:00
Alan Agius
abf18a64e3 build: update all non-major dependencies
(cherry picked from commit 807718f133489e8938a909bbb2204df6918d2c7e)
2024-05-02 10:19:09 -04:00
Charles Lyding
df82da5f47 build: replace @angular/build version with archive in local builds
When creating a local development build of the repository via `yarn build --local`,
the package version for `@angular/build` within `@angular-devkit/build-angular`
will now correctly be replaced with the path to the locally built archive of
`@angular/build`.
2024-05-01 15:32:51 -04:00
Angular Robot
4e923fa9cb build: update all non-major dependencies 2024-04-30 10:15:41 -04:00
Charles Lyding
4d679a8e01 refactor(@angular-devkit/build-angular): extract-18n buildTarget option is no longer required
The `extract-i18n` option schema has been updated to reflect that the
`buildTarget` option is not required. The option value will default
to the `build` target of the containing project. This removes the need
for an additional option and character count within the `angular.json`
file for the project. This change also applies to the deprecated
`browserTarget` option.
2024-04-29 12:10:39 -04:00
Angular Robot
1d7531b88f build: update all non-major dependencies 2024-04-29 06:54:11 -04:00
Alan Agius
29dd052ab1 fix(@angular-devkit/build-angular): disable Vite prebundling when script optimizations are enabled
This change ensures that `ngDevMode` is replaced in node packages, aligning the behavior of the Vite server more closely with a production environment.
2024-04-26 19:49:52 +02:00
Angular Robot
7cedcc815c build: update all non-major dependencies 2024-04-23 19:32:52 +02:00
Alan Agius
83d360d0e5 build: remove bootstrap and jquery from dev dependencies 2024-04-23 18:29:26 +02:00
Charles Lyding
4ffe07aa24 feat(@angular-devkit/build-angular): move Vite-based dev-server for application builder to new build system package
With the `application` builder already within the new `@angular/build` package,
the Vite-based `dev-server` builder is now also contained within this package.
Only the Vite-based aspects of the `dev-server` have been moved and only the
support for the `application` builder. The compatibility builder `browser-esbuild`
is not supported with `@angular/build:dev-server`. The existing `dev-server` builder
found within `@angular-devkit/build-angular` should continue to be used for both the
Webpack-based `browser` builder and the esbuild-based compatibility `browser-esbuild`
builder. To maintain backwards compatibility, the existing `@angular-devkit/build-angular:dev-server`
builder continues to support builders it has previously.

No change to existing applications is required.
2024-04-23 07:27:26 -04:00
Charles Lyding
c2a8bf13db refactor(@angular-devkit/build-angular): move Vite dev-server @angular/build imports into separate file
To reduce the complexity of the move of the Vite-based dev-server builder
into the `@angular/build` package. The soon to be self-referencing imports
are now located in a separate file. Self-referencing imports are not well
supported inside the repository currently so this move allows the imports
to be adjusted in one location.
2024-04-22 09:06:33 -04:00
Charles Lyding
2391c878ab refactor(@angular-devkit/build-angular): remove Webpack-specific index option helper from Vite-based dev-server
The index output option helper from within the Webpack-based build system has been removed
from the Vite-based development server code to support separation of the builder. This
information will eventually be passed via the build system results and the direct option
access can then be removed completely.
2024-04-22 09:06:33 -04:00
Charles Lyding
1cebc3a5e9 refactor(@angular-devkit/build-angular): use dev-server implementation neutral builder output result interface
The dev-server builder will now only provide an interface with typed fields
for the combined set of common elements for the Webpack and Vite development
server implementations. Any additional builder specific runtime fields will
still be present and accessible.
2024-04-22 09:06:33 -04:00
Charles Lyding
810d213e18 feat(@angular/build): introduce new official build system package
The `@angular/build` package has been introduced to house the esbuild/Vite-based
build system that was newly introduced as stable in v17. The existing
`@angular-devkit/build-angular` package will continue to contain the Webpack-based
build system and to ensure backwards compatibility it will also provide aliases
for the esbuild/Vite-based build system. The changes here are the first stage
of the builder transition and moves the `application` builder into the new package.
The application builder can now be accessed when this package is installed directly
via `@angular/build:application`.

No changes are required for existing projects.
2024-04-18 17:24:23 +02:00
Charles Lyding
2ef958a7ce refactor(@angular-devkit/build-angular): remove @ngtools/webpack deep imports from application builder
The application builder previously used several TypeScript compiler host augmentation helper functions
and the bootstrap replacement transformer from the `@ngtools/webpack` package. To remove reliance on
Webpack-specific functionality. The subset of helpers have been copied into the application builder
itself. Some of the helpers will eventually be removed completely pending future updates to the
Angular compiler itself.
2024-04-18 17:24:23 +02:00
Alan Agius
87ba0e5848 refactor: replace usage of deprecated mapTo with map 2024-04-18 16:40:36 +02:00
Alan Agius
a189f17a12 build: update ng-packagr to 18.0.0-next.3 2024-04-18 16:40:36 +02:00
Alan Agius
53c319aaa9 feat(@angular-devkit/build-angular): add support for the poll option in the library builder
This commit adds support for polling when using the ng-packagr builder

Closes #27420
2024-04-18 16:40:36 +02:00
Alan Agius
d1c632af9a feat(@angular-devkit/build-angular): support native async/await when app is zoneless
This commit updates the esbuild based builders to emit native async/await when `zone.js` is not added as a polyfill.

Closes #22191
2024-04-18 14:34:09 +02:00
Angular Robot
8843188080 build: update all non-major dependencies 2024-04-17 20:01:54 +02:00
Alan Agius
d51cb598a7 feat(@angular-devkit/build-angular): inject event-dispatch in SSR HTML page
This commit add support in the Angular CLI to inject the event-dispatcher script when using the application builder.
2024-04-17 19:29:36 +02:00
Alan Agius
1c3ff61db8 fix(@angular-devkit/build-angular): address Unable to deserialize cloned data issue with Yarn PnP
Occasionally, when using Yarn PnP, an error message `Unable to deserialize cloned data` arises during the optimization phase of JavaScript bundles. This update rectifies the problem.

See: http://b/335203823
2024-04-17 15:41:29 +02:00
Charles Lyding
631303664e test: move builder testing infrastructure to separate bazel target module
The builder testing infrastructure and harness has been moved out of the
`@angular-devkit/build-angular` package and into a separate bazel only
module.  This allows the testing code to be shared with other packages
within the repository. It also removes test only code from within
the package that is not specific any of the included builders.
2024-04-17 10:23:50 +02:00