3747 Commits

Author SHA1 Message Date
Angular Robot
169daf1a2e build: update dependency piscina to v4.6.1 2024-06-26 08:31:48 -07:00
Charles Lyding
d56c8de284 refactor: minor code cleanup to improve code health
Several smaller code changes to improve type information and remove now
unneeded code structures based on improvements to both Node.js, TypeScript,
and underlying dependencies.
2024-06-25 16:57:16 -04:00
Charles Lyding
fa9bce0e9a test: enable @typescript-eslint/no-unnecessary-type-assertion lint rule
The `@typescript-eslint/no-unnecessary-type-assertion` rule is now enabled and all failures
have been addressed within the code.
2024-06-25 16:57:03 -04:00
Charles Lyding
741cf7fe1e test: enable @typescript-eslint/await-thenable lint rule
The `@typescript-eslint/await-thenable` rule is now enabled and all failures
have been addressed within the code.
2024-06-25 16:57:03 -04:00
Alan Agius
0d2d9860fd build: remove @types/browserslist
`browserslist` now ships it's own typings
2024-06-25 21:20:26 +02:00
Alan Agius
aebfde28c7 build: update all non-major dependencies
Closes #27881
2024-06-25 20:53:49 +02:00
Charles Lyding
17e168379e build: additional fixes for tsetse rule compliance
Due to bazel rules_nodejs caching, several additional `JSON.parse` usages were not
caught in the first set of fixes. These have now been addressed. Also,
the `must-use-promises` rule has been patched to match the behavior of the
`@typescript-eslint/no-floating-promises` for consistency.
The bazel option `suppressTsconfigOverrideWarnings` was also removed from the
`tsconfig` as it is a no-op and was previously used for now removed feature.
Test files are currently excluded from the `JSON.parse` rule to avoid large
changes to test code.
2024-06-25 11:17:33 -04:00
Charles Lyding
39f946a848 build: enabled isolated modules TypeScript option
The TypeScript `isolatedModules` option is now enabled for all TypeScript
code within the repository. As a result, all packages will now be built
with the option enabled. This does not affect projects created with the CLI
and is only related to the building of the actual Angular CLI code.
The `isolatedModules` option ensures that code can be emitted without the
TypeScript typechecker and allows tools other than TypeScript to potentially
be used. Code was updated to correct all errors after the option was enabled.
Additionally, some early code fixes were done to add function and accessor
return types to prepare for future `isolatedDeclarations` usage. More changes
would be needed to consider turning on `isolatedDeclarations`, however.
2024-06-23 15:34:49 +02:00
Angular Robot
a442f8c3a3 build: update all non-major dependencies 2024-06-20 09:15:40 +02:00
Charles Lyding
dd07049277 fix(@angular/build): use Node.js available parallelism for default worker count
The Node.js `os.availableParallelism` API now provides more accurate values
when used within containers such as many CI environments. This provides a
better default when using resource limited CI setups. The value is still
set to a maximum default of four. However, the `NG_BUILD_MAX_WORKERS`
environment variable can be used to set the value to an explicit value
if required.
2024-06-18 16:23:51 +02:00
Angular Robot
a1f60f93c4 build: update all non-major dependencies 2024-06-18 09:41:37 +02:00
Charles Lyding
fb2981dc4e fix(@angular-devkit/build-angular): use istanbul-lib-instrument directly for karma code coverage
The `istanbul-lib-instrument` package provides the required functionality needed
to instrument code for test coverage within the context of the Angular CLI.
Since the build pipeline already contains a customized babel preset, this package
can be integrated directly into the pipeline.
This reduces the number of dependencies required for `@angular-devkit/build-angular`
including the deprecated `inflight` package.
2024-06-17 13:58:42 +02:00
Alan Agius
1039a6425f build: update all non-major dependencies 2024-06-14 18:25:29 +02:00
Alan Agius
667fb8756f build: update copy-webpack-plugin to 12.0.2 2024-06-13 10:10:34 -04:00
Angular Robot
a4d81759b8 build: update all non-major dependencies 2024-06-13 08:15:35 -04:00
Alan Agius
34f2a1278f build: update open to version 10
Closes #27825
2024-06-12 16:25:51 +02:00
Alan Agius
4b95aece8a refactor: replace custom promise-based setTimeout with native Node.js setTimeout
In this commit, the custom implementation of a promise-based setTimeout function has been replaced with the native Node.js setTimeout function, which now returns a promise.
2024-06-11 12:51:16 +02:00
Charles Lyding
ce850da171 build: update yarn version to v4.2.2 2024-06-10 18:17:03 -04:00
Angular Robot
26c36a119d build: update all non-major dependencies 2024-06-10 11:32:16 -04:00
Charles Lyding
d6aa216553 refactor(@angular-devkit/build-angular): remove unused inquirer dependency
The functionality that previously used `inquirer` was moved to the `@angular/build` package.
2024-06-07 08:58:25 -04:00
Angular Robot
ee9d4042fa build: update all non-major dependencies 2024-06-06 17:07:21 -07:00
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