1637 Commits

Author SHA1 Message Date
Alan Agius
1df8a3d09d fix(@angular-devkit/build-angular): correctly resolve symlinked global styles entrypoints
With this change we resolve the global stylesheet entrypoint path to use the realpath instead of the symlink path.

Fixes #3500
2021-01-06 12:01:45 +00:00
Renovate Bot
4fe3065888 build: update rollup to version 2.36.0 2021-01-06 11:57:06 +00:00
Renovate Bot
9687a9dd35 build: update autoprefixer to version 10.2.0 2021-01-06 11:56:50 +00:00
Charles Lyding
683b0c0f38 test(@angular-devkit/build-angular): add browser builder styles option tests
This change adds expanded unit tests for the browser builder's `styles` option using the builder test harness.
2021-01-06 11:55:51 +00:00
Charles Lyding
ca5f076534 test(@angular-devkit/build-angular): add browser builder statsJson option tests
This change adds expanded unit tests for the browser builder's `statsJson` option using the builder test harness.
2021-01-06 11:51:48 +00:00
Alan Agius
cfb368408b fix(@angular-devkit/build-angular): don't downlevel web-animations-js
This library is minified and it causes Babel to consume a lot of resources when trying to downlevel.

Closes #19660
2021-01-05 11:29:34 +00:00
Charles Lyding
3aa8bb1b3f test(@angular-devkit/build-angular): add initial browser builder watch option tests 2021-01-05 11:02:57 +00:00
Charles Lyding
bec3bec3b2 test(@angular-devkit/build-angular): integrate custom file watching into harness
This change integrates the recently introduced internal custom file watching support into the builder test harness.  This allows the test harness to directly trigger file changes and allows more comprehensive test isolation for builder watch scenarios.
2021-01-05 11:02:57 +00:00
Charles Lyding
11bbe7c45f refactor(@angular-devkit/build-angular): add internal custom file watcher support
This change adds internal support for providing a custom file watching mechanism to the browser (and associated) builders.  The support integrates and overrides the Webpack watch system when enabled.  This is currently intended to support builder unit testing use cases.
2021-01-05 11:02:57 +00:00
Charles Lyding
1194b9bced test(@angular-devkit/build-angular): add browser builder scripts shorthand option tests
This change adds expanded unit tests for the browser builder's `scripts` shorthand option using the builder test harness.
2021-01-05 11:02:30 +00:00
Charles Lyding
f4dfc0b954 test(@angular-devkit/build-angular): simplify usage of content/size Jasmine helpers
This change removes the need to perform an existence check prior to expecting a file's content or size in harness based builder tests.
2021-01-05 11:02:30 +00:00
Charles Lyding
97aa1fb7cc test(@angular-devkit/build-angular): add browser builder assets option tests
This change adds expanded unit tests for the browser builder's `assets` option using the builder test harness.
2021-01-04 11:52:57 +01:00
Renovate Bot
6985c3e143 build: update core-js to version 3.8.2 2021-01-04 11:40:37 +01:00
Charles Lyding
a5c93408c6 test(@angular-devkit/build-angular): add browser builder tsConfig option tests
This change adds expanded unit tests for the browser builder's `tsConfig` option using the builder test harness.
2021-01-04 11:37:39 +01:00
Charles Lyding
f4998f35a2 test(@angular-devkit/build-angular): add browser builder polyfills option tests
This change adds expanded unit tests for the browser builder's `polyfills` option using the builder test harness.
2021-01-04 11:36:38 +01:00
Renovate Bot
f74fcb6ffe build: update postcss to version 8.2.2 2020-12-30 18:25:35 +01:00
Renovate Bot
1d73e29504 build: update sass to version 1.32.0 2020-12-30 18:25:17 +01:00
Renovate Bot
d812c014fc build: update webpack-dev-server to version 3.11.1 2020-12-30 18:24:59 +01:00
Renovate Bot
36e08ffcd6 build: update ora to version 5.2.0 2020-12-29 12:13:39 +01:00
Renovate Bot
8a06b2e846 build: update less-loader to version 7.2.1 2020-12-29 12:12:57 +01:00
Renovate Bot
1aeb755855 build: update license-webpack-plugin to version 2.3.9 2020-12-26 19:44:31 +01:00
Renovate Bot
4c7ec6675d build: update license-webpack-plugin to version 2.3.7 2020-12-24 19:59:16 +01:00
Renovate Bot
c5322a369a build: update less-loader to version 7.2.0 2020-12-24 19:16:18 +01:00
Renovate Bot
b9d2bc220a build: update webpack-merge to version 5.7.3 2020-12-23 08:26:17 +01:00
Alan Agius
7cd06b7f23 docs: update optimization and sourceMap descriptions with new links
https://next.angular.io/guide/workspace-config#source-map-configuration
https://next.angular.io/guide/workspace-config#optimization-configuration
2020-12-23 08:25:53 +01:00
Alan Agius
a3b676f623 docs: add default value for karma watch option 2020-12-23 08:25:19 +01:00
Renovate Bot
ef304a794b build: update less to version 4.0.0 2020-12-19 10:32:49 +01:00
Charles Lyding
faf7b26ef9 test(@angular-devkit/build-angular): add browser builder option test for main 2020-12-18 10:37:26 +01:00
Charles Lyding
bfd91096be test(@angular-devkit/build-angular): add harness file jasmine helpers
This change adds an `expectFile` jasmine helper function that reduces the amount of code necessary to check a file's existence, size, or content.  Additional contextual information is also displayed when an expectation fails.
2020-12-18 10:37:26 +01:00
Charles Lyding
97bfd46b67 test(@angular-devkit/build-angular): use harness for browser builder works test
This converts the 'works' spec to use the new builder harness for testing. The change also provides for a before/after comparison of an existing test.
2020-12-18 10:37:26 +01:00
Charles Lyding
bcac38331e test(@angular-devkit/build-angular): add builder test harness 2020-12-18 10:37:26 +01:00
Charles Lyding
0e5dab45ef fix(@angular-devkit/build-angular): use URL rewrite in karma fallback middleware
This changes the internal Angular Karma plugin's asset fallback middleware to rewrite the request URL directly instead of trying to copy the request properties.  With changes in newer Node.js versions, not all request properties may be enumerable.

