3099 Commits

Author SHA1 Message Date
Renovate Bot
becd7b6ed9 build: update all non-major dependencies 2022-03-18 11:45:03 -07:00
Renovate Bot
1a36fd94a8 build: update all non-major dependencies 2022-03-16 14:15:50 -04:00
Alan Agius
b8564a638d refactor(@angular-devkit/build-angular): remove deprecated NG_BUILD_CACHE environment variable
BREAKING CHANGE:

`NG_BUILD_CACHE` environment variable has been removed. `cli.cache` in the workspace configuration should be used instead.
2022-03-15 16:30:35 -04:00
Renovate Bot
455c6bc679 build: update dependency cacache to v16 2022-03-15 12:17:23 -04:00
Renovate Bot
9c8b3a16f6 build: update all non-major dependencies 2022-03-15 11:06:45 -04:00
Renovate Bot
e873cd1050 build: update all non-major dependencies 2022-03-14 10:07:40 -04:00
Alan Agius
9ddb220c3d docs: replace app with application 2022-03-14 10:03:06 -04:00
Alan Agius
7fa3e65879 feat(@angular/cli): support TypeScript 4.6.2
BREAKING CHANGE:

Support for TypeScript 4.4 and 4.5 has been removed. Please update to TypeScript 4.6.
2022-03-10 15:36:19 -05:00
Renovate Bot
8673e3d36b build: update all non-major dependencies 2022-03-09 17:43:38 +01:00
Alan Agius
2e0493130a refactor(@angular/cli): replace command line arguments parser
With this change we refactor the Angular CLI and replace the underlying args parser and command builder. We choose to use Yargs as our parser and command builder of choice. The main advantages of Yargs over other command builders are;

- Highly configurable.
- We already use it in other packages such as the compiler-cli/dev-infra etc..
- Commands and options can be added during runtime. This is a requirement that is needed to support architect and schematics commands.
- Outstanding documentation.
- The possibility to parse args without parser configuration (Free form).
- Commands are built lazily based on the arguments passed.

BREAKING CHANGE:

Several changes in the Angular CLI commands and arguments handling.

- `ng help` has been removed in favour of the `—-help` option.
- `ng —-version` has been removed in favour of `ng version` and `ng v`.
- Deprecated camel cased arguments are no longer supported. Ex. using `—-sourceMap` instead of `—-source-map` will result in an error.
- `ng update`, `—-migrate-only` option no longer accepts a string of migration name, instead use `—-migrate-only -—name <migration-name>`.
- `—-help json` help has been removed.

Closes #20976, closes #16614 and closes #16241
2022-03-09 17:18:53 +01:00
Alan Agius
90a5a4c284 build: update @types/node to ^14.15.0
Version 12 is no longer supported.
2022-03-07 19:04:35 +01:00
Renovate Bot
df41f2ba1e build: update all non-major dependencies 2022-03-07 09:25:06 +01:00
Alan Agius
4ebfe03415 feat(@angular/cli): drop support for Node.js 12
Node.js v12 will become EOL on 2022-04-30. As a result, Angular CLI v14 will no longer support Node.js v12.

BREAKING CHANGE:

Support for Node.js v12 has been removed as it will become EOL on 2022-04-30. Please use Node.js v14.15 or later.
2022-03-04 22:38:45 +01:00
Alan Agius
ef753628a6 refactor(@angular-devkit/build-angular): move dev-server specs into a seperate directory 2022-03-04 17:18:54 +01:00
Alan Agius
433b6b4931 docs: remove redundant default empty strings values
(cherry picked from commit 3d928c01c8196b1caba7b373eec870540ecda79e)
2022-03-04 16:58:55 +01:00
Alan Agius
d0407b3367 docs(@angular-devkit/build-angular): update link to Angular Package Format documentation
The APF spec now lives in AIO.
2022-03-04 16:58:55 +01:00
Alan Agius
e28c715972 fix(@angular-devkit/build-angular): ignore css only chunks during naming
Don't name CSS only chunks.

Closes #22769
2022-03-04 16:58:38 +01:00
Renovate Bot
a11c947c73 build: update all non-major dependencies 2022-03-04 09:56:53 +01:00
Renovate Bot
a3c0aa9f86 build: update all non-major dependencies 2022-03-03 18:53:49 +01:00
Alan Agius
ac98f25a31 build: update @types/yargs-parser to 21.0.0 2022-03-03 07:25:24 +01:00
Alan Agius
c7556b62b7 refactor(@angular-devkit/architect-cli): replace parser with yargs-parser
BREAKING CHANGE: camel case arguments are no longer allowed.
2022-03-02 10:28:37 -08:00
Alan Agius
b6de2d28db refactor(@angular-devkit/benchmark): replace parser with yargs-parser 2022-03-02 10:28:37 -08:00
Alan Agius
5330d52aee refactor(@angular-devkit/schematics-cli): replace parser with yargs-parser
BREAKING CHANGE: camel case arguments are no longer allowed.

