2437 Commits

Author SHA1 Message Date
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
0f06d11fb6 build: update typescript to version 4.1.3 2020-12-16 13:54:07 +00:00
Alan Agius
1cd8aa61f4 refactor(@angular-devkit/schematics): replace NodePackageInstallTaskOptions class with interface
In this context this is not a breaking change for two reasons.

- `NodePackageInstallTaskOptions` is not exported.
- `NodePackageInstallTask` is using `NodePackageInstallTaskOptions` with `Partial` type which would cause the Class to become an object literal. This can be seen here: efb97c87f0/packages/schematics/angular/ng-new/index.ts (L81-L84)
2020-12-16 13:53:29 +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
Alan Agius
d3afdcc1b3 fix(@angular-devkit/build-angular): add file path in CSS optimization exception
Closes #19561
2020-12-08 14:39:36 -05:00
Alan Agius
ca69c8c6b4 fix(@angular-devkit/build-angular): update ScriptsWebpackPlugin to work with Webpack 5
Closes: #19550
2020-12-07 15:23:29 -05:00
Renovate Bot
30b8e00f2a build: update core-js to version 3.8.1 2020-12-07 13:11:25 -05:00
Alan Agius
eb30a92e8a feat(@angular-devkit/build-angular): enable inlining of critical CSS optimizations
This is another feature that we mentioned in the Eliminate Render Blocking Requests RFC (#18730)

Inlining of critical CSS is turned off by default. To opt-in this feature set `inlineCritical` to `true`.

Example:
```json
"configurations": {
  "production": {
    "fileReplacements": [
      {
        "replace": "src/environments/environment.ts",
        "with": "src/environments/environment.prod.ts"
      }
    ],
    "optimization": {
      "styles": {
        "minify": true,
        "inlineCritical": true,
       }
    },
```

To learn more about critical CSS see;
https://web.dev/defer-non-critical-css
https://web.dev/extract-critical-css/

In a future version of the Angular CLI `inlineCritical` will be enabled by default.

Closes: #17966
Closes: #11395
Closes: #19445
2020-12-04 15:41:29 -05:00
Alan Agius
ee6bb1359f docs: fix elimination typo 2020-12-04 13:42:26 -05:00
Charles Lyding
8d92a7cbf0 feat(@angular-devkit/build-angular): support using TypeScript 4.1 2020-12-03 16:43:39 -05:00
Charles Lyding
6e15005fca build: use TypeScript 4.1 2020-12-03 16:43:39 -05:00
Alan Agius
227804fd6e fix(@angular-devkit/build-angular): stylus not resolving imports from libraries
- Adds usage of webpackImporter https://www.npmjs.com/package/stylus-loader#webpackimporter
- Removes resolve-url-loader usage since stylus handles resolve paths https://stylus-lang.com/docs/js.html#stylusresolveroptions

Closes #19524
2020-12-03 12:59:08 -05:00