181 Commits

Author SHA1 Message Date
Charles Lyding
6eca86b817 refactor(@angular-devkit/build-angular): replace raw-loader with Webpack 5 asset modules
With Webpack 5, the `raw-loader` is no longer needed and its functionality is provided via configuration options within the Webpack configuration via asset modules.  Asset modules (https://webpack.js.org/guides/asset-modules/) provide a built-in way to provide `raw-loader`, `url-loader`, and `file-loader` functionality without additional dependencies.
2021-07-07 15:51:19 -04:00
Renovate Bot
7ee3a80eaf build: update all non-major dependencies 2021-07-07 11:17:09 -04:00
Renovate Bot
2bd859e6d5 build: update all non-major dependencies 2021-07-06 10:21:28 -04:00
Renovate Bot
356f25a1dd build: update all non-major dependencies 2021-07-02 11:49:49 -04:00
Renovate Bot
398f56d545 build: update all non-major dependencies 2021-06-30 11:45:41 +02:00
Renovate Bot
73a0a04c24 build: update all non-major dependencies 2021-06-29 08:46:19 +02:00
Renovate Bot
50b18858fc build: update all non-major dependencies 2021-06-22 17:40:09 +01:00
Renovate Bot
8c4c464f5c build: update all non-major dependencies 2021-06-17 09:43:33 -04:00
Renovate Bot
ddd2c9f671 build: update all non-major dependencies 2021-06-15 07:30:11 -04:00
Charles Lyding
b3d7080147 build: enable esModuleInterop TypeScript option
The `esModuleInterop` option is recommended to be enable by TypeScript and corrects several assumptions TypeScript would otherwise make when importing CommonJS files.
This option change helps ensure compatibility as packages move towards ESM.
Reference: https://www.typescriptlang.org/tsconfig#esModuleInterop
2021-06-13 11:45:55 -04:00
Alan Agius
023d0937c4 perf(@angular-devkit/build-webpack): include only required stats in webpackStats
Until we depend on `webpackStats` in the browser builder we should only included the required stats.

The below are the needed stats;
```
    all: false,
    colors: true,
    hash: true,
    timings: true,
    chunks: true,
    builtAt: true,
    warnings: true,
    errors: true,
    assets: true,
    ids: true,
    entrypoints: true,
```
2021-06-02 18:25:58 +02:00
Alan Agius
494cca6426 build: update Webpack to version 5.38.1
With this change we update to `webpack` to `5.38.1`, this also updates `webpack-sources` to `2.3.0`, The latter is causing OOM errors on our CI, but it in real projects the memory usage only increased by a small fraction. Also, the OOM errors don't manifest themselves when the entire test suit is run locally.

Therefore with this change we also disable sourcemap genertation for most of the browser builds to speed up the tests and reduce memery usage.
2021-05-31 12:49:55 +01:00
Renovate Bot
17fa3c1c2e build: update all non-major dependencies 2021-05-13 06:52:37 +02:00
Alan Agius
e992c9a70b build: update files to be fix eslint header/header failures 2021-05-04 09:59:40 -04:00
Charles Lyding
c1512e4274 build: update files to be eslint compliant
All TypeScript files have been updated to pass the new eslint-based linting checks. eslint compatible disabling comments have also been added in place of the previous tslint comments.
2021-05-03 07:31:02 -04:00
Renovate Bot
88c017582e build: update all non-major dependencies 2021-04-30 17:06:09 -04:00
Renovate Bot
e104fbf009 build: update all non-major dependencies 2021-04-29 12:52:58 -04:00
Charles Lyding
37a06a7c37 build: format all files
All files are now formatted using the ng-dev tools via prettier.
2021-04-28 16:05:49 -07:00
Renovate Bot
6864168cdb build: update webpack to version 5.36.0 2021-04-27 13:52:48 +02:00
Joey Perrott
003854257c build: migrate all file header to use Google LLC rather than Google Inc 2021-04-27 08:35:22 +02:00
Renovate Bot
222b2e72e0 build: update webpack to version 5.35.1 2021-04-24 14:25:31 +02:00
Renovate Bot
f96914f0d3 build: update webpack to version 5.35.0 2021-04-21 12:44:50 -07:00
Renovate Bot
072f3a7009 build: update webpack to version 5.34.0 2021-04-19 20:33:01 +02:00
Alan Agius
076ab0f11f refactor: add correct schema keys
With this change
- We replace `id` with `$id`,  this no longer valid in draft-07.
- Replace all `$schemas` to `http://json-schema.org/draft-07/schema`, this is needed to "pin" the schema to `draft-07`.

More information about `draft-07` can be found https://json-schema.org/draft-07/json-schema-release-notes.html
2021-04-13 10:51:12 -04:00
Alan Agius
1532e32cc2 refactor: clean up webpack 4 code 2021-04-13 10:49:17 -04:00
Renovate Bot
871f9eee77 build: update webpack to version 5.32.0 2021-04-13 10:43:33 -04:00
Charles Lyding
440f57943d build: update webpack to version 5.31.2 2021-04-12 14:08:43 -04:00
Alan Agius
dee6b79489 refactor: remove @types/webpack 2021-04-12 10:02:07 -04:00
Alan Agius
0f4bbb58d4 refactor(@angular-devkit/build-angular): remove webpack 4 checks
These are no longer needed as we don't support Webpack 4 any longer
2021-04-12 10:02:07 -04:00
Charles Lyding
18c9541292 feat(@angular-devkit/build-webpack): support Webpack 5
The `@angular-devkit/build-webpack` package now officially supports Webpack 5.
Webpack 4 support is temporarily maintained while the remainder of the tooling is transitioned.
2021-04-08 09:42:47 -04:00
Charles Lyding
03a00ee2c8 test(@angular-devkit/build-webpack): use Ivy Webpack plugin in unit tests
The ViewEngine-based Webpack compiler has now been removed.
2021-04-05 19:20:56 +02:00
Charles Lyding
4804cb819d refactor(@angular-devkit/build-webpack): move @angular-devkit/core to a dev dependency
The package's `@angular-devkit/core` dependency is only used in non-test code to provide a single type which is no longer needed with the latest architect.
2021-04-02 08:09:29 +02:00
Renovate Bot
c2c9a4169c build: update rxjs to version 6.6.7 2021-03-29 08:20:35 -06:00
Alan Agius
74537a11d4 test(@angular-devkit/build-angular): update tests to reflect the change in ES targets 2021-03-15 20:31:25 +01:00
Charles Lyding
ff32ada86b feat(@angular-devkit/build-webpack): provide output path in builder results
This change adds the output path for the Webpack build directly to the result of the builder. This removes one of the reasons for using the Webpack JSON stats object which is expensive to generate.
2021-03-15 17:45:11 +01:00
Renovate Bot
02db14ae95 build: update rxjs to version 6.6.6 2021-02-25 13:59:51 -05:00
Alan Agius
aedfcc1862 build: update to @types/node version 12 2021-02-08 14:07:24 -05:00
Charles Lyding
0d439a0253 feat(@angular-devkit/build-webpack): add option for webpack stats output presence
The Webpack `Stats.toJson` function can be expensive.  A new programmatic option is now available (`shouldProvideStats`) which can be used to control whether the `webpackStats` property on the builder output object is present.  For backwards compatibility, the option is currently enabled by default.
2020-12-03 07:15:12 -05:00
Charles Lyding
d5348bd191 fix(@angular-devkit/build-webpack): properly shutdown webpack 5 compilation
This change ensures that the compiler instance is used when closing the compiler.
2020-11-18 13:09:00 -05:00
Charles Lyding
e4a3138395 refactor(@angular-devkit/build-webpack): reduce configuration path processing 2020-10-22 15:17:06 -04:00
Charles Lyding
dc3cdae7b9 fix(@angular-devkit/build-webpack): fully close Webpack 5 compiler
The Webpack 5 compiler now contains a close function that should be called when the compiler is finished.
2020-10-22 15:17:06 -04:00
Charles Lyding
1c61ced55c fix(@angular-devkit/build-webpack): avoid deprecation warning with Webpack 5 watch mode
With Webpack 5, passing the watch configuration option into the `webpack` factory function will cause the Webpack compiler to assume it should immediately start watching which requires a callback to be passed as well.  Since the execution of the compiler is handled later in the process, a callback at the compiler creation stage is undesirable and could result in potentially breaking changes to accomplish.
2020-09-30 19:39:47 +02:00
Renovate Bot
8dac017e23 build: update rxjs to version 6.6.3 2020-09-07 14:44:16 +02:00
Charles Lyding
f6d9e858e5 refactor(@angular-devkit/build-webpack): adjust callback type to support webpack 5 2020-09-03 00:20:54 +03:00
Alan Agius
d1adba1347 build: update build_bazel_rules_nodejs to 2.0.2 2020-08-19 16:00:07 +02:00
Charles Lyding
95b3384bb6 refactor(@angular-devkit/build-webpack): cleanup type usage
This change removes some unneeded casts and provides support for building against Webpack 5.  Webpack 5 typings currently do not contain certain types (for example, `Compiler.Handler`).  Webpack 5 also uses `Set` in many places instead of arrays.
2020-08-12 19:27:00 +01:00
Renovate Bot
36668a36a7 build: update rxjs to version 6.6.2 2020-07-31 09:52:10 +02:00
Keen Yee Liau
fa9136a971 build: minor fixes for google3 sync
This commit makes a few minor changes to enable syncing the CLI repository
into google3.

1. mark pkg_tar and pkg_npm as external
2. remove dependencies (marked as comment) which are stale in google3
3. remove TS files generated from JSON schema in BUILD files since these
   files are compiled and added to the g3 codebase at sync time
4. Some minor typing changes
5. Remove duplicate licenses
6. mark dependencies which are not available in g3 as external
7. Immediately type the result of JSON.parse() as required by g3 linter.
   Otherwise, the type defaults to `any`.
2020-07-24 22:52:22 +02:00
Charles Lyding
872bd48bbf test: update generated tests to not use async helper function 2020-07-15 12:36:48 -04:00
Renovate Bot
51a159d1c9 build: update rxjs to version 6.6.0 2020-07-02 11:00:00 +02:00