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
4ed1c4f42d
fix(@schematics/angular): replace clientProject
with project
2021-05-05 11:49:22 -04: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
645353db26
fix(@schematics/angular): run update-i18n migration for server builder
2021-04-03 14:45:58 +02:00
Charles Lyding
eca5a01f6e
fix(@angular-devkit/build-angular): remove deprecated i18nLocale and i18nFormat options from i18n-extract
...
BREAKING CHANGE: Removal of deprecated `extract-i18n` command options
The deprecated `i18nLocale` option has been removed and the `i18n.sourceLocale` within a project's configuration should be used instead.
The deprecated `i18nFormat` option has been removed and the `format` option should be used instead.
2021-04-02 21:13:26 +02: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
0199170ec7
refactor(@schematics/angular): remove DevkitBuildNgPackagr
and DevkitBuildWebpack
from latest-versions
2021-03-17 19:06:37 +01:00
Alan Agius
0d1826b2d1
test(@ngtools/webpack): update lazy loading string syntax to use dynamic imports
2021-03-10 12:44:04 -06:00
Alan Agius
3ee12af89b
feat(@schematics/angular): add migration to update lazy loading string syntax to use dynamic imports
2021-03-10 12:44:04 -06:00
Alan Agius
f4875b967a
feat(@schematics/angular): add migration to remove lazyModules
configuration option
2021-03-10 12:44:04 -06:00
Alan Agius
ba6f546a02
fix(@schematics/angular): add additionalProperties
to all schemas
2021-03-10 08:17:50 -06:00
Alan Agius
1de6d71edd
feat(@schematics/angular): production builds by default
...
With this change we do several changes to the `angular.json` configuration for `build` , `server` and `app-shell` targets so that these are `production` by default.
- build, server and app-shell targets are configured to run production by default.
- We add a new configuration named `development` to run the mentioned builder targets in development. Ex: `ng build --configuration development`.
- When adding `universal` or `app-shell`, we generate the full set of configurations as per the `buiid` target. Previously, we only generated the `production` configuration.
- We added a helper script in `package.json` to run build in watch mode. `npm run watch` which is a shortcut for `ng build --watch --configuration development`
2021-03-10 08:16:38 -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
Oleksii Potiekhin
f73a878c67
fix(@schematics/angular): adjust block comment
...
https://github.com/Microsoft/tslint-microsoft-contrib
ERROR: 21:1 no-single-line-block-comment Replace block comment with a single-line comment
2020-12-15 12:24:53 +00:00
Charles Lyding
644c2d738d
fix(@schematics/angular): migrate project dependencies to new project versions
...
This change reuses the v10 migration with update package versions to ensure that an updated project matches the development dependency versions of a newly generated project.
2020-11-12 14:39:25 -05:00
Alan Agius
0bc15970ad
refactor(@schematics/angular): use jsonc-parser instead of devkit parser
2020-11-05 08:31:02 +01:00
Alan Agius
5ebb100877
refactor(@schematics/angular): remove unused schematic utils
2020-10-27 12:10:46 -04:00
Alan Agius
7e25cedd4b
refactor(@schematics/angular): move version 6 migration untils under the migration folder
2020-10-27 12:10:46 -04:00
Alan Agius
904fc19950
feat(@schematics/angular): add migration to remove rebaseRootRelativeCssUrls from workspace config
2020-10-20 16:53:24 +02:00
Alan Agius
84e07e9d1a
feat(@schematics/angular): update migration to remove deprecated environment
option
2020-09-30 13:49:13 +02:00
Charles Lyding
0589a59f15
refactor(@schematics/angular): use new JSON helpers in codelyzer-5 migration
2020-09-24 14:04:06 +02:00
Charles Lyding
8facdaee1b
refactor(@schematics/angular): use new JSON helpers in v9 migration utilities
2020-09-24 14:04:06 +02:00
Charles Lyding
3173cc06b0
refactor(@schematics/angular): remove unused v9 migration utilities
2020-09-24 14:04:06 +02:00
Charles Lyding
c49ebe78a2
refactor(@schematics/angular): use new workspace helpers in update-i18n migration
2020-09-24 14:04:06 +02:00
Charles Lyding
6ff04473ef
refactor(@schematics/angular): use new workspace helpers in update-app-tsconfigs migration
2020-09-24 14:04:06 +02:00
eranshmil
5d75699134
fix(@schematics/angular): remove solution style throw an error
...
remove-solution-style-tsconfig migration fail when upgrading from version 10.0.* to 10.1.* with the following error:
[error] Error: Could not read 'tsconfig.json'
2020-09-24 00:07:48 +03:00
Charles Lyding
86e4201d60
refactor(@schematics/angular): use new workspace helpers in update-server-main-file migration
2020-09-23 11:22:28 -05:00
Charles Lyding
c859fcb65e
refactor(@schematics/angular): use new workspace helpers in ngsw-config migration
2020-09-23 11:22:28 -05:00
Charles Lyding
39fd968673
refactor(@schematics/angular): use new workspace helpers in remove-tsickle migration
2020-09-23 11:22:28 -05:00
Charles Lyding
7b1787fc57
refactor(@schematics/angular): use new JSON helpers in ngsw-config migration
2020-09-23 11:22:28 -05:00
Charles Lyding
12cd4a072c
refactor(@schematics/angular): use new workspace helpers in update-workspace-config migration
2020-09-23 11:22:28 -05:00
Charles Lyding
38ea7dc8a6
refactor(@schematics/angular): use new JSON helpers in update-app-tsconfigs migration
2020-09-23 11:22:28 -05:00
Alan Agius
9025637a93
feat(@schematics/angular): add migration to add declaration maps to libraries
...
Since version 10.1 we added declaration maps for local library builds, to improve the DX. With this change we add it to existing project.
See: #17920
2020-09-18 14:52:08 -05:00
Charles Lyding
5d73e9d04e
refactor(@schematics/angular): use new JSON helpers in remove-tsickle migration
2020-09-01 20:22:55 +03:00
Charles Lyding
9167122e28
refactor(@schematics/angular): use new JSON helpers in typescript-helpers migration
2020-09-01 20:22:55 +03:00
Charles Lyding
14c49bd037
refactor(@schematics/angular): use new JSON helpers in v6 migration
2020-09-01 20:22:55 +03:00
Charles Lyding
af27ec5449
refactor(@schematics/angular): use new helpers in ivy libraries migration
...
This change refactors the ivy-libraries v9 migration to use the `updateWorkspace` and `JSONFile` helper utilities.
2020-09-01 20:22:55 +03:00