Alan Agius
afc9d10688
fix(@schematics/angular): make version 12 workspace config migration idempotent
...
With this change we ensure that `update-angular-config-v12` migration is idempotent
Closes #20979
2021-05-31 12:49:24 +01:00
Alan Agius
1080a52c96
fix(@schematics/angular): add migration to remove skipTests
from @schematics/angular:module
...
Migration for #20842
Closes #20848
2021-05-19 17:28:14 +02:00
Alan Agius
7521a8727c
fix(@schematics/angular): only run emitDecoratorMetadata
removal migration in safe workspaces
...
Removal of `emitDecoratorMetadata` might cause runtime errors on projects which don't use the Angular Compiler to compile TypeScript code and therefore dependent on Decorators metadata during runtime. One such example of these builders is `@nrwl/jest`.
2021-05-04 10:33:58 -04:00
Alan Agius
e992c9a70b
build: update files to be fix eslint header/header failures
2021-05-04 09:59:40 -04:00
Charles Lyding
c1512e4274
build: update files to be eslint compliant
...
All TypeScript files have been updated to pass the new eslint-based linting checks. eslint compatible disabling comments have also been added in place of the previous tslint comments.
2021-05-03 07:31:02 -04: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
Alan Agius
decaef592e
fix(@schematics/angular): fix migration for namedChunks and option
...
Both values of `extractLicenses` and `namedChunks` were inverted.
2021-04-28 16:37:19 +02: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
4c8e03256f
fix(@angular-devkit/build-angular): remove left-over forkTypeChecker
option
2021-04-22 15:40:36 +02:00
Alan Agius
0a74d0d28d
fix(@angular-devkit/build-angular): change several builder options defaults
...
BREAKING CHANGE:
A number of browser and server builder options have had their default values changed. The aim of these changes is to reduce the configuration complexity and support the new "production builds by default" initiative.
**Browser builder**
| Option | Previous default value | New default value |
|----------------------------------------|---------------------------|-------------------|
| optimization | false | true |
| aot | false | true |
| buildOptimizer | false | true |
| sourceMap | true | false |
| extractLicenses | false | true |
| namedChunks | true | false |
| vendorChunk | true | false |
**Server builder**
| Option | Previous default value | New default value |
|---------------|------------------------|-------------------|
| optimization | false | true |
| sourceMap | true | false |
2021-04-21 12:39:01 -07:00
Charles Lyding
e33a3061f0
feat(@schematics/angular): migrate web workers to support Webpack 5
...
Webpack 5 now includes web worker support. However, the structure of the URL within the `Worker` constructor must be in a specific format.
A migration has been added for Angular v12 that will convert web workers from the old structure to the new structure.
Before: `new Worker('./app.worker', ...)`
After: `new Worker(new URL('./app.worker', import.meta.url), ...)`
2021-04-14 19:34:21 -04:00
Alan Agius
36a8882ab3
refactor(@schematics/angular): remove migration of non LTS versions
...
With this change we remove migrations for non LTS version of Angular CLI.
2021-04-14 17:20:33 -04:00
Alan Agius
c7e126609f
feat(@schematics/angular): add production by default optional migration
...
With this change we add an optional migration to update Angular CLI workspace configurations to 'production' mode by default.
To run this migration use the below commands
```
ng update @angular/cli
ng update @angular/cli --migrate-only production-by-default
```
2021-03-24 09:16:50 -04:00
Alan Agius
f4875b967a
feat(@schematics/angular): add migration to remove lazyModules
configuration option
2021-03-10 12:44:04 -06:00
Alan Agius
96a4467ce9
feat(@schematics/angular): add migration to remove emitDecoratorMetadata
...
Add migration to remove 'emitDecoratorMetadata' TypeScript compiler option. Decorator metadata is no longer needed by Angular.
Read more about this option here: https://www.typescriptlang.org/docs/handbook/decorators.html#metadata
2021-02-18 19:27:30 +01:00
Alan Agius
7d57dd2f3e
feat(@schematics/angular): add migration to use new zone.js entry-points
2021-02-17 12:44:43 -06:00
Charles Lyding
575b1a75b1
fix(@schematics/angular): only update removed v12 options in migration
2021-02-11 07:42:16 -05:00
Alan Agius
f424529d9c
feat(@schematics/angular): add migration to remove deprecated options from 'angular.json'
2021-02-09 08:50:00 -05:00