26 Commits

Author SHA1 Message Date
Alan Agius
e9684b2fd2 build: update all non-major dependencies 2022-01-24 12:54:31 +01:00
Alan Agius
6153530220 fix(@angular-devkit/build-webpack): emit result when webpack is closed
With this change we emit the compilation result when the compilation is closed, when the compilation is not in watch mode.

This is needed so that when persistent caching is enabled and architect promise API is used (`.result`) instead of `.output` we wait for the cache to be written prior to terminating the process/resolving the result promise.

The `result` API currently, takes the first emit 4f9df9f4a4/packages/angular_devkit/architect/src/schedule-by-name.ts (L118-L120)

Closes #21419
2021-07-27 12:15:02 -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
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
Joey Perrott
003854257c build: migrate all file header to use Google LLC rather than Google Inc 2021-04-27 08:35:22 +02: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
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
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
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
Charles Lyding
f6d9e858e5 refactor(@angular-devkit/build-webpack): adjust callback type to support webpack 5 2020-09-03 00:20:54 +03: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
Charles Lyding
9f5c0f3c51 refactor(@angular-devkit/build-webpack): allow a webpack factory to be used directly 2019-11-15 10:41:01 -08:00
Alan Agius
a1cf5f5b1e fix(@angular-devkit/build-webpack): proxy config with windows authentication
It seems that this is causing issues with proxy config and IIS with Windows authentication, for now we remove the `ArchitectPlugin` since it's not being used.

Fixes #14595
2019-10-14 13:41:34 -07:00
Charles Lyding
1930bd5845 fix(@angular-devkit/build-webpack): provide more complete compilation stats 2019-09-26 10:00:35 -07:00
Charles Lyding
87b04063dd refactor(@angular-devkit/build-webpack): cleanup architect imports 2019-04-03 16:28:25 +02:00
Charles Lyding
bf0fcf39e0 refactor(@angular-devkit/build-webpack): cleanup stable architect API file names 2019-04-02 04:50:08 -07:00
Charles Lyding
1cca4589d1 refactor(@angular-devkit/build-webpack): remove experimental architect builders 2019-04-02 04:50:08 -07:00
Hans Larsen
f1edc089ed refactor: remove build-webpack schema.d.ts and use quicktype 2019-02-27 10:11:22 -08:00
Hans Larsen
78f5c287d8 refactor(@angular-devkit/build-angular): clean up some interfaces and schemas
Remove the manually maintained schema.d.ts from the browser builder, and use
the Schema JSON file to generate it. This had a lot of repercussions around
the whole build-angular code base and the different interfaces that were
manually kept.
2019-02-21 16:20:54 -08:00
ManfredSteyer
b2c9e46fa9 feat(@angular-devkit/build-webpack): add factory for creating webpack compiler 2019-01-08 13:49:10 -08:00
Hans Larsen
44086c60ff build: move devkit repo back to angular-cli 2018-06-05 18:50:06 -07:00