1885 Commits

Author SHA1 Message Date
Renovate Bot
ee4e1b2a19 build: update webpack-merge to version 5.1.4 2020-09-09 10:46:49 +02:00
Renovate Bot
e8a62b1dfd build: update rollup to version 2.26.11 2020-09-09 08:50:00 +02:00
Renovate Bot
fbfe70a503 build: update css-loader to version 4.3.0 2020-09-09 08:49:33 +02:00
Renovate Bot
ba9a8bb604 build: update mini-css-extract-plugin to version 0.11.1 2020-09-09 08:49:14 +02:00
Charles Lyding
22ecb13986 fix(@angular-devkit/build-angular): filter unactionable System.import webpack warning
Webpack 5+ has no facility to disable this warning. `System.import` is used in `@angular/core` for deprecated string-form lazy routes.
2020-09-09 00:05:40 +02:00
Alan Agius
2586a0e9a2 fix(@angular-devkit/build-optimizer): remove decorators calls when tslib helpers are inlined
Closes #18682
2020-09-08 20:56:19 +02:00
Alan Agius
72097ea55c refactor(@angular-devkit/build-angular): lazy require autoprefixer, mini-css-extract-plugin and postcss-import 2020-09-08 19:47:09 +02:00
santoshyadavdev
8880e1c870 refactor(@angular-devkit/schematics): deprecate isAction 2020-09-08 18:28:32 +02:00
Renovate Bot
8dac017e23 build: update rxjs to version 6.6.3 2020-09-07 14:44:16 +02:00
Renovate Bot
d04591a38c build: update ora to version 5.1.0 2020-09-07 13:42:25 +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
Renovate Bot
f52e5a7790 build: update rollup to version 2.26.10 2020-09-06 11:33:58 +02:00
Renovate Bot
14a3c03f01 build: update terser to version 5.3.0 2020-09-06 11:27:36 +02:00
Renovate Bot
1a39c5202a build: update sass-loader to version 10.0.2 2020-09-05 12:00:11 +02:00
Renovate Bot
2aa01ac2ca build: update symbol-observable to version 2.0.1 2020-09-05 11:59:41 +02:00
Renovate Bot
a85224a8bc build: update less-loader to version 7.0.1 2020-09-04 13:33:23 +02:00
Renovate Bot
0f4a8dd509 build: update babel packages 2020-09-04 09:23:54 +02:00
Charles Lyding
5c3e87f644 fix(@angular-devkit/build-angular): update Angular peer dependencies to 11.0 prerelease 2020-09-03 23:28:42 +02:00
Charles Lyding
837edabaa9 build: update development versions of Angular to 11.0.0-next.0 2020-09-03 23:28:42 +02:00
Alan Agius
ceeb6fba34 fix(@angular-devkit/build-angular): consider ascii_only terser setting when counting components in analytics 2020-09-03 20:23:21 +02:00
Renovate Bot
4191912b86 build: update angular packages 2020-09-03 19:10:21 +02:00
Alan Agius
5f064eba74 build: update @types/webpack to 4.41.22 2020-09-03 18:08:09 +02:00
Alan Agius
e95b73f6fb refactor(@angular-devkit/build-angular): set resolve roots to projectRoot
Previously roots was the same as context which was set to projectRoot, however in the previous change we changed the context to workspaceRoot.

With this change we maintain the same resolve root setting.

More info:
4a3e4bda6b/lib/config/defaults.js (L875)

 https://webpack.js.org/configuration/resolve/
2020-09-03 18:08:09 +02:00
Alan Agius
086d74d2b4 fix(@angular-devkit/build-angular): improve debugging experience
With this change we improve the debugging experience with 2 things.

