24 Commits

Author SHA1 Message Date
Alan Agius
f67c612393 fix(@angular-devkit/build-angular): ERR_SSL_PROTOCOL_ERROR when using HTTPS reverse proxy
With this change we set the publicHost to `0.0.0.0:0`, when it's not provided.

This solved issues where previously the publicHost needed to be specified directly to get around `ERR_SSL_PROTOCOL_ERROR` error when proxing https -> http.

NB: this was also the behaviour in version 10 c252968225/packages/angular_devkit/build_angular/src/dev-server/index.ts (L170)

Closes #19403
2020-11-17 15:40:43 -05:00
Alan Agius
7253802d74 refactor(@angular-devkit/build-angular): change hmr-accept to TypeScript
For the time being we cannot use the DOM lib because it conflicts with Node, In future when we remove `yarn admin build` we should have this as a seperate compilation unit.
2020-10-14 21:57:47 +03:00
Alan Agius
c345ec369f test(@angular-devkit/build-angular): test HMR using puppeteer 2020-10-14 21:57:47 +03:00
Alan Agius
2e6ad9e847 build: add @types/cacache 2020-10-14 21:57:29 +03:00
Alan Agius
409247e9c0 refactor(@angular-devkit/build-angular): use parse5-html-rewriting-stream instead of parse5-htmlparser2-tree-adapter
Closes: #17019
2020-10-05 11:31:49 -04:00
Alan Agius
ce17094e0e refactor(@angular-devkit/build-angular): lazy require speed-measure-webpack-plugin 2020-09-23 11:22:58 -05:00
Alan Agius
5996896076 feat(@angular-devkit/build-angular): improve build stats output format
With this change we also remove sourcemaps from build info to align with Webpack 5 output.
2020-09-18 14:52:38 -05:00
Alan Agius
13b17baebe refactor(@angular-devkit/build-angular): add spinners for localize and downlevelling 2020-09-16 10:38:58 -04:00
Alan Agius
622d08447d refactor: use ansi-colors instead of removed terminal utils 2020-09-10 20:19:33 +02:00
Keen Yee Liau
8995e49f0b feat(@angular-devkit/build-angular): Switch to karma-coverage
This commit switches coverage tooling from karma-coverage-istanbul-reporter
to karma-coverage since it's better supported.

Closes #17757
2020-09-06 12:22:25 +02:00
Charles Lyding
156e31778f feat(@angular-devkit/build-angular): ask to use a new port if in use
The dev-server builder will now ask the user if an available port can be used when a specified port is already in use.  If the user answers in the affirmative, an available port will be used instead.  Otherwise, the serve operation will fail.  If the terminal is not interactive (for example, CI), the serve operation will fail directly in the event of an already in use port.
2020-08-28 08:52:40 +01:00
Alan Agius
5a43e40656 build: update less-loader to version 7.0.0 2020-08-27 21:52:36 +01:00
Alan Agius
d1adba1347 build: update build_bazel_rules_nodejs to 2.0.2 2020-08-19 16:00:07 +02:00
Alan Agius
e5b29ac756 feat(@angular-devkit/build-angular): add ng-packagr builder in @angular-devkit/build-angular
With this change we add the `ng-packagr` builder in `@angular-devkit/build-angular`
2020-08-14 15:38:12 +02:00
Alan Agius
a0804ebcdd refactor(@angular-devkit/build-angular): use parse5 version 6 to augment index 2020-07-28 21:23:32 +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
1149b1aa97 revert: fix(@angular-devkit/build-angular): switch to license-checker-webpack-plugin
Partial revert of bd582591dc49569269c63910351fdb4026058842 (squashed commit)
2020-05-20 10:00:01 +01:00
Charles Lyding
a0312c6c09 refactor(@angular-devkit/build-angular): support ES5 target with ES2015 APF 2020-05-06 11:41:38 -07:00
Alan Agius
e2eed2c8f8 build: update several packages 2020-05-04 10:51:49 -07:00
Filipe Silva
b51cf8d1e6 build: use ts_library macro with common defaults 2020-04-30 15:12:46 -07:00
Greg Magolan
8ef940b205 build: use no-remote-exec tag so test still runs in sandbox
Turns out there is a linker bug with no sandbox.
2020-04-30 15:12:46 -07:00
Greg Magolan
52d7b012d3 build: run tests depending on webdriver-manager locally 2020-04-30 15:12:46 -07:00
Filipe Silva
9a28114f6b test: remove non-bazel test setup 2020-04-30 15:12:46 -07:00
Filipe Silva
ef7a07050a test(@angular-devkit/build-angular): build and test with Bazel 2020-04-30 15:12:46 -07:00