Closes #13544, closes #12150, closes #22173
2022-03-02 10:28:37 -08:00
Renovate Bot
4df12dc121 build: update all non-major dependencies 2022-03-01 10:39:10 -08:00
Charles Lyding
f0daa8c3bf refactor(@angular-devkit/build-angular): remove unneeded JsonObject type casting
The use of the `@angular-devkit/core` `JsonObject` type is no longer needed to satisfy the type requirements of `@angular-devkit/architect` package builder creation functions.
2022-02-25 13:35:14 -05:00
Charles Lyding
ed67d9a362 refactor(@angular-devkit/build-angular): replace most custom path resolve usages with Node.js builtins
During the build initialization phase, many paths are converted back and forth between multiple normalized forms. These conversions involve potentially expensive string operations. The majority of the custom path `resolve` function from `@angular-devkit/core` usages have now been removed in favor of the Node.js builtin path functions. This change reduces the need to perform additional string manipulation where possible.
2022-02-25 07:46:35 -05:00
Daniele Maltese
b20f34ec17 docs(@angular-devkit/core): typo in string.ts doc
Typo in underscore function code documentation.
2022-02-24 11:15:33 -08:00
Alan Agius
de14293083 fix(@angular-devkit/build-angular): don't rename blocks which have a name
When using the unsupported `webpackChunkName` magic comment we renamed the chunk which in some cases causes a runtime error.

Closes #22525
2022-02-22 16:30:59 -05:00
Renovate Bot
748d3ab2e5 build: update all non-major dependencies 2022-02-22 10:19:13 -05:00
Renovate Bot
e0e4cd6231 build: update dependency sass to v1.49.8 2022-02-18 12:39:58 -05:00
Renovate Bot
3c31c22ba6 build: update all non-major dependencies 2022-02-17 19:02:19 +01:00
Alan Agius
ee95366ea3 build: rollback @babel/generator to 7.17.0
This is a fix to avoid hosting issues which causes bazel test to fail.
2022-02-16 18:51:33 +01:00
Alan Agius
40301a2174 build: revert to @babel/core version 7.17.2
7.17.3 is breaking vendor sourcemaps in windows.

See: https://app.circleci.com/pipelines/github/angular/angular-cli/20692/workflows/9fc4f39e-d2f2-47c3-af01-f3a01c1bf542/jobs/288690

Related to https://github.com/babel/babel/issues/14277
2022-02-16 18:51:33 +01:00
Charles Lyding
51e1521359 build: remove unused development dependency seedrandom
The `seedrandom` dependency is not currently used within the package or project.
As a result, it has been removed to prevent unneeded packages from being installed during development.
2022-02-16 17:19:51 +01:00
Renovate Bot
d79f2b7c1c build: update dependency minimatch to v5 2022-02-16 12:21:12 +01:00
Renovate Bot
65be45b4b2 build: update all non-major dependencies 2022-02-16 12:19:30 +01:00
Renovate Bot
fea9984d8a build: update dependency minimatch to v4 2022-02-14 10:36:36 +01:00
Renovate Bot
3b7eec7717 build: update all non-major dependencies 2022-02-14 10:36:18 +01:00
Renovate Bot
6323e1bbcd build: update all non-major dependencies 2022-02-11 13:03:08 +01:00
Anner Visser
fafbbeab6d fix(@angular-devkit/build-angular): update license-webpack-plugin to 4.0.2
Fixes builds with extractLicenses enabled when using dynamic exports

Fixes #22662
2022-02-10 18:51:20 +01:00
Alan Agius
063acc335a test: change puppeteer imports to use primary entry-point 2022-02-10 14:16:24 +01:00
Alan Agius
561df27e36 test(@angular-devkit/build-angular): disable html karma coverage reporter
Under bazel this causes the below error.

```
Unexpected error while generating coverage report. [Error: EEXIST: file already exists, mkdir
```
2022-02-10 14:16:24 +01:00
Renovate Bot
4b529fe80c build: update all non-major dependencies 2022-02-10 14:16:24 +01:00
Renovate Bot
61898a9a63 build: update all non-major dependencies 2022-02-09 11:15:55 +00:00
Alan Agius
7ce50002a2 fix(@angular-devkit/build-angular): block Karma from starting until build is complete
This change is inspired by https://github.com/karma-runner/karma-chrome-launcher/issues/154#issuecomment-986661937 which blocks Karma from launching the browsers until the compilation is complete.

This is needed especially for large applications when using code-coverage where otherwise the users would have to fine-tune several Karma timeouts such as  `captureTimeout` for various environments.

Closes #22495
2022-02-09 11:15:37 +00:00
Renovate Bot
f8c3ad8d41 build: update all non-major dependencies 2022-02-07 10:55:10 +00:00
Alan Agius
7c92becb19 refactor(@angular-devkit/build-angular): remove workaround for fidelity and performance of babel sourcemaps
With this change we remove the workaround for fidelity and performance of babel sourcemaps as this is no longer needed as Babel now uses `@ampproject/remapping` to merge sourcemaps.

See https://github.com/babel/babel/pull/14209 for more context.
2022-02-07 10:54:14 +00:00
Alan Agius
73746faee9 refactor(@angular/cli): remove support for legacy Angular CLI version 1 configurations
Remove references to legacy Angular CLI version 1 configurations. By now users should have been migrated to use the new configuration.
2022-02-07 10:53:18 +00:00
Renovate Bot
b54254abb4 build: update all non-major dependencies 2022-02-02 11:49:27 -08:00
Alan Agius
bf733d6758 fix(@angular-devkit/core): correctly resolve schema references defaults
Closes #22600
2022-02-02 11:48:32 -08:00