1. Cleaner Karma stack traces in the terminal
Before
```
Chrome 84.0.4147.105 (Mac OS 10.15.5) AppComponent should have as title 'foo' FAILED
        Error: Expected 'foo' to equal 'fox'.
            at <Jasmine>
            at UserContext.<anonymous> (http://localhost:9876/_karma_webpack_/webpack:/projects/foo/src/app/app.component.spec.ts:22:23)
            at ZoneDelegate.invoke (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/dist/zone-evergreen.js:364:1)
            at ProxyZoneSpec.push../node_modules/zone.js/dist/zone-testing.js.ProxyZoneSpec.onInvoke (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/dist/zone-testing.js:292:1)
Chrome 84.0.4147.105 (Mac OS 10.15.5): Executed 3 of 3 (1 FAILED) (0 secs / 0.214 secs)
Chrome 84.0.4147.105 (Mac OS 10.15.5) AppComponent should have as title 'foo' FAILED
        Error: Expected 'foo' to equal 'fox'.
            at <Jasmine>
            at UserContext.<anonymous> (http://localhost:9876/_karma_webpack_/webpack:/projects/foo/src/app/app.component.spec.ts:22:23)
            at ZoneDelegate.invoke (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/dist/zone-evergreen.js:364:1)
            at ProxyZoneSpec.push../node_modules/zone.js/dist/zone-testing.js.ProxyZoneSpec.onInvoke (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/dist/zChrome 84.0.4147.105 (Mac OS 10.15.5): Executed 3 of 3 (1 FAILED) (0.225 secs / 0.214 secs)
```

After
```
Chrome 84.0.4147.105 (Mac OS 10.15.5) AppComponent should have as title 'foo' FAILED
        Error: Expected 'foo' to equal 'fox'.
            at <Jasmine>
            at UserContext.<anonymous> (projects/foo/src/app/app.component.spec.ts:22:23)
            at ZoneDelegate.invoke (node_modules/zone.js/dist/zone-evergreen.js:364:1)
            at ProxyZoneSpec.push../node_modules/zone.js/dist/zone-testing.js.ProxyZoneSpec.onInvoke (node_modules/zone.js/dist/zone-testing.js:292:1)
Chrome 84.0.4147.105 (Mac OS 10.15.5): Executed 2 of 3 (1 FAILED) (0 secs / 0.225 secs)
Chrome 84.0.4147.105 (Mac OS 10.15.5) AppComponent should have as title 'foo' FAILED
        Error: Expected 'foo' to equal 'fox'.
            at <Jasmine>
            at UserContext.<anonymous> (projects/foo/src/app/app.component.spec.ts:22:23)
            at ZoneDelegate.invoke (node_modules/zone.js/dist/zone-evergreen.js:364:1)
Chrome 84.0.4147.105 (Mac OS 10.15.5): Executed 3 of 3 (1 FAILED) (0.281 secs / 0.237 secs)
```

2. Reduce VS Code configuration
Before
```
{
  "name": "ng test",
  "type": "chrome",
  "request": "launch",
  "url": "http://localhost:9876/debug.html",
  "webRoot": "${workspaceFolder}",
  "sourceMaps": true,
  "sourceMapPathOverrides": {
    "webpack:/*": "${webRoot}/*",
    "/./*": "${webRoot}/*",
    "/src/*": "${webRoot}/*",
    "/*": "*",
    "/./~/*": "${webRoot}/node_modules/*"
  }
},
```

After
```
{
  "name": "ng test",
  "type": "chrome",
  "request": "launch",
  "url": "http://localhost:9876/debug.html",
  "webRoot": "${workspaceFolder}",
},
```
2020-09-03 18:08:09 +02:00
Alan Agius
ee7d8f64c8 fix(@angular-devkit/build-angular): generate sourcemaps with relative paths in monorepo
With this change we fix the issue that when having a monorepo style workspace, sourcemaps sources references absolute paths.

Closes #17046
2020-09-03 18:08:09 +02:00
Charles Lyding
a3e404bf16 fix(@angular-devkit/build-angular): correct i18n function parameter type
The type of the first parameter of the internal unwrapTemplateLiteral function should be a `NodePath<types.TaggedTemplateExpression>` not a `NodePath<types.TemplateLiteral>`.
2020-09-03 00:23:30 +03:00
Renovate Bot
530f79eee6 build: update file-loader to version 6.1.0 2020-09-03 00:22:24 +03:00
Alan Agius
f5ee8a0c1a fix(@angular-devkit/build-angular): don't generate vendor.js.map when vendor sourcemaps is disabled
This reduced the build time of an `ng new` application from `5920ms` to `4616ms`