Fixes: #19644
2020-12-18 08:31:59 +01:00
Renovate Bot
8186c08c51 build: update babel packages 2020-12-17 20:07:25 +01:00
Renovate Bot
d7494c4d8d build: update webpack-merge to version 5.7.2 2020-12-16 15:50:20 +00:00
Renovate Bot
f58ec52b69 build: update postcss-import to version 14.0.0 2020-12-16 13:56:02 +00:00
Renovate Bot
3e4ce84312 build: update rollup to version 2.35.1 2020-12-16 13:55:17 +00:00
Renovate Bot
1bc5991785 build: update mini-css-extract-plugin to version 1.3.3 2020-12-16 13:55:08 +00:00
Renovate Bot
0dcdea91c0 build: update webpack-merge to version 5.7.0 2020-12-15 12:33:20 +00:00
Renovate Bot
bfe6103999 build: update source-map-loader to version 1.1.3 2020-12-15 12:32:53 +00:00
Renovate Bot
876ddd1848 build: update semver to version 7.3.4 2020-12-15 12:32:44 +00:00
Renovate Bot
c920df1594 build: update sass to version 1.30.0 2020-12-15 12:32:35 +00:00
Renovate Bot
89ee4c3066 build: update postcss to version 8.2.1 2020-12-15 12:31:55 +00:00
Renovate Bot
82f096f589 build: update license-webpack-plugin to version 2.3.2 2020-12-15 12:31:34 +00:00
Renovate Bot
1acbc15ac8 build: update less to version 3.13.0 2020-12-15 12:31:24 +00:00
Renovate Bot
611fb943a8 build: update autoprefixer to version 10.1.0 2020-12-15 12:30:59 +00:00
Alan Agius
ba9c755f33 fix(@angular-devkit/build-angular): add console error when using HMR in production mode
FIx: #19591
2020-12-15 12:25:15 +00:00
Alan Agius
e68c59a37c docs: update inline option description 2020-12-09 14:36:07 -05:00
Alan Agius
f0d18e990e docs: change sourcemap to source map
The latter is more in used in other articules such as:
-  https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Use_a_source_map
- https://developers.google.com/web/tools/chrome-devtools/javascript/source-maps
2020-12-09 14:36:07 -05:00
Keen Yee Liau
48a278e18f fix(@angular-devkit/build-angular): identify plugin provided as string
Karma plugins could be provided either a string or object, but our detection
logic for code coverage plugin only covers the string case.

Fix #19571
2020-12-09 09:52:57 -05:00
Charles Lyding
c94a1961fc fix(@angular-devkit/build-angular): define forwardRef as a pure function
By configuring the optimizer (`terser`) to be aware that the Angular `forwardRef` helper function is a pure function, the optimizer can completely remove the helper call when the return value is unused.
2020-12-08 19:54:14 -05:00