2383 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
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
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
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
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
Derek Cormier
94f7ed3b38 build: add missing dependency for tar/repo substitution 2022-02-01 17:17:42 -08:00
Alan Agius
4b9199d97f fix(@angular-devkit/build-angular): ensure to use content hash as filenames hashing mechanism
Previously we used hash which resulted in a unique hash generated for every build even when the contents of the files didn't differ.

More info: https://webpack.js.org/guides/caching/#output-filenames
2022-02-01 17:12:04 -08:00
Renovate Bot
a6bbd60d9f build: update all non-major dependencies 2022-02-01 17:02:50 -08:00
Alan Agius
378ec0bcf0 docs(@angular-devkit/build-angular): add missing period in include description 2022-02-01 17:01:11 -08:00
Alan Agius
1842bd5d53 fix(@angular-devkit/build-angular): add whatwg-url to downlevel exclusion list
Similar to https://github.com/angular/angular-cli/pull/21739, `whatwg-url` seems to suffer from the same issue as https://github.com/angular/angular-cli/issues/21735

```ts
const AsyncIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf(async function* () {}).prototype);
```
2022-02-01 17:00:58 -08:00
Alan Agius
0a1cd584d8 refactor(@angular-devkit/build-angular): remove deprecated showCircularDependencies browser and server builder option
BREAKING CHANGE:

The deprecated `showCircularDependencies` browser and server builder option has been removed. The recommended method to detect circular dependencies in project code is to use either a lint rule or other external tools.
2022-01-31 11:34:58 -08:00
Alan Agius
d23a168b8d feat(@angular-devkit/build-angular): validate file extensions for scripts and styles options
In some cases unexpected files may be provided which can cause to unsupported or broken behaviour.

One such use-case is users can provide TypeScript files as `scripts` input, this would not be processed by the TypeScript compiler, see: https://github.com/angular/angular-cli/issues/17125 and would cause the build to fail with a an unhelpful error message during optimization as the JS optimizers cannot parse TypeScript input.

BREAKING CHANGE:

`browser` and `karma` builders `script` and `styles` options input files extensions are now validated.

Valid extensions for `scripts` are:
- `.js`
- `.cjs`
- `.mjs`
- `.jsx`
- `.cjsx`
- `.mjsx`

Valid extensions for `styles` are:
- `.css`
- `.less`
- `.sass`
- `.scss`
- `.styl`
2022-01-31 11:30:10 -08:00
Alan Agius
7f67dbc1cf fix(@angular-devkit/build-angular): invalid browsers version ranges
This change addresses the `Invalid version: "15.2-15.3"` range error. We previously only handled version ranges for `ios_safari`. Now, we handle such versions for all browsers.

Closes #22606
2022-01-31 09:14:43 -08:00