Closes #18060
2020-09-03 00:22:08 +03:00
Renovate Bot
6e65ec803c build: update copy-webpack-plugin to version 6.1.0 2020-09-03 00:21:52 +03:00
Alan Agius
f665c466c2 refactor(@angular-devkit/build-optimizer): use type guards in scrub file 2020-09-03 00:21:26 +03:00
Alan Agius
50d559d73d refactor(@angular-devkit/build-optimizer): remove tsickle code from wrap-enums transformer
Angular packages are no longer annotated for Closure Compiler using Tsickle, therefore these checks are now redundant.
2020-09-03 00:21:26 +03:00
Renovate Bot
908fcf41f0 build: update rollup to version 2.26.9 2020-09-03 00:21:11 +03:00
Charles Lyding
484c94ef0a refactor(@angular-devkit/build-angular): support Webpack with no node shims
Webpack 5+ no longer provides node shims by default.  The dev-server builder previously assumed that Webpack would provide them.  This change adds a conditional check to cover both cases.
2020-09-03 00:20:54 +03:00
Charles Lyding
f6d9e858e5 refactor(@angular-devkit/build-webpack): adjust callback type to support webpack 5 2020-09-03 00:20:54 +03:00
Renovate Bot
b5560ebebe build: update symbol-observable to version 2.0.0 2020-09-03 00:20:40 +03:00
Alan Agius
208336dee0 refactor(@angular-devkit/core): remove resolve methods and options
BREAKING CHANGE: deprecated API's `ModuleNotFoundException`, `ResolveOptions`, `resolve` have been removed. Use `MODULE_NOT_FOUND` and `require.resolve` instead.

**Note**: this change only effect users using `@angular-devkit/core` public API and not application developers.
2020-09-03 00:20:12 +03:00
Charles Lyding
99f4ff00e1 refactor(@angular-devkit/schematics): allow rule to return void or rule promise
This allows a rule to conditionally not return a followup rule when asynchronous.  This is useful to handle error conditions where no further action should be taken and returning void best expresses this case.
2020-09-01 20:22:00 +03:00
Charles Lyding
8036c1c7f0 fix(@angular-devkit/core): allow property remove with workspace API
Removal changes were previously being improperly recorded with the wrong parent.  A property can now be directly removed by setting the value to undefined or by using the delete operator.
2020-08-31 11:58:28 +01:00
Charles Lyding
9a1871d58a fix(@angular-devkit/build-angular): correct Windows paths in ivy i18n extract
POSIX path handling was errantly being used to resolve paths which does not handle Windows drive letters.
2020-08-31 11:58:13 +01:00
Alan Agius
d49888b350 docs: update fileReplacements description 2020-08-31 11:58:04 +01:00
Renovate Bot
02a3e1b3a8 build: update webpack-merge to version 5.1.3 2020-08-31 11:57:07 +01:00
Renovate Bot
bc5717b2d9 build: update copy-webpack-plugin to version 6.0.4 2020-08-31 11:56:46 +01:00
Renovate Bot
e3486e3e28 build: update source-map-loader to version 1.1.0 2020-08-31 11:55:53 +01:00
Renovate Bot
2a90263497 build: update rollup to version 2.26.8 2020-08-31 11:55:42 +01:00
Renovate Bot
0b6f68964e build: update open to version 7.2.1 2020-08-31 11:55:22 +01:00
Alan Agius
197e96b8c5 refactor(@angular-devkit/build-angular): remove deprecated scripts[].lazy and styles[].lazy
BREAKING CHANGE:

- Deprecated `scripts[].lazy` has been renamed with `scripts[].inject`
- Deprecated `styles[].lazy` has been renamed with `styles[].inject`

Note: this change only effects direct `@angular-devkit/build-angular` users and not application developers. Users will be migrated automatically off these options.
2020-08-31 11:54:23 +01:00
Alan Agius
dd260185a1 refactor(@angular-devkit/build-angular): deprecate extractCss browser builder option
BREAKING CHANGE:

Browser builder `extractCss` option default value has been changed from `false` to `true`. This is to reflect the default behaviour when this deprecated option is removed.
2020-08-31 11:54:23 +01:00
Charles Lyding
71360878d9 fix(@angular-devkit/build-angular): ensure ivy extraction file names match sourcemaps
Not doing so results in a circular sourcemap warning when attempting extraction.
2020-08-28 08:55:36 +01:00
Renovate Bot
de0dc55116 build: update mini-css-extract-plugin to version 0.11.0 2020-08-28 08:55:16 +01:00
Charles Lyding
df70c7a857 refactor(@angular-devkit/core): remove experimental workspace API
BREAKING CHANGE:
The experimental workspace API has been removed from `@angular-devkit/core`.  This API was no longer used by the Angular CLI and was replaced with the stable workspace API also found within `@angular-devkit/core`. This change does not affect project code and is related to tooling infrastructure only.
2020-08-28 08:53:38 +01:00