From e1bb8c4f9a1d29f7540673c2c9442044b028c2b3 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Mon, 19 Apr 2021 19:47:12 +0200 Subject: [PATCH 001/577] build: update master version to `12.1.0-next.0` --- package.json | 2 +- packages/schematics/angular/utility/latest-versions.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index add85949007f..bfa42f3a0efa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@angular/devkit-repo", - "version": "12.0.0-rc.0", + "version": "12.1.0-next.0", "private": true, "description": "Software Development Kit for Angular", "bin": { diff --git a/packages/schematics/angular/utility/latest-versions.ts b/packages/schematics/angular/utility/latest-versions.ts index 9cd4dc002a8d..34fbdf970f59 100644 --- a/packages/schematics/angular/utility/latest-versions.ts +++ b/packages/schematics/angular/utility/latest-versions.ts @@ -18,7 +18,7 @@ export const latestVersions = { // For our e2e tests, these versions must match the latest tag present on the branch. // During RC periods they will not match the latest RC until there's a new git tag, and // should not be updated. - DevkitBuildAngular: '~12.0.0-rc.0', + DevkitBuildAngular: '~12.1.0-next.0', ngPackagr: '^12.0.0-next.8', }; From 0396d0839e9b04a35f6a4871c022157d56f2372a Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 15 Apr 2021 13:34:49 +0200 Subject: [PATCH 002/577] build: update angular packages With this change we also remove the workaround to fix stale reuse program. Which was fixed in https://github.com/angular/angular/pull/41289 --- package.json | 26 ++--- packages/ngtools/webpack/package.json | 4 +- packages/ngtools/webpack/src/ivy/plugin.ts | 6 -- tests/legacy-cli/e2e/ng-snapshot/package.json | 30 +++--- yarn.lock | 102 +++++++++--------- 5 files changed, 81 insertions(+), 87 deletions(-) diff --git a/package.json b/package.json index bfa42f3a0efa..e36523a41551 100644 --- a/package.json +++ b/package.json @@ -63,21 +63,21 @@ ] }, "devDependencies": { - "@angular/animations": "12.0.0-next.8", + "@angular/animations": "12.0.0-next.9", "@angular/cdk": "11.2.9", - "@angular/common": "12.0.0-next.8", - "@angular/compiler": "12.0.0-next.8", - "@angular/compiler-cli": "12.0.0-next.8", - "@angular/core": "12.0.0-next.8", - "@angular/dev-infra-private": "https://github.com/angular/dev-infra-private-builds.git#0d8382f30f70ab220961c2d731c782519025332e", - "@angular/forms": "12.0.0-next.8", - "@angular/localize": "12.0.0-next.8", + "@angular/common": "12.0.0-next.9", + "@angular/compiler": "12.0.0-next.9", + "@angular/compiler-cli": "12.0.0-next.9", + "@angular/core": "12.0.0-next.9", + "@angular/dev-infra-private": "https://github.com/angular/dev-infra-private-builds.git#3346063565e4a710fb7c1daded6edbf50962342a", + "@angular/forms": "12.0.0-next.9", + "@angular/localize": "12.0.0-next.9", "@angular/material": "11.2.9", - "@angular/platform-browser": "12.0.0-next.8", - "@angular/platform-browser-dynamic": "12.0.0-next.8", - "@angular/platform-server": "12.0.0-next.8", - "@angular/router": "12.0.0-next.8", - "@angular/service-worker": "12.0.0-next.8", + "@angular/platform-browser": "12.0.0-next.9", + "@angular/platform-browser-dynamic": "12.0.0-next.9", + "@angular/platform-server": "12.0.0-next.9", + "@angular/router": "12.0.0-next.9", + "@angular/service-worker": "12.0.0-next.9", "@babel/core": "7.13.13", "@babel/generator": "7.13.9", "@babel/plugin-transform-runtime": "7.13.10", diff --git a/packages/ngtools/webpack/package.json b/packages/ngtools/webpack/package.json index ad9e35311494..d2f2203acb75 100644 --- a/packages/ngtools/webpack/package.json +++ b/packages/ngtools/webpack/package.json @@ -30,8 +30,8 @@ }, "devDependencies": { "@angular-devkit/core": "0.0.0", - "@angular/compiler": "12.0.0-next.8", - "@angular/compiler-cli": "12.0.0-next.8", + "@angular/compiler": "12.0.0-next.9", + "@angular/compiler-cli": "12.0.0-next.9", "typescript": "4.2.4", "webpack": "5.32.0" } diff --git a/packages/ngtools/webpack/src/ivy/plugin.ts b/packages/ngtools/webpack/src/ivy/plugin.ts index 3c4a65f2c152..bef3c4778b01 100644 --- a/packages/ngtools/webpack/src/ivy/plugin.ts +++ b/packages/ngtools/webpack/src/ivy/plugin.ts @@ -534,12 +534,6 @@ export class AngularWebpackPlugin { this.sourceFileCache?.updateAngularDiagnostics(affectedFile, angularDiagnostics); } - // NOTE: Workaround to fix stale reuse program. Can be removed once fixed upstream. - // tslint:disable-next-line: no-any - (angularProgram as any).reuseTsProgram = - // tslint:disable-next-line: no-any - angularCompiler.getNextProgram?.() || (angularCompiler as any).getCurrentProgram?.(); - return this.createFileEmitter( builder, mergeTransformers(angularCompiler.prepareEmit().transformers, transformers), diff --git a/tests/legacy-cli/e2e/ng-snapshot/package.json b/tests/legacy-cli/e2e/ng-snapshot/package.json index 3381dea21779..3729ac69e917 100644 --- a/tests/legacy-cli/e2e/ng-snapshot/package.json +++ b/tests/legacy-cli/e2e/ng-snapshot/package.json @@ -2,20 +2,20 @@ "description": "snapshot versions of Angular for e2e testing", "private": true, "dependencies": { - "@angular/animations": "github:angular/animations-builds#45d6085a479bf35788c571e73e0aa764b53fbae0", - "@angular/cdk": "github:angular/cdk-builds#4fe40f1ab0af5cb47b79e1b0067639855d0d1f9d", - "@angular/common": "github:angular/common-builds#22afb6f6e0d7b20d823a4f464a0a13ca2e4bc628", - "@angular/compiler": "github:angular/compiler-builds#f95431d295787b91e902eb0d1d705d9589d2a16e", - "@angular/compiler-cli": "github:angular/compiler-cli-builds#39064bf9a1436e63dddf629405c36167560e8050", - "@angular/core": "github:angular/core-builds#9440baa37331bd598aa15c8656556131df8f7e0a", - "@angular/forms": "github:angular/forms-builds#60068dd8b558d5310fbd9ca12b588196617a5355", - "@angular/language-service": "github:angular/language-service-builds#fa45a9cb5d470b41c4cf3113868480e1bae8c121", - "@angular/localize": "github:angular/localize-builds#d125486febb9e0116969c60d59ed62f85f825900", - "@angular/material": "github:angular/material2-builds#94e53ad22af2c206d0dfb119539fcd4904cc69a4", - "@angular/material-moment-adapter": "github:angular/material-moment-adapter-builds#35e04525433fc31afeaecbaf7c534b1d634e2631", - "@angular/platform-browser": "github:angular/platform-browser-builds#2883e8ab2e1f0dbaca811bd8472a03ea30587aa6", - "@angular/platform-browser-dynamic": "github:angular/platform-browser-dynamic-builds#ecaf6a615401c83422b2b081456533d0912989a5", - "@angular/platform-server": "github:angular/platform-server-builds#9d770b87ea8b66d10d596245ba120ed3d1847273", - "@angular/router": "github:angular/router-builds#776ced59b6bcf492943d8adddc757408e523bfed" + "@angular/animations": "github:angular/animations-builds#f800ebc31d989d9940bd3cde1f56f56cc5201873", + "@angular/cdk": "github:angular/cdk-builds#0d56ba723d91da7cbefac44737a1c847cce08d5f", + "@angular/common": "github:angular/common-builds#1a98688b5c24b3131ef81727cc3bef3e4dcb1339", + "@angular/compiler": "github:angular/compiler-builds#ed3041577eb3abfa8cab57d567a8bc0bd90f570b", + "@angular/compiler-cli": "github:angular/compiler-cli-builds#1ca20450be111086bfe15382aa6c3a8b74b4fbbc", + "@angular/core": "github:angular/core-builds#41fb1fef720b7c2f78310c22b6d324dc09696263", + "@angular/forms": "github:angular/forms-builds#04420efdb94d326fa8210067fee2cef6e3da6786", + "@angular/language-service": "github:angular/language-service-builds#1809438334de5c4843b90367b49d236aa311135d", + "@angular/localize": "github:angular/localize-builds#880639c8b0d050d960574adaa36d2f0ea3580816", + "@angular/material": "github:angular/material2-builds#2a20f19a52fadfa536471e11d68caff9449ce337", + "@angular/material-moment-adapter": "github:angular/material-moment-adapter-builds#7ab8908288ea48d06af8ecb2444075690ca708e7", + "@angular/platform-browser": "github:angular/platform-browser-builds#485291dd332b0b94b77533655e73b8e94ce1606a", + "@angular/platform-browser-dynamic": "github:angular/platform-browser-dynamic-builds#2411e72477b6ca123d37d1a6533fcfae44c9bd64", + "@angular/platform-server": "github:angular/platform-server-builds#4e43f9cc52e33f5affe7707089e8cc0028deea32", + "@angular/router": "github:angular/router-builds#4384c9ff713fb3da02f4498dd205babe2b8eeb3c" } } diff --git a/yarn.lock b/yarn.lock index 2fb58a8f85c0..fe081971377e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,10 +2,10 @@ # yarn lockfile v1 -"@angular/animations@12.0.0-next.8": - version "12.0.0-next.8" - resolved "https://registry.yarnpkg.com/@angular/animations/-/animations-12.0.0-next.8.tgz#25c5606f616e47255d8357e7758891761e487f1e" - integrity sha512-UGMnjPs62wwqJeU/T828Ma6g8cvL8lwouGYzy59TNQ4ouDSuEPbJtMNewlJsoA4Ex/IVq46N6eENKs6GT1IXWw== +"@angular/animations@12.0.0-next.9": + version "12.0.0-next.9" + resolved "https://registry.yarnpkg.com/@angular/animations/-/animations-12.0.0-next.9.tgz#88e96a5a43af9ff61384f5a9ce77878af7eaa11a" + integrity sha512-fETykFqIqaVfdsodIxa5XGd5qUuqP4T3nUpBtTyZoPJZEATee2X7zzV+/WocPIH2EwBWcE4lbxblKUWAJm2LuA== dependencies: tslib "^2.1.0" @@ -26,17 +26,17 @@ optionalDependencies: parse5 "^5.0.0" -"@angular/common@12.0.0-next.8": - version "12.0.0-next.8" - resolved "https://registry.yarnpkg.com/@angular/common/-/common-12.0.0-next.8.tgz#9515f8c69a7391cb80f663987e36ff2aa8d354c0" - integrity sha512-/Bx1DXgmspybTuAJqlUSOcPmkKL0/87K71MVq36WgweGsV1N++IMyOoGAJyLcnZe71QjVL2Er0od3D56EU+Hfw== +"@angular/common@12.0.0-next.9": + version "12.0.0-next.9" + resolved "https://registry.yarnpkg.com/@angular/common/-/common-12.0.0-next.9.tgz#f4143b37a608ba87124cf0f0678a7cd49736d0ad" + integrity sha512-JHNBObCHpDUVeg9pXOMDmbBf43Guo5vN7dOEjpwhqIYPTyFEhxWHZ7AP56I9KcgDcuuEoRmw3YGEtEysLOtpAQ== dependencies: tslib "^2.1.0" -"@angular/compiler-cli@12.0.0-next.8": - version "12.0.0-next.8" - resolved "https://registry.yarnpkg.com/@angular/compiler-cli/-/compiler-cli-12.0.0-next.8.tgz#df7ba9d9efda5d3b8c5e9447892ba653b542ce0b" - integrity sha512-cwXaSg+u6A8DgVfdvranO/RQptZzZjGPANjlsC6QDi5hdPkU6fI4wQbzm6KRMlww+mTbrNRmMNRlAI5sVx3y1w== +"@angular/compiler-cli@12.0.0-next.9": + version "12.0.0-next.9" + resolved "https://registry.yarnpkg.com/@angular/compiler-cli/-/compiler-cli-12.0.0-next.9.tgz#ed4636a7453e4854ce87fb44b97550ad161abad7" + integrity sha512-f4VPl2EcX6DwBGJd69FF/BoJeVx1UDsX4l6CGNXcXut/fPKr1078zjd9kKCJ58PspT+/9lez7j0REkGkTtOkFQ== dependencies: "@babel/core" "^7.8.6" "@babel/types" "^7.8.6" @@ -53,10 +53,10 @@ tslib "^2.1.0" yargs "^16.2.0" -"@angular/compiler@12.0.0-next.8": - version "12.0.0-next.8" - resolved "https://registry.yarnpkg.com/@angular/compiler/-/compiler-12.0.0-next.8.tgz#475f9fc66e8bd789200fe8ae7ba77b6ff5a32153" - integrity sha512-2SN8gte05JwHVd5b2ExP1lyIIND7TaJ0XipzaUOgsRwGVLWDhN6hS3XMb1BLeZlwl9YYLNVATUbhThC+ZSR4uw== +"@angular/compiler@12.0.0-next.9": + version "12.0.0-next.9" + resolved "https://registry.yarnpkg.com/@angular/compiler/-/compiler-12.0.0-next.9.tgz#e939a43fb5090668a2f67324da5b091690b53d5f" + integrity sha512-nRpxuGj5DKnh7DDqNzUT3dfNvejfIu2AxNjAF4Wa/cZTrSABgvVxPo3DmvEesLvu4v1XJORFe/0vdeErivtEbQ== dependencies: tslib "^2.1.0" @@ -65,10 +65,10 @@ resolved "https://registry.yarnpkg.com/@angular/compiler/-/compiler-9.0.0.tgz#87e0bef4c369b6cadae07e3a4295778fc93799d5" integrity sha512-ctjwuntPfZZT2mNj2NDIVu51t9cvbhl/16epc5xEwyzyDt76pX9UgwvY+MbXrf/C/FWwdtmNtfP698BKI+9leQ== -"@angular/core@12.0.0-next.8": - version "12.0.0-next.8" - resolved "https://registry.yarnpkg.com/@angular/core/-/core-12.0.0-next.8.tgz#f037aa48a4aedc57742bcfc627d1a1661d6c5138" - integrity sha512-+LDGHKrVUekNQsohG+afEv441x4cupftigzTjKjioPYq9TAZSBHQrPSTAL0Jwmm731ghkPEAeoRni4HMmDGO3Q== +"@angular/core@12.0.0-next.9": + version "12.0.0-next.9" + resolved "https://registry.yarnpkg.com/@angular/core/-/core-12.0.0-next.9.tgz#f617b879c9cc25e30f0835bdb666108073e0dd5a" + integrity sha512-Z328UtPoXTAx7bPPjqCg90RXtNJUd/GV1Z6Kd+qrZnxlFUQcbZmJa/aXrXYV0FtV98kYxiy+0+9r9iJs0w3puA== dependencies: tslib "^2.1.0" @@ -84,10 +84,10 @@ dependencies: tslib "^2.0.0" -"@angular/dev-infra-private@https://github.com/angular/dev-infra-private-builds.git#0d8382f30f70ab220961c2d731c782519025332e": +"@angular/dev-infra-private@https://github.com/angular/dev-infra-private-builds.git#3346063565e4a710fb7c1daded6edbf50962342a": version "0.0.0" - uid "0d8382f30f70ab220961c2d731c782519025332e" - resolved "https://github.com/angular/dev-infra-private-builds.git#0d8382f30f70ab220961c2d731c782519025332e" + uid "3346063565e4a710fb7c1daded6edbf50962342a" + resolved "https://github.com/angular/dev-infra-private-builds.git#3346063565e4a710fb7c1daded6edbf50962342a" dependencies: "@angular/benchpress" "0.2.1" "@bazel/buildifier" "^4.0.1" @@ -119,17 +119,17 @@ yaml "^1.10.0" yargs "^16.2.0" -"@angular/forms@12.0.0-next.8": - version "12.0.0-next.8" - resolved "https://registry.yarnpkg.com/@angular/forms/-/forms-12.0.0-next.8.tgz#412aecd3d38690e3c7d2a1998b53a78208b2b908" - integrity sha512-JR0xD2Rr6y458xYT7V6XyL/rL4rsSFraRTT/zZr1UemIaFCkHdQrrGGm41W35laPXmwqGUxfFoaXM6H9PNWqPQ== +"@angular/forms@12.0.0-next.9": + version "12.0.0-next.9" + resolved "https://registry.yarnpkg.com/@angular/forms/-/forms-12.0.0-next.9.tgz#c8c4fbc33a76c271629f15b0bfe4ccaf9dcac2c7" + integrity sha512-ANXH1jlo6fUxO/r4685kV+FMOvpw522wLcaocqnXv3aHIHhXJSTpMAAQw7Wc2XfYKrO49q882bToOHvOYxjPZA== dependencies: tslib "^2.1.0" -"@angular/localize@12.0.0-next.8": - version "12.0.0-next.8" - resolved "https://registry.yarnpkg.com/@angular/localize/-/localize-12.0.0-next.8.tgz#7456dcf66d48e2ee4c56aca9ff91881349ae45ff" - integrity sha512-eVAVeZ/Xw/Xz+LyX8QGh3ynOck/+l/6fHCBRVT0qLLSUwqttNsFfxHigFnNmoIJ2nOhmtGPa1MmGNPzJp0fzbw== +"@angular/localize@12.0.0-next.9": + version "12.0.0-next.9" + resolved "https://registry.yarnpkg.com/@angular/localize/-/localize-12.0.0-next.9.tgz#fc977778b5be2b5325d38058ee9601dbd9d7cb43" + integrity sha512-BHqE+3svlU19t9sOQFKXh9bd8yFDYCQoOMpphHB+vQdO4rUPTSVZM1XPYDZw+zjrQ62Rwtxbx4RD14Iwh81LnQ== dependencies: "@babel/core" "7.8.3" glob "7.1.2" @@ -142,40 +142,40 @@ dependencies: tslib "^2.0.0" -"@angular/platform-browser-dynamic@12.0.0-next.8": - version "12.0.0-next.8" - resolved "https://registry.yarnpkg.com/@angular/platform-browser-dynamic/-/platform-browser-dynamic-12.0.0-next.8.tgz#d76d43721fb27a967258343694e006f770683c9b" - integrity sha512-XO/IY+Xh1PzZtwED5uiHyKyJyB7g8OkdYhFjVXxK32Y3CiF6zN5dUgQDyCzUF7nOWydGLBogzwmmouigR999xg== +"@angular/platform-browser-dynamic@12.0.0-next.9": + version "12.0.0-next.9" + resolved "https://registry.yarnpkg.com/@angular/platform-browser-dynamic/-/platform-browser-dynamic-12.0.0-next.9.tgz#b1b9bbf8c54c909f47a6e070108cd70e3f791d3a" + integrity sha512-En6KqwlHfWGdmovKHpDjz2pKelz0wyyJTNlYJjizCRN3JgRgj4f/Ebynb//qg9vf8eVSg8U5JtH2GZ/5lOrpTg== dependencies: tslib "^2.1.0" -"@angular/platform-browser@12.0.0-next.8": - version "12.0.0-next.8" - resolved "https://registry.yarnpkg.com/@angular/platform-browser/-/platform-browser-12.0.0-next.8.tgz#229302e72d7cb0b057e49b10ec069f8bc862f718" - integrity sha512-bgiIguM3O//afPaBgl9/epBzbf/3TVKK9lDESx18LHtnoxZrFoWGWhj4xD7x4OlEUGlXse2VYU050y6F/pXx1Q== +"@angular/platform-browser@12.0.0-next.9": + version "12.0.0-next.9" + resolved "https://registry.yarnpkg.com/@angular/platform-browser/-/platform-browser-12.0.0-next.9.tgz#12eba4e2edf6107b02bc90ef64193754149b855b" + integrity sha512-DrK7P4ScWms06+P1ar+Rpt7eR3T67vDHKzdnNDwn50ylFR8rqcjPk7LQCOJithMEzTCKWax5s59oPahLazuHDA== dependencies: tslib "^2.1.0" -"@angular/platform-server@12.0.0-next.8": - version "12.0.0-next.8" - resolved "https://registry.yarnpkg.com/@angular/platform-server/-/platform-server-12.0.0-next.8.tgz#46b609209bada2e730e5b34302cde1bc828fba8c" - integrity sha512-2Sut7xvHa9EAeRsTEKSMEHHzT7lBJ/0iPz/wtYIEpOKQ3QstuX2GTV1GqllN++CDrXHGsWgk4AtFnAEgkOieKQ== +"@angular/platform-server@12.0.0-next.9": + version "12.0.0-next.9" + resolved "https://registry.yarnpkg.com/@angular/platform-server/-/platform-server-12.0.0-next.9.tgz#bab0a095ed8fe1da9372ad42e13736ea73644eac" + integrity sha512-X/1EBbok3KA051hM5PEy5NTJGbwEFu6sIIOTgoz+BZm+O2GgkqyVasALzVi5X+b5XhSpC7GRYz3W5PE0ObLj2Q== dependencies: domino "^2.1.2" tslib "^2.1.0" xhr2 "^0.2.0" -"@angular/router@12.0.0-next.8": - version "12.0.0-next.8" - resolved "https://registry.yarnpkg.com/@angular/router/-/router-12.0.0-next.8.tgz#f77526b662403e892b1d2cb97b6796d3e623bbc4" - integrity sha512-EnEfziJAstdqLbajuqySPyBxsOzc2JgtxyDsk+b5MkHBfECQvaT+hBywm2bYv7CJUqHIq5LzEbeTkXEwlVX9/g== +"@angular/router@12.0.0-next.9": + version "12.0.0-next.9" + resolved "https://registry.yarnpkg.com/@angular/router/-/router-12.0.0-next.9.tgz#b4d0dc11b23d75ea74afc77cd58ad607254892ec" + integrity sha512-F+Pf64GCoXXDMju/Vbid9k2Q6dMETeiNZwKZO+lavyqBIXhtg7lZ9U7gupdRnp1fCKuSkemxcEzyTCKBYPjJtQ== dependencies: tslib "^2.1.0" -"@angular/service-worker@12.0.0-next.8": - version "12.0.0-next.8" - resolved "https://registry.yarnpkg.com/@angular/service-worker/-/service-worker-12.0.0-next.8.tgz#d6267d7b106fde36f2063624ff65558636dadeb7" - integrity sha512-oa1d7vZUN/YrUJ1x3im+ucZJD+pS/KyDP2bCAav3kpSFo9aO8I5MleqU+zTCDWpgcIT50filme1a7novKAMIQA== +"@angular/service-worker@12.0.0-next.9": + version "12.0.0-next.9" + resolved "https://registry.yarnpkg.com/@angular/service-worker/-/service-worker-12.0.0-next.9.tgz#c7ef828c0ceb7c64049d9e6bc60d3330868a5e45" + integrity sha512-yTsH6+orLjUb6QA1EKX3dAoQ83xsxQiVIMKX8JaElBO/PsQYFOv83iu6Obf3PdrLBdwsLl/oTAoH59h4/UPUaw== dependencies: tslib "^2.1.0" From 10d4a54510d86fb873b9e3336d98f74f456fd2cd Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 15 Apr 2021 14:24:17 +0200 Subject: [PATCH 003/577] build: update to Node 14.16.1 Update Bazel to use 14.16.1 --- WORKSPACE | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index 5d9b136e9034..159601517bdd 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -31,9 +31,8 @@ check_rules_nodejs_version(minimum_version_string = "2.0.0") # Setup the Node.js toolchain node_repositories( - node_version = "12.20.2", + node_version = "14.16.1", package_json = ["//:package.json"], - yarn_version = "1.22.4", ) yarn_install( From 6a6aef6a685b95fec027bbb3f9be1d84943c8252 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 15 Apr 2021 18:34:53 +0200 Subject: [PATCH 004/577] build: rely on engines to prevent using npm for dependency install See https://github.com/angular/angular/commit/c385e744541554ad69a9d664cec1b33d8c2a4138 for more context --- .npmrc | 1 + WORKSPACE | 3 --- package.json | 4 ++-- tools/yarn/check-yarn.js | 14 -------------- 4 files changed, 3 insertions(+), 19 deletions(-) create mode 100644 .npmrc delete mode 100644 tools/yarn/check-yarn.js diff --git a/.npmrc b/.npmrc new file mode 100644 index 000000000000..c42da845b449 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +engine-strict = true diff --git a/WORKSPACE b/WORKSPACE index 159601517bdd..b7e8adeaab75 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -37,9 +37,6 @@ node_repositories( yarn_install( name = "npm", - data = [ - "//:tools/yarn/check-yarn.js", - ], package_json = "//:package.json", strict_visibility = False, # Needed for ts-api-guardian. More info about this can be found https://github.com/bazelbuild/rules_nodejs/wiki#strict_visibility-on-yarn_install-and-npm_install-now-defaults-true-2199 yarn_lock = "//:yarn.lock", diff --git a/package.json b/package.json index e36523a41551..04c1e1b8f5de 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,6 @@ "lint": "tslint --project tsconfig.json", "templates": "node ./bin/devkit-admin templates", "validate": "node ./bin/devkit-admin validate", - "preinstall": "node ./tools/yarn/check-yarn.js", "postinstall": "yarn webdriver-update && yarn ngcc && yarn husky install", "//webdriver-update-README": "ChromeDriver version must match Puppeteer Chromium version, see https://github.com/GoogleChrome/puppeteer/releases http://chromedriver.chromium.org/downloads", "webdriver-update": "webdriver-manager update --standalone false --gecko false --versions.chrome 89.0.4389.0", @@ -43,7 +42,8 @@ }, "engines": { "node": ">=12.13.0 <15.0.0", - "yarn": ">=1.22.4" + "yarn": ">=1.21.1 <2", + "npm": "Please use yarn instead of NPM to install dependencies" }, "author": "Angular Authors", "license": "MIT", diff --git a/tools/yarn/check-yarn.js b/tools/yarn/check-yarn.js deleted file mode 100644 index 2e7d66ef63c4..000000000000 --- a/tools/yarn/check-yarn.js +++ /dev/null @@ -1,14 +0,0 @@ -/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ - -'use strict'; - -if (process.env.npm_execpath.indexOf('yarn') === -1) { - throw new Error( - 'Please use Yarn instead of NPM to install dependencies. See: https://yarnpkg.com/lang/en/docs/install/'); -} From c196df9bad6d1131f6ec2724bff8b31a351bf5ea Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Mon, 19 Apr 2021 13:37:11 +0200 Subject: [PATCH 005/577] build: update build_bazel_rules_nodejs to 3.4.0 --- WORKSPACE | 4 ++-- package.json | 4 ++-- yarn.lock | 36 ++++++++++++++++++------------------ 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index b7e8adeaab75..93f234493f63 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -7,8 +7,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "55a25a762fcf9c9b88ab54436581e671bc9f4f523cb5a1bd32459ebec7be68a8", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.2.2/rules_nodejs-3.2.2.tar.gz"], + sha256 = "1134ec9b7baee008f1d54f0483049a97e53a57cd3913ec9d6db625549c98395a", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.4.0/rules_nodejs-3.4.0.tar.gz"], ) # Check the bazel version and download npm dependencies diff --git a/package.json b/package.json index 04c1e1b8f5de..7e07b12c5f64 100644 --- a/package.json +++ b/package.json @@ -86,8 +86,8 @@ "@babel/template": "7.12.13", "@bazel/bazelisk": "1.7.5", "@bazel/buildifier": "4.0.1", - "@bazel/jasmine": "3.2.2", - "@bazel/typescript": "3.2.2", + "@bazel/jasmine": "3.4.0", + "@bazel/typescript": "3.4.0", "@discoveryjs/json-ext": "0.5.2", "@jsdevtools/coverage-istanbul-loader": "3.0.5", "@types/babel__core": "7.1.14", diff --git a/yarn.lock b/yarn.lock index fe081971377e..1f006bb34382 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1297,18 +1297,18 @@ resolved "https://registry.yarnpkg.com/@bazel/buildifier/-/buildifier-4.0.1.tgz#52cfbad5cbb86e9183a29dde2370cd465730ea0d" integrity sha512-BTmtvJbeeEVrqRApI1gr5hvPgYcHLpdGJ5EXNXEWO692ztMPSj5fB/dH0xUlaW45jn6LimYx8ymqTMhj3538og== -"@bazel/jasmine@3.2.2": - version "3.2.2" - resolved "https://registry.yarnpkg.com/@bazel/jasmine/-/jasmine-3.2.2.tgz#e4c088d8267f83c4c718ac46e5923f549d47fef6" - integrity sha512-fSz0fRdk9IgyN/9Ietzasdp2QAhMGz/E4LKdiu+WyZrPjwd06zQ4ypb3DzzT1g+M/7NXJqV8X6ahTGQMrm/Rpw== +"@bazel/jasmine@3.4.0": + version "3.4.0" + resolved "https://registry.yarnpkg.com/@bazel/jasmine/-/jasmine-3.4.0.tgz#d85d8b9156821f1a2aadca55faedb3d7990bb018" + integrity sha512-TnXLJ/4gcM9KyWtfjv8ZrzNbR0teUYRIoLborbJUXVbMYYKjKOQ+rWzwGUIb6Gf4gJ8M7VmfrpzK8vBUjowkJw== dependencies: c8 "~7.5.0" - jasmine-reporters "~2.3.2" + jasmine-reporters "~2.4.0" -"@bazel/typescript@3.2.2": - version "3.2.2" - resolved "https://registry.yarnpkg.com/@bazel/typescript/-/typescript-3.2.2.tgz#b53ee35dee68952abd711a2d472485748c7521c1" - integrity sha512-fTPtX3kZAQ50fWJaBvHtHf4w0fqMCrOhK9A8c5GgbqRrIWF8GG/+Tbt4OPwsG0N3+JDYOsHATacJI0qkjIeG1g== +"@bazel/typescript@3.4.0": + version "3.4.0" + resolved "https://registry.yarnpkg.com/@bazel/typescript/-/typescript-3.4.0.tgz#031d989682ff8605ed8745f31448c2f76a1b653a" + integrity sha512-XlWrlQnsdQHTwsliUAf4mySHOgqRY2S57LKG2rKRjm+a015Lzlmxo6jRQaxjr68UmuhmlklRw0WfCFxdR81AvQ== dependencies: protobufjs "6.8.8" semver "5.6.0" @@ -6771,13 +6771,13 @@ jasmine-core@~3.7.0: resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-3.7.0.tgz#33da871fef5595e9aa43d0f50e009b5fe35f7ef2" integrity sha512-jmeRIgxS/abz8afk9NKJ1yP7n93aZdRaHDWtTHJBlYu6fhbzvErjiO3mMlSSrJefVk1a+26JlABrHS2iBH8Azw== -jasmine-reporters@~2.3.2: - version "2.3.2" - resolved "https://registry.yarnpkg.com/jasmine-reporters/-/jasmine-reporters-2.3.2.tgz#898818ffc234eb8b3f635d693de4586f95548d43" - integrity sha512-u/7AT9SkuZsUfFBLLzbErohTGNsEUCKaQbsVYnLFW1gEuL2DzmBL4n8v90uZsqIqlWvWUgian8J6yOt5Fyk/+A== +jasmine-reporters@~2.4.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/jasmine-reporters/-/jasmine-reporters-2.4.0.tgz#708c17ae70ba6671e3a930bb1b202aab80a31409" + integrity sha512-jxONSrBLN1vz/8zCx5YNWQSS8iyDAlXQ5yk1LuqITe4C6iXCDx5u6Q0jfNtkKhL4qLZPe69fL+AWvXFt9/x38w== dependencies: mkdirp "^0.5.1" - xmldom "^0.1.22" + xmldom "^0.5.0" jasmine-spec-reporter@~7.0.0: version "7.0.0" @@ -12819,10 +12819,10 @@ xmlchars@^2.1.1: resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb" integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw== -xmldom@^0.1.22: - version "0.1.31" - resolved "https://registry.yarnpkg.com/xmldom/-/xmldom-0.1.31.tgz#b76c9a1bd9f0a9737e5a72dc37231cf38375e2ff" - integrity sha512-yS2uJflVQs6n+CyjHoaBmVSqIDevTAWrzMmjG1Gc7h1qQ7uVozNhEPJAwZXWyGQ/Gafo3fCwrcaokezLPupVyQ== +xmldom@^0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/xmldom/-/xmldom-0.5.0.tgz#193cb96b84aa3486127ea6272c4596354cb4962e" + integrity sha512-Foaj5FXVzgn7xFzsKeNIde9g6aFBxTPi37iwsno8QvApmtg7KYrr+OPyRHcJF7dud2a5nGRBXK3n0dL62Gf7PA== xtend@~4.0.1: version "4.0.2" From 266c0ce5e523570821c9a7c8604c8acc9742595c Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Mon, 19 Apr 2021 11:57:05 +0200 Subject: [PATCH 006/577] fix(@angular/cli): ignore `tsickle` during updates `tsickle` doesn't be a dependency in users projects, if it is most certain it will cause updates to fail due to mismatching peer dependency on TypeScript. --- packages/angular/cli/src/commands/update/schematic/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/angular/cli/src/commands/update/schematic/index.ts b/packages/angular/cli/src/commands/update/schematic/index.ts index d7995edca3eb..e0fc4e784c5a 100644 --- a/packages/angular/cli/src/commands/update/schematic/index.ts +++ b/packages/angular/cli/src/commands/update/schematic/index.ts @@ -178,6 +178,7 @@ function _validateReversePeerDependencies( 'codelyzer', '@schematics/update', '@angular-devkit/build-ng-packagr', + 'tsickle', ]; if (ignoredPackages.includes(installed)) { continue; From db1719b8c107b01172b6510c628d282b12f1cc2b Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Mon, 19 Apr 2021 12:40:56 +0200 Subject: [PATCH 007/577] refactor(@angular/cli): clean up left over @schematics/update code. --- .../src/commands/update/schematic/index.ts | 71 +++---------------- .../src/commands/update/schematic/schema.json | 5 -- 2 files changed, 10 insertions(+), 66 deletions(-) diff --git a/packages/angular/cli/src/commands/update/schematic/index.ts b/packages/angular/cli/src/commands/update/schematic/index.ts index e0fc4e784c5a..8724621545f4 100644 --- a/packages/angular/cli/src/commands/update/schematic/index.ts +++ b/packages/angular/cli/src/commands/update/schematic/index.ts @@ -10,10 +10,9 @@ import { Rule, SchematicContext, SchematicsException, - TaskId, Tree, } from '@angular-devkit/schematics'; -import { NodePackageInstallTask, RunSchematicTask } from '@angular-devkit/schematics/tasks'; +import { NodePackageInstallTask } from '@angular-devkit/schematics/tasks'; import * as npa from 'npm-package-arg'; import * as semver from 'semver'; import { getNpmPackageJson } from './npm'; @@ -249,7 +248,6 @@ function _performUpdate( infoMap: Map, logger: logging.LoggerApi, migrateOnly: boolean, - migrateExternal: boolean, ): void { const packageJsonContent = tree.read('/package.json'); if (!packageJsonContent) { @@ -307,11 +305,10 @@ function _performUpdate( const newContent = JSON.stringify(packageJson, null, 2); if (packageJsonContent.toString() != newContent || migrateOnly) { - let installTask: TaskId[] = []; if (!migrateOnly) { // If something changed, also hook up the task. tree.overwrite('/package.json', JSON.stringify(packageJson, null, 2)); - installTask = [context.addTask(new NodePackageInstallTask())]; + context.addTask(new NodePackageInstallTask()); } const externalMigrations: {}[] = []; @@ -331,25 +328,14 @@ function _performUpdate( : '' ) + target.updateMetadata.migrations; - if (migrateExternal) { - externalMigrations.push({ - package: name, - collection, - from: installed.version, - to: target.version, - }); - - return; - } + externalMigrations.push({ + package: name, + collection, + from: installed.version, + to: target.version, + }); - context.addTask(new RunSchematicTask('@schematics/update', 'migrate', { - package: name, - collection, - from: installed.version, - to: target.version, - }), - installTask, - ); + return; }); if (externalMigrations.length > 0) { @@ -359,36 +345,6 @@ function _performUpdate( } } -function _migrateOnly( - info: PackageInfo | undefined, - context: SchematicContext, - from: string, - to?: string, -) { - if (!info) { - return; - } - - const target = info.installed; - if (!target || !target.updateMetadata.migrations) { - return; - } - - const collection = ( - target.updateMetadata.migrations.match(/^[./]/) - ? info.name + '/' - : '' - ) + target.updateMetadata.migrations; - - context.addTask(new RunSchematicTask('@schematics/update', 'migrate', { - package: info.name, - collection, - from: from, - to: to || target.version, - }), - ); -} - function _getUpdateMetadata( packageJson: JsonSchemaForNpmPackageJsonFiles, logger: logging.LoggerApi, @@ -920,13 +876,6 @@ export default function(options: UpdateSchema): Rule { // Now that we have all the information, check the flags. if (packages.size > 0) { if (options.migrateOnly && options.from && options.packages) { - _migrateOnly( - packageInfoMap.get(options.packages[0]), - context, - options.from, - options.to, - ); - return; } @@ -937,7 +886,7 @@ export default function(options: UpdateSchema): Rule { ); _validateUpdatePackages(packageInfoMap, !!options.force, !!options.next, sublog); - _performUpdate(tree, context, packageInfoMap, logger, !!options.migrateOnly, !!options.migrateExternal); + _performUpdate(tree, context, packageInfoMap, logger, !!options.migrateOnly); } else { _usageMessage(options, packageInfoMap, logger); } diff --git a/packages/angular/cli/src/commands/update/schematic/schema.json b/packages/angular/cli/src/commands/update/schematic/schema.json index 1a6378de6485..8637bbbd7465 100644 --- a/packages/angular/cli/src/commands/update/schematic/schema.json +++ b/packages/angular/cli/src/commands/update/schematic/schema.json @@ -63,11 +63,6 @@ "cnpm", "pnpm" ] - }, - "migrateExternal": { - "type": "boolean", - "default": false, - "hidden": true } }, "required": [ From 131379f49f404922bb7ba8cf92ec7b559cc990e7 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Mon, 19 Apr 2021 13:33:19 +0200 Subject: [PATCH 008/577] fix(@angular/cli): run all migrations when updating from or between prereleases With this change we consider the update schematics are idempotent. When updating from or between prereleases we will execute all migrations for the version. --- packages/angular/cli/commands/update-impl.ts | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/packages/angular/cli/commands/update-impl.ts b/packages/angular/cli/commands/update-impl.ts index f4f1f724254e..e3a81aef6cf1 100644 --- a/packages/angular/cli/commands/update-impl.ts +++ b/packages/angular/cli/commands/update-impl.ts @@ -191,10 +191,14 @@ export class UpdateCommand extends Command { private async executeMigrations( packageName: string, collectionPath: string, - range: semver.Range, + from: string, + to: string, commit?: boolean, ): Promise { const collection = this.workflow.engine.createCollection(collectionPath); + const migrationRange = new semver.Range( + '>' + (semver.prerelease(from) ? from.split('-')[0] + '-0' : from) + ' <=' + to, + ); const migrations = []; for (const name of collection.listSchematicNames()) { @@ -207,7 +211,7 @@ export class UpdateCommand extends Command { continue; } - if (semver.satisfies(description.version, range, { includePrerelease: true })) { + if (semver.satisfies(description.version, migrationRange, { includePrerelease: true })) { migrations.push(description as typeof schematic.description & { version: string }); } } @@ -492,14 +496,11 @@ export class UpdateCommand extends Command { return 1; } - const migrationRange = new semver.Range( - '>' + from + ' <=' + (options.to || packageNode.version), - ); - success = await this.executeMigrations( packageName, migrations, - migrationRange, + from, + options.to || packageNode.version, options.createCommits, ); } @@ -647,7 +648,6 @@ export class UpdateCommand extends Command { next: !!options.next, packageManager: this.packageManager, packages: packagesToUpdate, - migrateExternal: true, }); if (success && options.createCommits) { @@ -733,7 +733,8 @@ export class UpdateCommand extends Command { const result = await this.executeMigrations( migration.package, migrations, - new semver.Range('>' + migration.from + ' <=' + migration.to), + migration.from, + migration.to, options.createCommits, ); From c3ee7540f4a59c57715a20767afbec34d9a921fa Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Mon, 19 Apr 2021 14:37:47 +0200 Subject: [PATCH 009/577] build: pin quicktype-core This is needed as currently this breaks lock file maintenance Renovate PR https://github.com/angular/angular-cli/pull/20107 due to quicktype-core has an unspecified dependency on lodash. ``` bazel-out/host/bin/tools/quicktype_runner.sh packages/angular_devkit/build_angular/src/app-shell/schema.json bazel-out/k8-fastbuild/bin/packages/angular_devkit/build_angular/src/app-shell/schema.ts) Execution platform: //tools:rbe_ubuntu1604-angular Error: Cannot find module 'lodash'. Please verify that the package.json has a valid "main" entry at Function.module.constructor._resolveFilename (/b/f/w/bazel-out/host/bin/tools/quicktype_runner.sh.runfiles/angular_cli/tools/quicktype_runner_require_patch.js:480:17) at Function.Module._load (internal/modules/cjs/loader.js:667:27) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at Object. (/b/f/w/bazel-out/host/bin/tools/quicktype_runner.sh.runfiles/npm/node_modules/quicktype-core/dist/language/Dart.js:14:18) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) INFO: Elapsed time: 81.607s, Critical Path: 8.94s ``` --- package.json | 2 +- yarn.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7e07b12c5f64..45f4b0e522be 100644 --- a/package.json +++ b/package.json @@ -189,7 +189,7 @@ "prettier": "^2.0.0", "protractor": "~7.0.0", "puppeteer": "8.0.0", - "quicktype-core": "^6.0.69", + "quicktype-core": "6.0.69", "raw-loader": "4.0.2", "regenerator-runtime": "0.13.7", "resolve-url-loader": "3.1.2", diff --git a/yarn.lock b/yarn.lock index 1f006bb34382..cec400969ab9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10061,7 +10061,7 @@ quick-lru@^4.0.1: resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-4.0.1.tgz#5b8878f113a58217848c6482026c73e1ba57727f" integrity sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g== -quicktype-core@^6.0.69: +quicktype-core@6.0.69: version "6.0.69" resolved "https://registry.yarnpkg.com/quicktype-core/-/quicktype-core-6.0.69.tgz#955347b64e8a7b6a37af49fe12f5772abc153b8e" integrity sha512-wKQ+/fwgdtFOcbeRiZkIBLA2ajvrFvmtTmexdv7PlO1dyp3C7Irbn2/HjwzalD1dYFrtMEYWohB/4rr3Mg75Xw== From 71717cf406dc0538dc28cc4cd3536c98fca37ab3 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sat, 17 Apr 2021 18:51:59 +0000 Subject: [PATCH 010/577] build: update mini-css-extract-plugin to version 1.5.0 --- package.json | 2 +- packages/angular_devkit/build_angular/package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 45f4b0e522be..221576dedef0 100644 --- a/package.json +++ b/package.json @@ -169,7 +169,7 @@ "license-checker": "^25.0.0", "loader-utils": "2.0.0", "magic-string": "0.25.7", - "mini-css-extract-plugin": "1.4.1", + "mini-css-extract-plugin": "1.5.0", "minimatch": "3.0.4", "minimist": "^1.2.0", "ng-packagr": "~12.0.0-next.0", diff --git a/packages/angular_devkit/build_angular/package.json b/packages/angular_devkit/build_angular/package.json index 23d79a9b53e1..ba9161cdd67c 100644 --- a/packages/angular_devkit/build_angular/package.json +++ b/packages/angular_devkit/build_angular/package.json @@ -41,7 +41,7 @@ "less-loader": "8.1.0", "license-webpack-plugin": "2.3.17", "loader-utils": "2.0.0", - "mini-css-extract-plugin": "1.4.1", + "mini-css-extract-plugin": "1.5.0", "minimatch": "3.0.4", "open": "8.0.5", "ora": "5.4.0", diff --git a/yarn.lock b/yarn.lock index cec400969ab9..7ee66fd1cb04 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7784,10 +7784,10 @@ min-indent@^1.0.0: resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869" integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg== -mini-css-extract-plugin@1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/mini-css-extract-plugin/-/mini-css-extract-plugin-1.4.1.tgz#975e27c1d0bd8e052972415f47c79cea5ed37548" - integrity sha512-COAGbpAsU0ioFzj+/RRfO5Qv177L1Z/XAx2EmCF33b8GDDqKygMffBTws2lit8iaPdrbKEY5P+zsseBUCREZWQ== +mini-css-extract-plugin@1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/mini-css-extract-plugin/-/mini-css-extract-plugin-1.5.0.tgz#69bee3b273d2d4ee8649a2eb409514b7df744a27" + integrity sha512-SIbuLMv6jsk1FnLIU5OUG/+VMGUprEjM1+o2trOAx8i5KOKMrhyezb1dJ4Ugsykb8Jgq8/w5NEopy6escV9G7g== dependencies: loader-utils "^2.0.0" schema-utils "^3.0.0" From e55923656c0a6b12e459ced8a2a943067bd2e985 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Thu, 15 Apr 2021 13:48:23 -0400 Subject: [PATCH 011/577] fix(@angular-devkit/build-angular): avoid double build optimizer processing TypeScript files had the potential to be processed twice by the build optimizer. This did not affect the output code but could lead to longer production build times. The build optimizer is now configured in one centralized location for both TypeScript and JavaScript files. The Webpack configuration partial for TypeScript support is also reduced to one common function for both AOT and JIT as a result. --- .../build_angular/src/browser/index.ts | 5 +-- .../build_angular/src/extract-i18n/index.ts | 9 +++- .../build_angular/src/karma/index.ts | 4 +- .../build_angular/src/server/index.ts | 4 +- .../src/webpack/configs/typescript.ts | 45 +++---------------- .../tests/build/differential-loading-sri.ts | 2 +- tests/legacy-cli/e2e/tests/build/worker.ts | 2 +- 7 files changed, 21 insertions(+), 50 deletions(-) diff --git a/packages/angular_devkit/build_angular/src/browser/index.ts b/packages/angular_devkit/build_angular/src/browser/index.ts index 0de231bbcf4b..7e1ce003dc1f 100644 --- a/packages/angular_devkit/build_angular/src/browser/index.ts +++ b/packages/angular_devkit/build_angular/src/browser/index.ts @@ -52,12 +52,11 @@ import { getIndexOutputFile, } from '../utils/webpack-browser-config'; import { - getAotConfig, getBrowserConfig, getCommonConfig, - getNonAotConfig, getStatsConfig, getStylesConfig, + getTypeScriptConfig, getWorkerConfig, } from '../webpack/configs'; import { NgBuildAnalyticsPlugin } from '../webpack/plugins/analytics'; @@ -121,7 +120,7 @@ export function getAnalyticsConfig( export function getCompilerConfig(wco: WebpackConfigOptions): webpack.Configuration { if (wco.buildOptions.main || wco.buildOptions.polyfills) { - return wco.buildOptions.aot ? getAotConfig(wco) : getNonAotConfig(wco); + return getTypeScriptConfig(wco); } return {}; diff --git a/packages/angular_devkit/build_angular/src/extract-i18n/index.ts b/packages/angular_devkit/build_angular/src/extract-i18n/index.ts index 6748db2a9e6d..bb7fdbdb7587 100644 --- a/packages/angular_devkit/build_angular/src/extract-i18n/index.ts +++ b/packages/angular_devkit/build_angular/src/extract-i18n/index.ts @@ -22,7 +22,12 @@ import { ExecutionTransformer } from '../transforms'; import { createI18nOptions } from '../utils/i18n-options'; import { assertCompatibleAngularVersion } from '../utils/version'; import { generateBrowserWebpackConfigFromContext } from '../utils/webpack-browser-config'; -import { getAotConfig, getBrowserConfig, getCommonConfig, getStatsConfig } from '../webpack/configs'; +import { + getBrowserConfig, + getCommonConfig, + getStatsConfig, + getTypeScriptConfig, +} from '../webpack/configs'; import { createWebpackLoggingCallback } from '../webpack/utils/stats'; import { Format, Schema } from './schema'; @@ -194,7 +199,7 @@ export async function execute( { plugins: [new NoEmitPlugin()] }, getCommonConfig(wco), getBrowserConfig(wco), - getAotConfig(wco), + getTypeScriptConfig(wco), getStatsConfig(wco), ]; diff --git a/packages/angular_devkit/build_angular/src/karma/index.ts b/packages/angular_devkit/build_angular/src/karma/index.ts index 76678ec8c1d5..542a8d435870 100644 --- a/packages/angular_devkit/build_angular/src/karma/index.ts +++ b/packages/angular_devkit/build_angular/src/karma/index.ts @@ -18,9 +18,9 @@ import { assertCompatibleAngularVersion } from '../utils/version'; import { generateBrowserWebpackConfigFromContext } from '../utils/webpack-browser-config'; import { getCommonConfig, - getNonAotConfig, getStylesConfig, getTestConfig, + getTypeScriptConfig, getWorkerConfig, } from '../webpack/configs'; import { SingleTestTransformLoader } from '../webpack/plugins/single-test-transform'; @@ -46,7 +46,7 @@ async function initialize( wco => [ getCommonConfig(wco), getStylesConfig(wco), - getNonAotConfig(wco), + getTypeScriptConfig(wco), getTestConfig(wco), getWorkerConfig(wco), ], diff --git a/packages/angular_devkit/build_angular/src/server/index.ts b/packages/angular_devkit/build_angular/src/server/index.ts index 6c0934943164..fffe9b344b58 100644 --- a/packages/angular_devkit/build_angular/src/server/index.ts +++ b/packages/angular_devkit/build_angular/src/server/index.ts @@ -22,11 +22,11 @@ import { readTsconfig } from '../utils/read-tsconfig'; import { assertCompatibleAngularVersion } from '../utils/version'; import { generateI18nBrowserWebpackConfigFromContext } from '../utils/webpack-browser-config'; import { - getAotConfig, getCommonConfig, getServerConfig, getStatsConfig, getStylesConfig, + getTypeScriptConfig, } from '../webpack/configs'; import { JsonCompilationStats, webpackStatsLogger } from '../webpack/utils/stats'; import { Schema as ServerBuilderOptions } from './schema'; @@ -166,7 +166,7 @@ async function initialize( getServerConfig(wco), getStylesConfig(wco), getStatsConfig(wco), - getAotConfig(wco), + getTypeScriptConfig(wco), ], ); diff --git a/packages/angular_devkit/build_angular/src/webpack/configs/typescript.ts b/packages/angular_devkit/build_angular/src/webpack/configs/typescript.ts index e9d35ef1880e..1554588acaa6 100644 --- a/packages/angular_devkit/build_angular/src/webpack/configs/typescript.ts +++ b/packages/angular_devkit/build_angular/src/webpack/configs/typescript.ts @@ -5,7 +5,6 @@ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -import { buildOptimizerLoaderPath } from '@angular-devkit/build-optimizer'; import { getSystemPath } from '@angular-devkit/core'; import { CompilerOptions } from '@angular/compiler-cli'; import { AngularWebpackLoaderPath, AngularWebpackPlugin } from '@ngtools/webpack'; @@ -78,26 +77,9 @@ function createIvyPlugin( }); } -export function getNonAotConfig(wco: WebpackConfigOptions) { - const { tsConfigPath } = wco; - - return { - module: { - rules: [ - { - test: /\.[jt]sx?$/, - loader: AngularWebpackLoaderPath, - }, - ], - }, - plugins: [ - createIvyPlugin(wco, false, tsConfigPath), - ], - }; -} - -export function getAotConfig(wco: WebpackConfigOptions) { - const { tsConfigPath, buildOptions } = wco; +export function getTypeScriptConfig(wco: WebpackConfigOptions) { + const { buildOptions, tsConfigPath } = wco; + const aot = !!buildOptions.aot; ensureIvy(wco); @@ -105,28 +87,13 @@ export function getAotConfig(wco: WebpackConfigOptions) { module: { rules: [ { - test: /\.tsx?$/, - use: [ - ...(buildOptions.buildOptimizer - ? [ - { - loader: buildOptimizerLoaderPath, - options: { sourceMap: buildOptions.sourceMap.scripts }, - }, - ] - : []), - AngularWebpackLoaderPath, - ], - }, - // "allowJs" support with ivy plugin - ensures build optimizer is not run twice - { - test: /\.jsx?$/, - use: [AngularWebpackLoaderPath], + test: /\.[jt]sx?$/, + loader: AngularWebpackLoaderPath, }, ], }, plugins: [ - createIvyPlugin(wco, true, tsConfigPath), + createIvyPlugin(wco, aot, tsConfigPath), ], }; } diff --git a/tests/legacy-cli/e2e/tests/build/differential-loading-sri.ts b/tests/legacy-cli/e2e/tests/build/differential-loading-sri.ts index cc0be82b7d95..d20457b6064a 100644 --- a/tests/legacy-cli/e2e/tests/build/differential-loading-sri.ts +++ b/tests/legacy-cli/e2e/tests/build/differential-loading-sri.ts @@ -56,7 +56,7 @@ export default async function () { '--output-path=dist/second', ); - const chunkId = '730'; + const chunkId = '265'; const codeHashES5 = createHash('sha384') .update(await readFile(`dist/first/${chunkId}-es5.js`)) .digest('base64'); diff --git a/tests/legacy-cli/e2e/tests/build/worker.ts b/tests/legacy-cli/e2e/tests/build/worker.ts index 69e03193aec7..c0102b8fe26b 100644 --- a/tests/legacy-cli/e2e/tests/build/worker.ts +++ b/tests/legacy-cli/e2e/tests/build/worker.ts @@ -35,7 +35,7 @@ export default async function () { await expectFileToMatch('dist/test-project/main-es2017.js', 'src_app_app_worker_ts'); await ng('build', '--output-hashing=none'); - const chunkId = '137'; + const chunkId = '954'; await expectFileToExist(`dist/test-project/${chunkId}-es5.js`); await expectFileToMatch('dist/test-project/main-es5.js', chunkId); await expectFileToExist(`dist/test-project/${chunkId}-es2017.js`); From fdf41b24dcfb155b19c4400d0666bbf790395bbb Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Thu, 15 Apr 2021 09:46:03 -0400 Subject: [PATCH 012/577] fix(@schematics/angular): set `inlineStyleLanguage` when application `style` option is used The `style` option for the application schematic specifies the language/preprocessor to use for the application's external style files and should also setup the default for inline styles as well via the `inlineStyleLanguage` build option. The value can be adjusted after application generation if needed. --- .../schematics/angular/application/index.ts | 7 +++ .../angular/application/index_spec.ts | 60 +++++++++++++++++++ 2 files changed, 67 insertions(+) diff --git a/packages/schematics/angular/application/index.ts b/packages/schematics/angular/application/index.ts index 97cc8b66cae4..dbc4ee700f03 100644 --- a/packages/schematics/angular/application/index.ts +++ b/packages/schematics/angular/application/index.ts @@ -140,6 +140,11 @@ function addAppToWorkspaceFile(options: ApplicationOptions, appDir: string): Rul ]; } + const inlineStyleLanguage = + options.style && options.style !== Style.Css && options.style !== Style.Styl + ? options.style + : undefined; + const project = { root: normalize(projectRoot), sourceRoot, @@ -157,6 +162,7 @@ function addAppToWorkspaceFile(options: ApplicationOptions, appDir: string): Rul polyfills: `${sourceRoot}/polyfills.ts`, tsConfig: `${projectRoot}tsconfig.app.json`, aot: true, + inlineStyleLanguage, assets: [ `${sourceRoot}/favicon.ico`, `${sourceRoot}/assets`, @@ -212,6 +218,7 @@ function addAppToWorkspaceFile(options: ApplicationOptions, appDir: string): Rul polyfills: `${sourceRoot}/polyfills.ts`, tsConfig: `${projectRoot}tsconfig.spec.json`, karmaConfig: `${projectRoot}karma.conf.js`, + inlineStyleLanguage, assets: [ `${sourceRoot}/favicon.ico`, `${sourceRoot}/assets`, diff --git a/packages/schematics/angular/application/index_spec.ts b/packages/schematics/angular/application/index_spec.ts index c32467e0f8aa..b14ebfd5c020 100644 --- a/packages/schematics/angular/application/index_spec.ts +++ b/packages/schematics/angular/application/index_spec.ts @@ -399,6 +399,66 @@ describe('Application Schematic', () => { expect(tree.exists('src/styles.sass')).toBe(true); }); + it('sets "inlineStyleLanguage" in angular.json when using a style preprocessor', async () => { + const options = { ...defaultOptions, projectRoot: '', style: Style.Sass }; + const tree = await schematicRunner + .runSchematicAsync('application', options, workspaceTree) + .toPromise(); + const config = JSON.parse(tree.readContent('/angular.json')); + const prj = config.projects.foo; + + const buildOpt = prj.architect.build.options; + expect(buildOpt.inlineStyleLanguage).toBe('sass'); + + const testOpt = prj.architect.test.options; + expect(testOpt.inlineStyleLanguage).toBe('sass'); + }); + + it('does not set "inlineStyleLanguage" in angular.json when not using a style preprocessor', async () => { + const options = { ...defaultOptions, projectRoot: ''}; + const tree = await schematicRunner + .runSchematicAsync('application', options, workspaceTree) + .toPromise(); + const config = JSON.parse(tree.readContent('/angular.json')); + const prj = config.projects.foo; + + const buildOpt = prj.architect.build.options; + expect(buildOpt.inlineStyleLanguage).toBeUndefined(); + + const testOpt = prj.architect.test.options; + expect(testOpt.inlineStyleLanguage).toBeUndefined(); + }); + + it('does not set "inlineStyleLanguage" in angular.json when using CSS styles', async () => { + const options = { ...defaultOptions, projectRoot: '', style: Style.Css }; + const tree = await schematicRunner + .runSchematicAsync('application', options, workspaceTree) + .toPromise(); + const config = JSON.parse(tree.readContent('/angular.json')); + const prj = config.projects.foo; + + const buildOpt = prj.architect.build.options; + expect(buildOpt.inlineStyleLanguage).toBeUndefined(); + + const testOpt = prj.architect.test.options; + expect(testOpt.inlineStyleLanguage).toBeUndefined(); + }); + + it('does not set "inlineStyleLanguage" in angular.json when using Stylus styles', async () => { + const options = { ...defaultOptions, projectRoot: '', style: Style.Styl }; + const tree = await schematicRunner + .runSchematicAsync('application', options, workspaceTree) + .toPromise(); + const config = JSON.parse(tree.readContent('/angular.json')); + const prj = config.projects.foo; + + const buildOpt = prj.architect.build.options; + expect(buildOpt.inlineStyleLanguage).toBeUndefined(); + + const testOpt = prj.architect.test.options; + expect(testOpt.inlineStyleLanguage).toBeUndefined(); + }); + it('should set the relative tsconfig paths', async () => { const options = { ...defaultOptions, projectRoot: '' }; const tree = await schematicRunner.runSchematicAsync('application', options, workspaceTree) From 18c8adf0dc8f017faff0040429c30ccd6872c24d Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Thu, 15 Apr 2021 09:51:38 -0400 Subject: [PATCH 013/577] fix(@schematics/angular): set `inlineStyleLanguage` for universal if present in build options The `inlineStyleLanguage` option should be set for an application's server target if also present in the application's build target. The setting is needed to ensure the server target properly builds the applica tion's styles. --- packages/schematics/angular/universal/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/schematics/angular/universal/index.ts b/packages/schematics/angular/universal/index.ts index d912875184e5..9ea723e2ea93 100644 --- a/packages/schematics/angular/universal/index.ts +++ b/packages/schematics/angular/universal/index.ts @@ -61,6 +61,7 @@ function updateConfigFile(options: UniversalOptions, tsConfigDirectory: Path): R i18nMissingTranslation: options?.i18nMissingTranslation, preserveSymlinks: options?.preserveSymlinks, extractLicenses: options?.extractLicenses, + inlineStyleLanguage: options?.inlineStyleLanguage, }; }; From 626d67fa2ce0ae4370e1a085454f1b7109efed0c Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Thu, 15 Apr 2021 05:34:15 +0000 Subject: [PATCH 014/577] build: update symbol-observable to version 4.0.0 --- package.json | 2 +- packages/angular/cli/package.json | 2 +- packages/angular_devkit/architect_cli/package.json | 2 +- packages/angular_devkit/schematics_cli/package.json | 2 +- yarn.lock | 8 ++++---- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 221576dedef0..20b6641401b9 100644 --- a/package.json +++ b/package.json @@ -206,7 +206,7 @@ "style-loader": "2.0.0", "stylus": "0.54.8", "stylus-loader": "4.3.3", - "symbol-observable": "3.0.0", + "symbol-observable": "4.0.0", "tar": "^6.0.0", "temp": "^0.9.0", "terser": "5.6.1", diff --git a/packages/angular/cli/package.json b/packages/angular/cli/package.json index d8e9d6c02cfc..36c737c6d1bf 100644 --- a/packages/angular/cli/package.json +++ b/packages/angular/cli/package.json @@ -43,7 +43,7 @@ "resolve": "1.20.0", "rimraf": "3.0.2", "semver": "7.3.5", - "symbol-observable": "3.0.0", + "symbol-observable": "4.0.0", "uuid": "8.3.2" }, "ng-update": { diff --git a/packages/angular_devkit/architect_cli/package.json b/packages/angular_devkit/architect_cli/package.json index e89f499857cd..136203e99863 100644 --- a/packages/angular_devkit/architect_cli/package.json +++ b/packages/angular_devkit/architect_cli/package.json @@ -20,7 +20,7 @@ "minimist": "1.2.5", "progress": "2.0.3", "rxjs": "6.6.7", - "symbol-observable": "3.0.0" + "symbol-observable": "4.0.0" }, "devDependencies": { "@types/progress": "2.0.3" diff --git a/packages/angular_devkit/schematics_cli/package.json b/packages/angular_devkit/schematics_cli/package.json index 2f03a7af432c..8b3ec9b68821 100644 --- a/packages/angular_devkit/schematics_cli/package.json +++ b/packages/angular_devkit/schematics_cli/package.json @@ -21,6 +21,6 @@ "ansi-colors": "4.1.1", "inquirer": "8.0.0", "minimist": "1.2.5", - "symbol-observable": "3.0.0" + "symbol-observable": "4.0.0" } } diff --git a/yarn.lock b/yarn.lock index 7ee66fd1cb04..5ffb7da9dae7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11633,10 +11633,10 @@ svgo@^2.3.0: csso "^4.2.0" stable "^0.1.8" -symbol-observable@3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-3.0.0.tgz#eea8f6478c651018e059044268375c408c15c533" - integrity sha512-6tDOXSHiVjuCaasQSWTmHUWn4PuG7qa3+1WT031yTc/swT7+rLiw3GOrFxaH1E3lLP09dH3bVuVDf2gK5rxG3Q== +symbol-observable@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-4.0.0.tgz#5b425f192279e87f2f9b937ac8540d1984b39205" + integrity sha512-b19dMThMV4HVFynSAM1++gBHAbk2Tc/osgLIBZMKsyqh34jb2e8Os7T6ZW/Bt3pJFdBTd2JwAnAAEQV7rSNvcQ== symbol-tree@^3.2.2: version "3.2.4" From e0cb8222ea683ec92e19841cfe09018ac9922e84 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Thu, 15 Apr 2021 12:29:20 -0400 Subject: [PATCH 015/577] fix(@angular-devkit/build-angular): replace Webpack 4 `hashForChunk` hook usage Webpack 5 now uses a `chunkHash` hook that is accessible from `JavascriptModulesPlugin.getCompilationHooks()`. The `hashForChunk` hooks have been deprecated in Webpack 5. --- .../src/utils/webpack-browser-config.ts | 35 +++++++------------ 1 file changed, 12 insertions(+), 23 deletions(-) diff --git a/packages/angular_devkit/build_angular/src/utils/webpack-browser-config.ts b/packages/angular_devkit/build_angular/src/utils/webpack-browser-config.ts index d8831849c6fa..d9890f05df16 100644 --- a/packages/angular_devkit/build_angular/src/utils/webpack-browser-config.ts +++ b/packages/angular_devkit/build_angular/src/utils/webpack-browser-config.ts @@ -13,7 +13,7 @@ import { resolve, } from '@angular-devkit/core'; import * as path from 'path'; -import * as webpack from 'webpack'; +import { Configuration, JavascriptModulesPlugin } from 'webpack'; import { merge as webpackMerge } from 'webpack-merge'; import { Schema as BrowserBuilderSchema } from '../browser/schema'; import { @@ -33,10 +33,10 @@ export async function generateWebpackConfig( projectRoot: string, sourceRoot: string | undefined, options: NormalizedBrowserBuilderSchema, - webpackPartialGenerator: (wco: BrowserWebpackConfigOptions) => webpack.Configuration[], + webpackPartialGenerator: (wco: BrowserWebpackConfigOptions) => Configuration[], logger: logging.LoggerApi, extraBuildOptions: Partial, -): Promise { +): Promise { // Ensure Build Optimizer is only used with AOT. if (options.buildOptimizer && !options.aot) { throw new Error(`The 'buildOptimizer' option cannot be used without 'aot'.`); @@ -70,9 +70,9 @@ export async function generateWebpackConfig( export async function generateI18nBrowserWebpackConfigFromContext( options: BrowserBuilderSchema, context: BuilderContext, - webpackPartialGenerator: (wco: BrowserWebpackConfigOptions) => webpack.Configuration[], + webpackPartialGenerator: (wco: BrowserWebpackConfigOptions) => Configuration[], extraBuildOptions: Partial = {}, -): Promise<{ config: webpack.Configuration; projectRoot: string; projectSourceRoot?: string, i18n: I18nOptions }> { +): Promise<{ config: Configuration; projectRoot: string; projectSourceRoot?: string, i18n: I18nOptions }> { const { buildOptions, i18n } = await configureI18nBuild(context, options); const result = await generateBrowserWebpackConfigFromContext( buildOptions, @@ -106,25 +106,14 @@ export async function generateI18nBrowserWebpackConfigFromContext( (data, locale) => data + locale.files.map((file) => file.integrity || '').join('|'), '', ); - if (!config.plugins) { - config.plugins = []; - } + + config.plugins ??= []; config.plugins.push({ - apply(compiler: webpack.Compiler) { + apply(compiler) { compiler.hooks.compilation.tap('build-angular', compilation => { - // Webpack typings do not contain template hashForChunk hook - // tslint:disable-next-line: no-any - (compilation.mainTemplate.hooks as any).hashForChunk.tap( - 'build-angular', - (hash: { update(data: string): void }) => { - hash.update('$localize' + i18nHash); - }, - ); - // Webpack typings do not contain hooks property - // tslint:disable-next-line: no-any - (compilation.chunkTemplate as any).hooks.hashForChunk.tap( + JavascriptModulesPlugin.getCompilationHooks(compilation).chunkHash.tap( 'build-angular', - (hash: { update(data: string): void }) => { + (_, hash) => { hash.update('$localize' + i18nHash); }, ); @@ -138,9 +127,9 @@ export async function generateI18nBrowserWebpackConfigFromContext( export async function generateBrowserWebpackConfigFromContext( options: BrowserBuilderSchema, context: BuilderContext, - webpackPartialGenerator: (wco: BrowserWebpackConfigOptions) => webpack.Configuration[], + webpackPartialGenerator: (wco: BrowserWebpackConfigOptions) => Configuration[], extraBuildOptions: Partial = {}, -): Promise<{ config: webpack.Configuration; projectRoot: string; projectSourceRoot?: string }> { +): Promise<{ config: Configuration; projectRoot: string; projectSourceRoot?: string }> { const projectName = context.target && context.target.project; if (!projectName) { throw new Error('The builder requires a target.'); From 5804fec90287f11a9a7c751ca2f868a4ae48e0a6 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Thu, 15 Apr 2021 13:11:43 -0400 Subject: [PATCH 016/577] refactor(@angular-devkit/build-angular): remove Webpack 4 specific type casting Webpack 5 contains improved types and exports that reduce the need to perform additional type casting throughout the internal Webpack plugins. --- .../src/webpack/plugins/analytics.ts | 53 ++++++++----------- .../any-component-style-budget-checker.ts | 4 +- .../plugins/dedupe-module-resolve-plugin.ts | 46 +++++----------- .../suppress-entry-chunks-webpack-plugin.ts | 52 ++++-------------- 4 files changed, 46 insertions(+), 109 deletions(-) diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/analytics.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/analytics.ts index 70867734c69b..6bd22c04bc8d 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/analytics.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/analytics.ts @@ -6,20 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ import { analytics } from '@angular-devkit/core'; -import { - Compilation, - Compiler, - Module, - Stats, - sources, -} from 'webpack'; - -const NormalModule = require('webpack/lib/NormalModule'); - -interface NormalModule extends Module { - _source?: sources.OriginalSource | null; - resource?: string; -} +import { Compilation, Compiler, Module, NormalModule, Stats } from 'webpack'; const webpackAllErrorMessageRe = /^([^(]+)\(\d+,\d\): (.*)$/gm; const webpackTsErrorMessageRe = /^[^(]+\(\d+,\d\): error (TS\d+):/; @@ -148,21 +135,26 @@ export class NgBuildAnalyticsPlugin { } protected _checkTsNormalModule(module: NormalModule) { - if (module._source) { - // PLEASE REMEMBER: - // We're dealing with ES5 _or_ ES2015 JavaScript at this point (we don't know for sure). - - // Just count the ngOnInit occurences. Comments/Strings/calls occurences should be sparse - // so we just consider them within the margin of error. We do break on word break though. - this._stats.numberOfNgOnInit += countOccurrences(module._source.source().toString(), 'ngOnInit', true); - - // Count the number of `Component({` strings (case sensitive), which happens in __decorate(). - this._stats.numberOfComponents += countOccurrences(module._source.source().toString(), 'Component({'); - // For Ivy we just count ɵcmp. - this._stats.numberOfComponents += countOccurrences(module._source.source().toString(), '.ɵcmp', true); - // for ascii_only true - this._stats.numberOfComponents += countOccurrences(module._source.source().toString(), '.\u0275cmp', true); + const originalSource = module.originalSource(); + if (!originalSource) { + return; } + + const originalContent = originalSource.source().toString(); + + // PLEASE REMEMBER: + // We're dealing with ES5 _or_ ES2015 JavaScript at this point (we don't know for sure). + + // Just count the ngOnInit occurences. Comments/Strings/calls occurences should be sparse + // so we just consider them within the margin of error. We do break on word break though. + this._stats.numberOfNgOnInit += countOccurrences(originalContent, 'ngOnInit', true); + + // Count the number of `Component({` strings (case sensitive), which happens in __decorate(). + this._stats.numberOfComponents += countOccurrences(originalContent, 'Component({'); + // For Ivy we just count ɵcmp. + this._stats.numberOfComponents += countOccurrences(originalContent, '.ɵcmp', true); + // for ascii_only true + this._stats.numberOfComponents += countOccurrences(originalContent, '.\u0275cmp', true); } protected _collectErrors(stats: Stats) { @@ -231,12 +223,11 @@ export class NgBuildAnalyticsPlugin { * Reports a succeed module. * @private */ - protected _succeedModule(mod: Module) { + protected _succeedModule(module: Module) { // Only report NormalModule instances. - if (mod.constructor !== NormalModule) { + if (!(module instanceof NormalModule)) { return; } - const module = mod as {} as NormalModule; // Only reports modules that are part of the user's project. We also don't do node_modules. // There is a chance that someone name a file path `hello_node_modules` or something and we diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/any-component-style-budget-checker.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/any-component-style-budget-checker.ts index 2810ed3397a6..bd2fd7f63fba 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/any-component-style-budget-checker.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/any-component-style-budget-checker.ts @@ -29,9 +29,7 @@ export class AnyComponentStyleBudgetChecker { compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => { const afterOptimizeChunkAssets = () => { // In AOT compilations component styles get processed in child compilations. - // tslint:disable-next-line: no-any - const parentCompilation = (compilation.compiler as any).parentCompilation; - if (!parentCompilation) { + if (!compilation.compiler.parentCompilation) { return; } diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/dedupe-module-resolve-plugin.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/dedupe-module-resolve-plugin.ts index b4366fb8337e..144520906f4b 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/dedupe-module-resolve-plugin.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/dedupe-module-resolve-plugin.ts @@ -21,30 +21,17 @@ export interface DedupeModuleResolvePluginOptions { // tslint:disable-next-line: no-any function getResourceData(resolveData: any): ResourceData { - if (resolveData.createData) { - // Webpack 5+ - const { - descriptionFileData, - relativePath, - } = resolveData.createData.resourceResolveData; - - return { - packageName: descriptionFileData?.name, - packageVersion: descriptionFileData?.version, - relativePath, - resource: resolveData.createData.resource, - }; - } else { - // Webpack 4 - const { resource, resourceResolveData } = resolveData; - - return { - packageName: resourceResolveData.descriptionFileData?.name, - packageVersion: resourceResolveData.descriptionFileData?.version, - relativePath: resourceResolveData.relativePath, - resource: resource, - }; - } + const { + descriptionFileData, + relativePath, + } = resolveData.createData.resourceResolveData; + + return { + packageName: descriptionFileData?.name, + packageVersion: descriptionFileData?.version, + relativePath, + resource: resolveData.createData.resource, + }; } /** @@ -100,14 +87,9 @@ export class DedupeModuleResolvePlugin { } // Alter current request with previously resolved module. - // tslint:disable-next-line: no-any - const createData = (result as any).createData; - if (createData) { - createData.resource = prevResource; - createData.userRequest = prevResource; - } else { - result.request = prevRequest; - } + const createData = result.createData as { resource: string; userRequest: string }; + createData.resource = prevResource; + createData.userRequest = prevRequest; }); }); } diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/suppress-entry-chunks-webpack-plugin.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/suppress-entry-chunks-webpack-plugin.ts index 882506509ed6..a0a2617ad6d8 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/suppress-entry-chunks-webpack-plugin.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/suppress-entry-chunks-webpack-plugin.ts @@ -21,7 +21,6 @@ export class SuppressExtractedTextChunksWebpackPlugin { // Only chunks with a css asset should have JavaScript assets removed let hasCssFile = false; - // chunk.files is an Array in Webpack 4 and a Set in Webpack 5 for (const file of chunk.files) { if (file.endsWith('.css')) { hasCssFile = true; @@ -35,53 +34,20 @@ export class SuppressExtractedTextChunksWebpackPlugin { // Only chunks with all CSS entry dependencies should have JavaScript assets removed let cssOnly = false; - // The any cast is used for default Webpack 4 type compatibility - // tslint:disable-next-line: no-any - const entryModules = (compilation as any).chunkGraph?.getChunkEntryModulesIterable(chunk); - if (entryModules) { - // Webpack 5 - for (const module of entryModules) { - cssOnly = module.dependencies.every( - (dependency: {}) => dependency.constructor.name === 'CssDependency', - ); + const entryModules = compilation.chunkGraph.getChunkEntryModulesIterable(chunk); + for (const module of entryModules) { + cssOnly = module.dependencies.every( + (dependency: {}) => dependency.constructor.name === 'CssDependency', + ); - if (!cssOnly) { - break; - } - } - } else { - // Webpack 4 - for (const module of chunk.modulesIterable as Iterable<{ dependencies: {}[] }>) { - cssOnly = module.dependencies.every((dependency) => { - const name = dependency.constructor.name; - - return ( - name === 'CssDependency' || - name === 'SingleEntryDependency' || - name === 'MultiEntryDependency' || - name === 'HarmonyCompatibilityDependency' || - name === 'HarmonyExportHeaderDependency' || - name === 'HarmonyInitDependency' - ); - }); - - if (!cssOnly) { - break; - } + if (!cssOnly) { + break; } } if (cssOnly) { - if (Array.isArray(chunk.files)) { - // Webpack 4 - (chunk.files as string[]) = chunk.files.filter((file) => file !== filename); - delete compilation.assets[filename]; - } else { - // Webpack 5 - // Casting is used for default Webpack 4 type compatibility - ((chunk.files as unknown) as Set).delete(filename); - ((compilation as unknown) as { deleteAsset(file: string): void }).deleteAsset(filename); - } + chunk.files.delete(filename); + compilation.deleteAsset(filename); } }); }); From fd655d463fd25a25ab1b932a33a30898f8c45861 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sat, 17 Apr 2021 18:24:28 +0000 Subject: [PATCH 017/577] build: update sass to version 1.32.10 --- package.json | 2 +- packages/angular_devkit/build_angular/package.json | 2 +- yarn.lock | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 20b6641401b9..a5a159cb63bc 100644 --- a/package.json +++ b/package.json @@ -195,7 +195,7 @@ "resolve-url-loader": "3.1.2", "rimraf": "3.0.2", "rxjs": "6.6.7", - "sass": "1.32.8", + "sass": "1.32.10", "sass-loader": "11.0.1", "sauce-connect-proxy": "https://saucelabs.com/downloads/sc-4.6.4-linux.tar.gz", "semver": "7.3.5", diff --git a/packages/angular_devkit/build_angular/package.json b/packages/angular_devkit/build_angular/package.json index ba9161cdd67c..6c9ad0e1aedd 100644 --- a/packages/angular_devkit/build_angular/package.json +++ b/packages/angular_devkit/build_angular/package.json @@ -55,7 +55,7 @@ "resolve-url-loader": "3.1.2", "rimraf": "3.0.2", "rxjs": "6.6.7", - "sass": "1.32.8", + "sass": "1.32.10", "sass-loader": "11.0.1", "semver": "7.3.5", "source-map": "0.7.3", diff --git a/yarn.lock b/yarn.lock index 5ffb7da9dae7..0e453342273c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3332,7 +3332,7 @@ chardet@^0.7.0: resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== -"chokidar@>=2.0.0 <4.0.0", chokidar@^3.0.0, chokidar@^3.4.2, chokidar@^3.5.1: +"chokidar@>=2.0.0 <4.0.0", "chokidar@>=3.0.0 <4.0.0", chokidar@^3.0.0, chokidar@^3.4.2, chokidar@^3.5.1: version "3.5.1" resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.1.tgz#ee9ce7bbebd2b79f49f304799d5468e31e14e68a" integrity sha512-9+s+Od+W0VJJzawDma/gvBNQqkTiqYTWLuZoyAsivsI4AaWTCzHG06/TMjsf1cYe9Cb97UCEhjz7HvnPk2p/tw== @@ -10693,12 +10693,12 @@ sass-loader@11.0.1: klona "^2.0.4" neo-async "^2.6.2" -sass@1.32.8: - version "1.32.8" - resolved "https://registry.yarnpkg.com/sass/-/sass-1.32.8.tgz#f16a9abd8dc530add8834e506878a2808c037bdc" - integrity sha512-Sl6mIeGpzjIUZqvKnKETfMf0iDAswD9TNlv13A7aAF3XZlRPMq4VvJWBC2N2DXbp94MQVdNSFG6LfF/iOXrPHQ== +sass@1.32.10: + version "1.32.10" + resolved "https://registry.yarnpkg.com/sass/-/sass-1.32.10.tgz#d40da4e20031b450359ee1c7e69bc8cc89569241" + integrity sha512-Nx0pcWoonAkn7CRp0aE/hket1UP97GiR1IFw3kcjV3pnenhWgZEWUf0ZcfPOV2fK52fnOcK3JdC/YYZ9E47DTQ== dependencies: - chokidar ">=2.0.0 <4.0.0" + chokidar ">=3.0.0 <4.0.0" sass@^1.32.5: version "1.32.7" From 6d0207d4a200b7673b60b84986d571b048e28178 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 16 Apr 2021 08:56:30 +0000 Subject: [PATCH 018/577] build: update less-loader to version 8.1.1 --- package.json | 2 +- packages/angular_devkit/build_angular/package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index a5a159cb63bc..30d22583fa89 100644 --- a/package.json +++ b/package.json @@ -165,7 +165,7 @@ "karma-jasmine-html-reporter": "^1.5.0", "karma-source-map-support": "1.4.0", "less": "4.1.1", - "less-loader": "8.1.0", + "less-loader": "8.1.1", "license-checker": "^25.0.0", "loader-utils": "2.0.0", "magic-string": "0.25.7", diff --git a/packages/angular_devkit/build_angular/package.json b/packages/angular_devkit/build_angular/package.json index 6c9ad0e1aedd..26bae19485b4 100644 --- a/packages/angular_devkit/build_angular/package.json +++ b/packages/angular_devkit/build_angular/package.json @@ -38,7 +38,7 @@ "jest-worker": "26.6.2", "karma-source-map-support": "1.4.0", "less": "4.1.1", - "less-loader": "8.1.0", + "less-loader": "8.1.1", "license-webpack-plugin": "2.3.17", "loader-utils": "2.0.0", "mini-css-extract-plugin": "1.5.0", diff --git a/yarn.lock b/yarn.lock index 0e453342273c..c40aeb2365dc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7138,10 +7138,10 @@ klona@^2.0.4: resolved "https://registry.yarnpkg.com/klona/-/klona-2.0.4.tgz#7bb1e3affb0cb8624547ef7e8f6708ea2e39dfc0" integrity sha512-ZRbnvdg/NxqzC7L9Uyqzf4psi1OM4Cuc+sJAkQPjO6XkQIJTNbfK2Rsmbw8fx1p2mkZdp2FZYo2+LwXYY/uwIA== -less-loader@8.1.0: - version "8.1.0" - resolved "https://registry.yarnpkg.com/less-loader/-/less-loader-8.1.0.tgz#8276adc16bf6576dd80b71563685a2cfe93b0a50" - integrity sha512-IE73O5LY5WHA71EDwszM2PIEGDF30xz45GplpRhYuxMXhAvXoMudu/ItjllNR/ht7XLh5N7JegzRg11HYu+xxg== +less-loader@8.1.1: + version "8.1.1" + resolved "https://registry.yarnpkg.com/less-loader/-/less-loader-8.1.1.tgz#ababe912580457ad00a4318146aac5b53e023f42" + integrity sha512-K93jJU7fi3n6rxVvzp8Cb88Uy9tcQKfHlkoezHwKILXhlNYiRQl4yowLIkQqmBXOH/5I8yoKiYeIf781HGkW9g== dependencies: klona "^2.0.4" From 072f3a70096fe3ef2edec203075c68c6e0311be2 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 19 Apr 2021 17:13:48 +0000 Subject: [PATCH 019/577] build: update webpack to version 5.34.0 --- package.json | 2 +- .../angular_devkit/build_angular/package.json | 2 +- .../build_optimizer/package.json | 2 +- .../angular_devkit/build_webpack/package.json | 2 +- packages/ngtools/webpack/package.json | 2 +- yarn.lock | 25 ++++++++++++++----- 6 files changed, 24 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 30d22583fa89..a815ab2892e5 100644 --- a/package.json +++ b/package.json @@ -223,7 +223,7 @@ "typescript": "4.2.4", "verdaccio": "5.0.1", "verdaccio-auth-memory": "^10.0.0", - "webpack": "5.32.0", + "webpack": "5.34.0", "webpack-dev-middleware": "4.1.0", "webpack-dev-server": "3.11.2", "webpack-merge": "5.7.3", diff --git a/packages/angular_devkit/build_angular/package.json b/packages/angular_devkit/build_angular/package.json index 26bae19485b4..a40b5dcbe75f 100644 --- a/packages/angular_devkit/build_angular/package.json +++ b/packages/angular_devkit/build_angular/package.json @@ -68,7 +68,7 @@ "terser-webpack-plugin": "4.2.3", "text-table": "0.2.0", "tree-kill": "1.2.2", - "webpack": "5.32.0", + "webpack": "5.34.0", "webpack-dev-middleware": "4.1.0", "webpack-dev-server": "3.11.2", "webpack-merge": "5.7.3", diff --git a/packages/angular_devkit/build_optimizer/package.json b/packages/angular_devkit/build_optimizer/package.json index 5bfa929d1189..78ae330b1db9 100644 --- a/packages/angular_devkit/build_optimizer/package.json +++ b/packages/angular_devkit/build_optimizer/package.json @@ -22,6 +22,6 @@ } }, "devDependencies": { - "webpack": "5.32.0" + "webpack": "5.34.0" } } diff --git a/packages/angular_devkit/build_webpack/package.json b/packages/angular_devkit/build_webpack/package.json index 2db099a6a9e3..6d199c8a2048 100644 --- a/packages/angular_devkit/build_webpack/package.json +++ b/packages/angular_devkit/build_webpack/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@angular-devkit/core": "0.0.0", "node-fetch": "2.6.1", - "webpack": "5.32.0" + "webpack": "5.34.0" }, "peerDependencies": { "webpack": "^5.30.0", diff --git a/packages/ngtools/webpack/package.json b/packages/ngtools/webpack/package.json index d2f2203acb75..5f841c1f79fe 100644 --- a/packages/ngtools/webpack/package.json +++ b/packages/ngtools/webpack/package.json @@ -33,6 +33,6 @@ "@angular/compiler": "12.0.0-next.9", "@angular/compiler-cli": "12.0.0-next.9", "typescript": "4.2.4", - "webpack": "5.32.0" + "webpack": "5.34.0" } } diff --git a/yarn.lock b/yarn.lock index c40aeb2365dc..3a44e89d3fc4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1799,6 +1799,11 @@ resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f" integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw== +"@types/estree@^0.0.47": + version "0.0.47" + resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.47.tgz#d7a51db20f0650efec24cd04994f523d93172ed4" + integrity sha512-c5ciR06jK8u9BstrmJyO97m+klJrrhCf9u3rLu3DEAJBirxRqSCvDQoYKmxuYwQI5SZChAWu+tq9oVlGRuzPAg== + "@types/express-serve-static-core@*", "@types/express-serve-static-core@^4.17.18": version "4.17.18" resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.17.18.tgz#8371e260f40e0e1ca0c116a9afcd9426fa094c40" @@ -4857,6 +4862,14 @@ enhanced-resolve@5.7.0, enhanced-resolve@^5.7.0: graceful-fs "^4.2.4" tapable "^2.2.0" +enhanced-resolve@^5.8.0: + version "5.8.0" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.8.0.tgz#d9deae58f9d3773b6a111a5a46831da5be5c9ac0" + integrity sha512-Sl3KRpJA8OpprrtaIswVki3cWPiPKxXuFxJXBp+zNb6s6VwNWwFRUdtmzd2ReUut8n+sCPx7QCtQ7w5wfJhSgQ== + dependencies: + graceful-fs "^4.2.4" + tapable "^2.2.0" + ent@~2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/ent/-/ent-2.2.0.tgz#e964219325a21d05f44466a2f686ed6ce5f5dd1d" @@ -12601,20 +12614,20 @@ webpack-subresource-integrity@1.5.2: dependencies: webpack-sources "^1.3.0" -webpack@5.32.0: - version "5.32.0" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.32.0.tgz#f013932d778dad81bd51292d0ea00865056dc22c" - integrity sha512-jB9PrNMFnPRiZGnm/j3qfNqJmP3ViRzkuQMIf8za0dgOYvSLi/cgA+UEEGvik9EQHX1KYyGng5PgBTTzGrH9xg== +webpack@5.34.0: + version "5.34.0" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.34.0.tgz#8f12bfd3474e7543232345b89294cfe8a5191c10" + integrity sha512-+WiFMgaZqhu7zKN64LQ7z0Ml4WWI+9RwG6zmS0wJDQXiCeg3hpN8fYFNJ+6WlosDT55yVxTfK7XHUAOVR4rLyA== dependencies: "@types/eslint-scope" "^3.7.0" - "@types/estree" "^0.0.46" + "@types/estree" "^0.0.47" "@webassemblyjs/ast" "1.11.0" "@webassemblyjs/wasm-edit" "1.11.0" "@webassemblyjs/wasm-parser" "1.11.0" acorn "^8.0.4" browserslist "^4.14.5" chrome-trace-event "^1.0.2" - enhanced-resolve "^5.7.0" + enhanced-resolve "^5.8.0" es-module-lexer "^0.4.0" eslint-scope "^5.1.1" events "^3.2.0" From 1c6ba1f9f665fe515a7fda24fd4016c88cc9bcbe Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 16 Apr 2021 08:56:50 +0000 Subject: [PATCH 020/577] build: update open to version 8.0.6 --- package.json | 2 +- packages/angular/cli/package.json | 2 +- packages/angular_devkit/build_angular/package.json | 2 +- yarn.lock | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index a815ab2892e5..7d655cc5cc9a 100644 --- a/package.json +++ b/package.json @@ -175,7 +175,7 @@ "ng-packagr": "~12.0.0-next.0", "node-fetch": "^2.2.0", "npm-registry-client": "8.6.0", - "open": "8.0.5", + "open": "8.0.6", "ora": "5.4.0", "pacote": "11.3.1", "parse5-html-rewriting-stream": "6.0.1", diff --git a/packages/angular/cli/package.json b/packages/angular/cli/package.json index 36c737c6d1bf..60fc10b1ac38 100644 --- a/packages/angular/cli/package.json +++ b/packages/angular/cli/package.json @@ -37,7 +37,7 @@ "jsonc-parser": "3.0.0", "npm-package-arg": "8.1.2", "npm-pick-manifest": "6.1.1", - "open": "8.0.5", + "open": "8.0.6", "ora": "5.4.0", "pacote": "11.3.1", "resolve": "1.20.0", diff --git a/packages/angular_devkit/build_angular/package.json b/packages/angular_devkit/build_angular/package.json index a40b5dcbe75f..93ecc6e9daa2 100644 --- a/packages/angular_devkit/build_angular/package.json +++ b/packages/angular_devkit/build_angular/package.json @@ -43,7 +43,7 @@ "loader-utils": "2.0.0", "mini-css-extract-plugin": "1.5.0", "minimatch": "3.0.4", - "open": "8.0.5", + "open": "8.0.6", "ora": "5.4.0", "parse5-html-rewriting-stream": "6.0.1", "postcss": "8.2.10", diff --git a/yarn.lock b/yarn.lock index 3a44e89d3fc4..dfc2628d499b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8473,10 +8473,10 @@ onetime@^5.1.0: dependencies: mimic-fn "^2.1.0" -open@8.0.5: - version "8.0.5" - resolved "https://registry.yarnpkg.com/open/-/open-8.0.5.tgz#92ee3faafef4ddbe78006f7881572f3e81430b8f" - integrity sha512-hkPXCz7gijWp2GoWqsQ4O/5p7F6d5pIQ/+9NyeWG1nABJ4zvLi9kJRv1a44kVf5p13wK0WMoiRA+Xey68yOytA== +open@8.0.6: + version "8.0.6" + resolved "https://registry.yarnpkg.com/open/-/open-8.0.6.tgz#bdf94a80b4ef5685d8c7b58fb0fbbe5729b37204" + integrity sha512-vDOC0KwGabMPFtIpCO2QOnQeOz0N2rEkbuCuxICwLMUCrpv+A7NHrrzJ2dQReJmVluHhO4pYRh/Pn6s8t7Op6Q== dependencies: define-lazy-prop "^2.0.0" is-docker "^2.1.1" From 5a57fea36bd3d1d1beb02b500edfc7a6b0f0c3cc Mon Sep 17 00:00:00 2001 From: Keen Yee Liau Date: Wed, 14 Apr 2021 11:00:37 -0700 Subject: [PATCH 021/577] docs(@schematics/angular): add README and update description in schema Create README for the package, and add missing description in some schema. --- packages/schematics/angular/README.md | 33 +++++++++++++++++++ packages/schematics/angular/class/schema.json | 2 +- .../schematics/angular/component/schema.json | 2 +- .../schematics/angular/directive/schema.json | 2 +- .../schematics/angular/interface/schema.json | 2 +- .../schematics/angular/library/schema.json | 2 +- .../schematics/angular/module/schema.json | 2 +- .../schematics/angular/ng-new/schema.json | 1 + packages/schematics/angular/package.json | 1 + packages/schematics/angular/pipe/schema.json | 2 +- .../schematics/angular/web-worker/schema.json | 2 +- .../schematics/angular/workspace/schema.json | 1 + 12 files changed, 44 insertions(+), 8 deletions(-) create mode 100644 packages/schematics/angular/README.md diff --git a/packages/schematics/angular/README.md b/packages/schematics/angular/README.md new file mode 100644 index 000000000000..2d6059c3866e --- /dev/null +++ b/packages/schematics/angular/README.md @@ -0,0 +1,33 @@ +# @schematics/angular + +This package contains a collection of [schematics](/packages/angular_devkit/schematics/README.md) +for generating an Angular application. + +## Schematics + +Name | Description +-----|------------- +app-shell | Generates an app shell for running a server-side version of an app +application | Generates a new basic app definition in the "projects" subfolder of the workspace +class | Creates a new, generic class definition in the given or default project +component | Creates a new, generic component definition in the given or default project +directive | Creates a new, generic directive definition in the given or default project +e2e | Generates a new, generic end-to-end test definition for the given or default project +enum | Generates a new, generic enum definition for the given or default project +guard | Generates a new, generic route guard definition in the given or default project +interceptor | Creates a new, generic interceptor definition in the given or default project +interface | Creates a new, generic interface definition in the given or default project +library | Creates a new, generic library project in the current workspace +module | Creates a new, generic NgModule definition in the given or default project +ng-new | Creates a new project by combining the workspace and application schematics +pipe | Creates a new, generic pipe definition in the given or default project +resolver | Creates a new, generic resolver definition in the given or default project +service | Creates a new, generic service definition in the given or default project +service-worker | Pass this schematic to the "run" command to create a service worker +universal | Pass this schematic to the "run" command to set up server-side rendering for an app +web-worker | Creates a new, generic web worker definition in the given or default project +workspace | Initializes an empty workspace and adds the necessary dependencies required by an Angular application + +## Disclaimer + +While the schematics when executed via the Angular CLI and their associated options are considered stable, the programmatic APIs are not considered officially supported and are not subject to the breaking change guarantees of SemVer. \ No newline at end of file diff --git a/packages/schematics/angular/class/schema.json b/packages/schematics/angular/class/schema.json index fec7d348a8a6..f6493ad82fed 100644 --- a/packages/schematics/angular/class/schema.json +++ b/packages/schematics/angular/class/schema.json @@ -3,7 +3,7 @@ "$id": "SchematicsAngularClass", "title": "Angular Class Options Schema", "type": "object", - "description": "Creates a new generic class definition in the given or default project.", + "description": "Creates a new, generic class definition in the given or default project.", "additionalProperties": false, "properties": { "name": { diff --git a/packages/schematics/angular/component/schema.json b/packages/schematics/angular/component/schema.json index 0693bdab7973..5771134a840e 100644 --- a/packages/schematics/angular/component/schema.json +++ b/packages/schematics/angular/component/schema.json @@ -3,7 +3,7 @@ "$id": "SchematicsAngularComponent", "title": "Angular Component Options Schema", "type": "object", - "description": "Creates a new generic component definition in the given or default project.", + "description": "Creates a new, generic component definition in the given or default project.", "additionalProperties": false, "properties": { "path": { diff --git a/packages/schematics/angular/directive/schema.json b/packages/schematics/angular/directive/schema.json index 5b427521821a..d822a6c99306 100644 --- a/packages/schematics/angular/directive/schema.json +++ b/packages/schematics/angular/directive/schema.json @@ -3,7 +3,7 @@ "$id": "SchematicsAngularDirective", "title": "Angular Directive Options Schema", "type": "object", - "description": "Creates a new generic directive definition in the given or default project.", + "description": "Creates a new, generic directive definition in the given or default project.", "additionalProperties": false, "properties": { "name": { diff --git a/packages/schematics/angular/interface/schema.json b/packages/schematics/angular/interface/schema.json index 256b28edd80f..835ea2e71696 100644 --- a/packages/schematics/angular/interface/schema.json +++ b/packages/schematics/angular/interface/schema.json @@ -4,7 +4,7 @@ "title": "Angular Interface Options Schema", "type": "object", "additionalProperties": false, - "description": "Creates a new generic interface definition in the given or default project.", + "description": "Creates a new, generic interface definition in the given or default project.", "properties": { "name": { "type": "string", diff --git a/packages/schematics/angular/library/schema.json b/packages/schematics/angular/library/schema.json index 4a2147db60aa..418941b419d7 100644 --- a/packages/schematics/angular/library/schema.json +++ b/packages/schematics/angular/library/schema.json @@ -3,7 +3,7 @@ "$id": "SchematicsLibrary", "title": "Library Options Schema", "type": "object", - "description": "Creates a new generic library project in the current workspace.", + "description": "Creates a new, generic library project in the current workspace.", "long-description": "./library-long.md", "additionalProperties": false, "properties": { diff --git a/packages/schematics/angular/module/schema.json b/packages/schematics/angular/module/schema.json index c8abc36729c1..a803aa3754ef 100644 --- a/packages/schematics/angular/module/schema.json +++ b/packages/schematics/angular/module/schema.json @@ -4,7 +4,7 @@ "title": "Angular Module Options Schema", "type": "object", "additionalProperties": false, - "description": "Creates a new generic NgModule definition in the given or default project.", + "description": "Creates a new, generic NgModule definition in the given or default project.", "properties": { "name": { "type": "string", diff --git a/packages/schematics/angular/ng-new/schema.json b/packages/schematics/angular/ng-new/schema.json index fc725d8fc288..1ea1ce692990 100644 --- a/packages/schematics/angular/ng-new/schema.json +++ b/packages/schematics/angular/ng-new/schema.json @@ -3,6 +3,7 @@ "$id": "SchematicsAngularNgNew", "title": "Angular Ng New Options Schema", "type": "object", + "description": "Creates a new project by combining the workspace and application schematics.", "additionalProperties": false, "properties": { "directory": { diff --git a/packages/schematics/angular/package.json b/packages/schematics/angular/package.json index fa634e3887b0..2dbe09db2bc4 100644 --- a/packages/schematics/angular/package.json +++ b/packages/schematics/angular/package.json @@ -2,6 +2,7 @@ "name": "@schematics/angular", "version": "0.0.0", "description": "Schematics specific to Angular", + "homepage": "https://github.com/angular/angular-cli", "keywords": [ "blueprints", "code generation", diff --git a/packages/schematics/angular/pipe/schema.json b/packages/schematics/angular/pipe/schema.json index d4cb51981e43..b7feeb8f933f 100644 --- a/packages/schematics/angular/pipe/schema.json +++ b/packages/schematics/angular/pipe/schema.json @@ -4,7 +4,7 @@ "title": "Angular Pipe Options Schema", "type": "object", "additionalProperties": false, - "description": "Creates a new generic pipe definition in the given or default project.", + "description": "Creates a new, generic pipe definition in the given or default project.", "properties": { "name": { "type": "string", diff --git a/packages/schematics/angular/web-worker/schema.json b/packages/schematics/angular/web-worker/schema.json index ac1ed8f0cadb..3ac67c1f1fec 100644 --- a/packages/schematics/angular/web-worker/schema.json +++ b/packages/schematics/angular/web-worker/schema.json @@ -4,7 +4,7 @@ "title": "Angular Web Worker Options Schema", "type": "object", "additionalProperties": false, - "description": "Creates a new generic web worker definition in the given or default project.", + "description": "Creates a new, generic web worker definition in the given or default project.", "properties": { "path": { "type": "string", diff --git a/packages/schematics/angular/workspace/schema.json b/packages/schematics/angular/workspace/schema.json index 0f39c1ab1973..ad9788874f57 100644 --- a/packages/schematics/angular/workspace/schema.json +++ b/packages/schematics/angular/workspace/schema.json @@ -2,6 +2,7 @@ "$schema": "http://json-schema.org/draft-07/schema", "$id": "SchematicsAngularWorkspace", "title": "Angular Workspace Options Schema", + "description": "Initializes an empty workspace and adds the necessary dependencies required by an Angular application.", "type": "object", "additionalProperties": false, "properties": { From 4a455871b1e7ecec4fc384d36aa4b9bb86121b03 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Mon, 19 Apr 2021 14:50:17 +0200 Subject: [PATCH 022/577] ci: format angular-robot configuration Previously, running `yarn ng-dev caretaker check` would fail with `Multi-line double-quoted string needs to be sufficiently indented`. --- .github/angular-robot.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/angular-robot.yml b/.github/angular-robot.yml index 03cda7b51d33..546301497bd3 100644 --- a/.github/angular-robot.yml +++ b/.github/angular-robot.yml @@ -14,8 +14,10 @@ merge: failureText: "The following checks are failing:" # comment that will be added to a PR when there is a conflict, leave empty or set to false to disable - mergeConflictComment: "Hi @{{PRAuthor}}! This PR has merge conflicts due to recent upstream merges. -\nPlease help to unblock it by resolving these conflicts. Thanks!" + mergeConflictComment: >- + Hi @{{PRAuthor}}! This PR has merge conflicts due to recent upstream merges. + + Please help to unblock it by resolving these conflicts. Thanks! # label to monitor mergeLabel: "action: merge" @@ -54,13 +56,18 @@ merge: # the comment that will be added when the merge label is added despite failing checks, leave empty or set to false to disable # {{MERGE_LABEL}} will be replaced by the value of the mergeLabel option # {{PLACEHOLDER}} will be replaced by the list of failing checks - mergeRemovedComment: "I see that you just added the `{{MERGE_LABEL}}` label, but the following checks are still failing: -\n{{PLACEHOLDER}} -\n -\n**If you want your PR to be merged, it has to pass all the CI checks.** -\n -\nIf you can't get the PR to a green state due to flakes or broken master, please try rebasing to master and/or restarting the CI job. If that fails and you believe that the issue is not due to your change, please contact the caretaker and ask for help." + mergeRemovedComment: >- + I see that you just added the `{{MERGE_LABEL}}` label, but the following + checks are still failing: + {{PLACEHOLDER}} + + **If you want your PR to be merged, it has to pass all the CI checks.** + + If you can't get the PR to a green state due to flakes or broken master, + please try rebasing to master and/or restarting the CI job. If that fails + and you believe that the issue is not due to your change, please contact the + caretaker and ask for help. # options for the triage plugin triage: # set to true to disable From cb9e51f6873c0a879e2e41c2d079de875f04c9be Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Fri, 16 Apr 2021 11:27:39 +0200 Subject: [PATCH 023/577] refactor(@angular-devkit/build-angular): remove custom Webpack Stats types Webpack 5 contains improved types that we can leverage. --- .../build_angular/src/browser/index.ts | 14 +-- .../build_angular/src/server/index.ts | 4 +- .../src/utils/bundle-calculator.ts | 38 +++--- .../src/utils/bundle-calculator_spec.ts | 36 +++--- .../src/utils/webpack-diagnostics.ts | 2 - .../any-component-style-budget-checker.ts | 27 ++-- .../src/webpack/utils/async-chunks.ts | 20 ++- .../src/webpack/utils/async-chunks_spec.ts | 8 +- .../build_angular/src/webpack/utils/stats.ts | 115 +++++++----------- 9 files changed, 110 insertions(+), 154 deletions(-) diff --git a/packages/angular_devkit/build_angular/src/browser/index.ts b/packages/angular_devkit/build_angular/src/browser/index.ts index 7e1ce003dc1f..e3ab7b5865c9 100644 --- a/packages/angular_devkit/build_angular/src/browser/index.ts +++ b/packages/angular_devkit/build_angular/src/browser/index.ts @@ -65,8 +65,6 @@ import { normalizeExtraEntryPoints } from '../webpack/utils/helpers'; import { BundleStats, ChunkType, - JsonChunkStats, - JsonCompilationStats, generateBundleStats, statsErrorsToString, statsHasErrors, @@ -260,7 +258,7 @@ export function buildWebpackBrowser( emittedFiles = [], outputPath: webpackOutputPath, } = buildEvent; - const webpackRawStats = buildEvent.webpackStats as JsonCompilationStats; + const webpackRawStats = buildEvent.webpackStats; if (!webpackRawStats) { throw new Error('Webpack stats build result is required.'); } @@ -568,7 +566,7 @@ export function buildWebpackBrowser( executor.stop(); } for (const result of processResults) { - const chunk = webpackStats.chunks?.find((chunk) => chunk.id.toString() === result.name); + const chunk = webpackStats.chunks?.find((chunk) => chunk.id?.toString() === result.name); if (result.original) { bundleInfoStats.push(generateBundleInfoStats(result.original, chunk, 'modern')); @@ -580,10 +578,10 @@ export function buildWebpackBrowser( } const unprocessedChunks = webpackStats.chunks?.filter((chunk) => !processResults - .find((result) => chunk.id.toString() === result.name), + .find((result) => chunk.id?.toString() === result.name), ) || []; for (const chunk of unprocessedChunks) { - const asset = webpackStats.assets?.find(a => a.name === chunk.files[0]); + const asset = webpackStats.assets?.find(a => a.name === chunk.files?.[0]); bundleInfoStats.push(generateBundleStats({ ...chunk, size: asset?.size })); } } else { @@ -771,7 +769,7 @@ function assertNever(input: never): never { function generateBundleInfoStats( bundle: ProcessBundleFile, - chunk: JsonChunkStats | undefined, + chunk: webpack.StatsChunk | undefined, chunkType: ChunkType, ): BundleStats { return generateBundleStats( @@ -779,7 +777,7 @@ function generateBundleInfoStats( size: bundle.size, files: bundle.map ? [bundle.filename, bundle.map.filename] : [bundle.filename], names: chunk?.names, - entry: !!chunk?.names.includes('runtime'), + entry: !!chunk?.names?.includes('runtime'), initial: !!chunk?.initial, rendered: true, chunkType, diff --git a/packages/angular_devkit/build_angular/src/server/index.ts b/packages/angular_devkit/build_angular/src/server/index.ts index fffe9b344b58..87ad57f2e442 100644 --- a/packages/angular_devkit/build_angular/src/server/index.ts +++ b/packages/angular_devkit/build_angular/src/server/index.ts @@ -28,7 +28,7 @@ import { getStylesConfig, getTypeScriptConfig, } from '../webpack/configs'; -import { JsonCompilationStats, webpackStatsLogger } from '../webpack/utils/stats'; +import { webpackStatsLogger } from '../webpack/utils/stats'; import { Schema as ServerBuilderOptions } from './schema'; /** @@ -119,7 +119,7 @@ export function execute( ); } - webpackStatsLogger(context.logger, webpackStats as JsonCompilationStats, config); + webpackStatsLogger(context.logger, webpackStats, config); return { ...output, success }; }), diff --git a/packages/angular_devkit/build_angular/src/utils/bundle-calculator.ts b/packages/angular_devkit/build_angular/src/utils/bundle-calculator.ts index 31dee86cf99c..150085b6239b 100644 --- a/packages/angular_devkit/build_angular/src/utils/bundle-calculator.ts +++ b/packages/angular_devkit/build_angular/src/utils/bundle-calculator.ts @@ -6,14 +6,10 @@ * found in the LICENSE file at https://angular.io/license */ import { basename } from 'path'; +import { StatsAsset, StatsChunk, StatsCompilation } from 'webpack'; import { Budget, Type } from '../browser/schema'; import { ProcessBundleFile, ProcessBundleResult } from '../utils/process-bundle'; -import { - JsonAssetStats, - JsonChunkStats, - JsonCompilationStats, - formatSize, -} from '../webpack/utils/stats'; +import { formatSize } from '../webpack/utils/stats'; interface Size { size: number; @@ -108,7 +104,7 @@ export function* calculateThresholds(budget: Budget): IterableIterator processResult.name === chunk.id.toString()); + .find((processResult) => processResult.name === chunk.id?.toString()); if (processResult) { // Found a differential build, use the correct size information. @@ -176,8 +172,11 @@ abstract class Calculator { return processResultFile && processResultFile.size || 0; } else { // No differential builds, get the chunk size by summing its assets. - return chunk.files - .filter(file => !file.endsWith('.map')) + if (!chunk.files) { + return 0; + } + + return chunk.files.filter(file => !file.endsWith('.map')) .map(file => { const asset = this.assets.find((asset) => asset.name === file); if (!asset) { @@ -190,7 +189,7 @@ abstract class Calculator { } } - protected getAssetSize(asset: JsonAssetStats): number { + protected getAssetSize(asset: StatsAsset): number { if (asset.name.endsWith('.js')) { const processResult = this.processResults .find((processResult) => processResult.original && basename(processResult.original.filename) === asset.name); @@ -219,8 +218,9 @@ class BundleCalculator extends Calculator { // each then check afterwards if they are all the same. const buildSizes = Object.values(DifferentialBuildType).map((buildType) => { const size = this.chunks - .filter(chunk => chunk.names.includes(budgetName)) - .map(chunk => this.calculateChunkSize(chunk, buildType)) + .filter(chunk => chunk?.names?.includes(budgetName)) + // tslint:disable-next-line: no-non-null-assertion + .map(chunk => this.calculateChunkSize(chunk!, buildType)) .reduce((l, r) => l + r, 0); return { size, label: `bundle ${this.budget.name}-${buildTypeLabels[buildType]}` }; @@ -358,7 +358,7 @@ function calculateBytes( export function* checkBudgets( budgets: Budget[], - webpackStats: JsonCompilationStats, + webpackStats: StatsCompilation, processResults: ProcessBundleResult[], ): IterableIterator<{ severity: ThresholdSeverity, message: string }> { // Ignore AnyComponentStyle budgets as these are handled in `AnyComponentStyleBudgetChecker`. diff --git a/packages/angular_devkit/build_angular/src/utils/bundle-calculator_spec.ts b/packages/angular_devkit/build_angular/src/utils/bundle-calculator_spec.ts index a9fe37c633dc..fe628e4bc9c9 100644 --- a/packages/angular_devkit/build_angular/src/utils/bundle-calculator_spec.ts +++ b/packages/angular_devkit/build_angular/src/utils/bundle-calculator_spec.ts @@ -5,6 +5,7 @@ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ +import { StatsCompilation } from 'webpack'; import { Budget, Type } from '../browser/schema'; import { ThresholdSeverity, checkBudgets } from './bundle-calculator'; import { ProcessBundleResult } from './process-bundle'; @@ -32,7 +33,7 @@ describe('bundle-calculator', () => { size: 0.5 * KB, }, ], - }; + } as unknown as StatsCompilation; const failures = Array.from(checkBudgets(budgets, stats, [] /* processResults */)); @@ -60,7 +61,7 @@ describe('bundle-calculator', () => { size: 0.5 * KB, }, ], - }; + } as unknown as StatsCompilation; const failures = Array.from(checkBudgets(budgets, stats, [] /* processResults */)); @@ -95,7 +96,7 @@ describe('bundle-calculator', () => { size: 0.75 * KB, }, ], - }; + } as unknown as StatsCompilation; const failures = Array.from(checkBudgets(budgets, stats, [] /* processResults */)); @@ -121,7 +122,8 @@ describe('bundle-calculator', () => { }, ], assets: [], - }; + } as unknown as StatsCompilation; + const processResults: ProcessBundleResult[] = [ { name: '0', @@ -164,7 +166,7 @@ describe('bundle-calculator', () => { }, ], assets: [], - }; + } as unknown as StatsCompilation; const processResults: ProcessBundleResult[] = [ { name: '0', @@ -211,7 +213,7 @@ describe('bundle-calculator', () => { size: 0.75 * KB, }, ], - }; + } as unknown as StatsCompilation; const failures = Array.from(checkBudgets(budgets, stats, [] /* processResults */)); @@ -237,7 +239,7 @@ describe('bundle-calculator', () => { }, ], assets: [], - }; + } as unknown as StatsCompilation; const processResults: ProcessBundleResult[] = [ { name: '0', @@ -281,7 +283,7 @@ describe('bundle-calculator', () => { }, ], assets: [], - }; + } as unknown as StatsCompilation; const processResults: ProcessBundleResult[] = [ { name: '0', @@ -332,7 +334,7 @@ describe('bundle-calculator', () => { size: 1.5 * KB, }, ], - }; + } as unknown as StatsCompilation; const failures = Array.from(checkBudgets(budgets, stats, [] /* processResults */)); @@ -367,7 +369,7 @@ describe('bundle-calculator', () => { size: 0.75 * KB, }, ], - }; + } as unknown as StatsCompilation; const failures = Array.from(checkBudgets(budgets, stats, [] /* processResults */)); @@ -402,7 +404,7 @@ describe('bundle-calculator', () => { size: 0.5 * KB, }, ], - }; + } as unknown as StatsCompilation; const failures = Array.from(checkBudgets(budgets, stats, [] /* processResults */)); @@ -433,7 +435,7 @@ describe('bundle-calculator', () => { size: 0.5 * KB, }, ], - }; + } as unknown as StatsCompilation; const failures = Array.from(checkBudgets(budgets, stats, [] /* processResults */)); @@ -468,7 +470,7 @@ describe('bundle-calculator', () => { size: 0.5 * KB, }, ], - }; + } as unknown as StatsCompilation; const failures = Array.from(checkBudgets(budgets, stats, [] /* processResults */)); @@ -499,7 +501,7 @@ describe('bundle-calculator', () => { size: 1.25 * KB, }, ], - }; + } as unknown as StatsCompilation; const processResults: ProcessBundleResult[] = [ { name: '0', @@ -542,7 +544,7 @@ describe('bundle-calculator', () => { size: 1.25 * KB, }, ], - }; + } as unknown as StatsCompilation; const processResults: ProcessBundleResult[] = [ { name: '0', @@ -585,7 +587,7 @@ describe('bundle-calculator', () => { size: 1.25 * KB, }, ], - }; + } as unknown as StatsCompilation; const processResults: ProcessBundleResult[] = [ { name: '0', @@ -628,7 +630,7 @@ describe('bundle-calculator', () => { size: 1.25 * KB, }, ], - }; + } as unknown as StatsCompilation; const processResults: ProcessBundleResult[] = [ { name: '0', diff --git a/packages/angular_devkit/build_angular/src/utils/webpack-diagnostics.ts b/packages/angular_devkit/build_angular/src/utils/webpack-diagnostics.ts index 4cccd20788dc..ac9b5cbc7c38 100644 --- a/packages/angular_devkit/build_angular/src/utils/webpack-diagnostics.ts +++ b/packages/angular_devkit/build_angular/src/utils/webpack-diagnostics.ts @@ -9,10 +9,8 @@ import { Compilation, WebpackError } from 'webpack'; export function addWarning(compilation: Compilation, message: string): void { compilation.warnings.push(new WebpackError(message)); - } export function addError(compilation: Compilation, message: string): void { compilation.errors.push(new WebpackError(message)); - } diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/any-component-style-budget-checker.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/any-component-style-budget-checker.ts index bd2fd7f63fba..32c3d863132f 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/any-component-style-budget-checker.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/any-component-style-budget-checker.ts @@ -27,7 +27,10 @@ export class AnyComponentStyleBudgetChecker { apply(compiler: Compiler) { compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => { - const afterOptimizeChunkAssets = () => { + compilation.hooks.processAssets.tap({ + name: PLUGIN_NAME, + stage: Compilation.PROCESS_ASSETS_STAGE_ANALYSE, + }, () => { // In AOT compilations component styles get processed in child compilations. if (!compilation.compiler.parentCompilation) { return; @@ -47,10 +50,10 @@ export class AnyComponentStyleBudgetChecker { size: compilation.assets[name].size(), label: name, })); - const thresholds = flatMap(this.budgets, (budget) => calculateThresholds(budget)); - for (const {size, label} of componentStyles) { - for (const {severity, message} of checkThresholds(thresholds[Symbol.iterator](), size, label)) { + const thresholds = this.budgets.flatMap(budget => [...calculateThresholds(budget)]); + for (const { size, label } of componentStyles) { + for (const { severity, message } of checkThresholds(thresholds[Symbol.iterator](), size, label)) { switch (severity) { case ThresholdSeverity.Warning: addWarning(compilation, message); @@ -60,26 +63,14 @@ export class AnyComponentStyleBudgetChecker { break; default: assertNever(severity); - break; } } } - }; - - compilation.hooks.processAssets.tap({ - name: PLUGIN_NAME, - stage: Compilation.PROCESS_ASSETS_STAGE_ANALYSE, - }, afterOptimizeChunkAssets); + }); }); } } function assertNever(input: never): never { - throw new Error(`Unexpected call to assertNever() with input: ${ - JSON.stringify(input, null /* replacer */, 4 /* tabSize */)}`); -} - -function flatMap(list: T[], mapper: (item: T, index: number, array: T[]) => IterableIterator): R[] { - return ([] as R[]).concat(...list.map(mapper).map((iterator) => Array.from(iterator))); - + throw new Error(`Unexpected call to assertNever() with input: ${JSON.stringify(input, null /* replacer */, 4 /* tabSize */)}`); } diff --git a/packages/angular_devkit/build_angular/src/webpack/utils/async-chunks.ts b/packages/angular_devkit/build_angular/src/webpack/utils/async-chunks.ts index 4023b41d5177..73186b22b123 100644 --- a/packages/angular_devkit/build_angular/src/webpack/utils/async-chunks.ts +++ b/packages/angular_devkit/build_angular/src/webpack/utils/async-chunks.ts @@ -5,8 +5,8 @@ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ +import { StatsChunk, StatsCompilation } from 'webpack'; import { NormalizedEntryPoint } from './helpers'; -import { JsonChunkStats, JsonCompilationStats } from './stats'; /** * Webpack stats may incorrectly mark extra entry points `initial` chunks, when @@ -15,18 +15,18 @@ import { JsonChunkStats, JsonCompilationStats } from './stats'; * whereever necessary. Does not modify {@param webpackStats}. */ export function markAsyncChunksNonInitial( - webpackStats: JsonCompilationStats, + webpackStats: StatsCompilation, extraEntryPoints: NormalizedEntryPoint[], -): JsonChunkStats[] { - const {chunks = [], entrypoints: entryPoints = {}} = webpackStats; +): StatsChunk[] { + const { chunks = [], entrypoints: entryPoints = {} } = webpackStats; // Find all Webpack chunk IDs not injected into the main bundle. We don't have // to worry about transitive dependencies because extra entry points cannot be // depended upon in Webpack, thus any extra entry point with `inject: false`, // **cannot** be loaded in main bundle. - const asyncEntryPoints = extraEntryPoints.filter((entryPoint) => !entryPoint.inject); - const asyncChunkIds = flatMap(asyncEntryPoints, - (entryPoint) => entryPoints[entryPoint.bundleName].chunks); + const asyncChunkIds = extraEntryPoints + .filter((entryPoint) => !entryPoint.inject) + .flatMap((entryPoint) => entryPoints[entryPoint.bundleName].chunks); // Find chunks for each ID. const asyncChunks = asyncChunkIds.map((chunkId) => { @@ -40,7 +40,7 @@ export function markAsyncChunksNonInitial( }) // All Webpack chunks are dependent on `runtime`, which is never an async // entry point, simply ignore this one. - .filter((chunk) => chunk.names.indexOf('runtime') === -1); + .filter((chunk) => !!(chunk.names?.includes('runtime'))); // A chunk is considered `initial` only if Webpack already belives it to be initial // and the application developer did not mark it async via an extra entry point. @@ -49,7 +49,3 @@ export function markAsyncChunksNonInitial( initial: chunk.initial && !asyncChunks.find((asyncChunk) => asyncChunk === chunk), })); } - -function flatMap(list: T[], mapper: (item: T, index: number, array: T[]) => R[]): R[] { - return ([] as R[]).concat(...list.map(mapper)); -} diff --git a/packages/angular_devkit/build_angular/src/webpack/utils/async-chunks_spec.ts b/packages/angular_devkit/build_angular/src/webpack/utils/async-chunks_spec.ts index f6b9629380e1..2b7eaee389c4 100644 --- a/packages/angular_devkit/build_angular/src/webpack/utils/async-chunks_spec.ts +++ b/packages/angular_devkit/build_angular/src/webpack/utils/async-chunks_spec.ts @@ -62,7 +62,7 @@ describe('async-chunks', () => { }, ]; - const newChunks = markAsyncChunksNonInitial(webpackStats, extraEntryPoints); + const newChunks = markAsyncChunksNonInitial(webpackStats as unknown as webpack.StatsCompilation, extraEntryPoints); expect(newChunks).toEqual([ { @@ -83,7 +83,7 @@ describe('async-chunks', () => { initial: false, // No longer initial because it was marked async. files: [], }, - ]); + ] as unknown as webpack.StatsChunk[]); }); it('ignores runtime dependency of async chunks', () => { @@ -116,7 +116,7 @@ describe('async-chunks', () => { }, ]; - const newChunks = markAsyncChunksNonInitial(webpackStats, extraEntryPoints); + const newChunks = markAsyncChunksNonInitial(webpackStats as unknown as webpack.StatsCompilation, extraEntryPoints); expect(newChunks).toEqual([ { @@ -131,7 +131,7 @@ describe('async-chunks', () => { initial: true, // Still initial, even though its a dependency. files: [], }, - ]); + ] as unknown as webpack.StatsChunk[]); }); }); }); diff --git a/packages/angular_devkit/build_angular/src/webpack/utils/stats.ts b/packages/angular_devkit/build_angular/src/webpack/utils/stats.ts index 79cb2c1073ba..e00571debd33 100644 --- a/packages/angular_devkit/build_angular/src/webpack/utils/stats.ts +++ b/packages/angular_devkit/build_angular/src/webpack/utils/stats.ts @@ -5,39 +5,12 @@ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -// tslint:disable -// TODO: cleanup this file, it's copied as is from Angular CLI. -import { logging, tags } from '@angular-devkit/core'; import { WebpackLoggingCallback } from '@angular-devkit/build-webpack'; +import { logging, tags } from '@angular-devkit/core'; import * as path from 'path'; import * as textTable from 'text-table'; +import { Configuration, StatsCompilation } from 'webpack'; import { colors as ansiColors, removeColor } from '../../utils/color'; -import { Configuration } from 'webpack'; - -export interface JsonAssetStats { - name: string; - size: number; -} - -export interface JsonChunkStats { - id: number | string; - initial?: boolean; - files: string[]; - names: string[]; -} - -export interface JsonEntrypointStats { - chunks: (number | string)[]; -} - -export interface JsonCompilationStats { - assets?: JsonAssetStats[]; - chunks?: JsonChunkStats[]; - entrypoints?: Record; - outputPath?: string; - warnings?: ({ message: string } | string)[]; - errors?: ({ message: string } | string)[]; -} export function formatSize(size: number): string { if (size <= 0) { @@ -49,6 +22,7 @@ export function formatSize(size: number): string { const roundedSize = size / Math.pow(1024, index); // bytes don't have a fraction const fractionDigits = index === 0 ? 0 : 2; + return `${roundedSize.toFixed(fractionDigits)} ${abbreviations[index]}`; } @@ -60,12 +34,12 @@ export interface BundleStats { initial: boolean; stats: BundleStatsData; chunkType: ChunkType; -}; +} export function generateBundleStats( info: { size?: number; - files: string[]; + files?: string[]; names?: string[]; entry?: boolean; initial?: boolean; @@ -74,7 +48,7 @@ export function generateBundleStats( }, ): BundleStats { const size = typeof info.size === 'number' ? info.size : '-'; - const files = info.files.filter(f => !f.endsWith('.map')).map(f => path.basename(f)).join(', '); + const files = info.files?.filter(f => !f.endsWith('.map')).map(f => path.basename(f)).join(', ') ?? ''; const names = info.names?.length ? info.names.join(', ') : '-'; const initial = !!(info.entry || info.initial); const chunkType = info.chunkType || 'unknown'; @@ -83,7 +57,7 @@ export function generateBundleStats( chunkType, initial, stats: [files, names, size], - } + }; } function generateBuildStatsTable(data: BundleStats[], colors: boolean, showTotalSize: boolean): string { @@ -178,10 +152,16 @@ function generateBuildStatsTable(data: BundleStats[], colors: boolean, showTotal function generateBuildStats(hash: string, time: number, colors: boolean): string { const w = (x: string) => colors ? ansiColors.bold.white(x) : x; + return `Build at: ${w(new Date().toISOString())} - Hash: ${w(hash)} - Time: ${w('' + time)}ms`; } -function statsToString(json: any, statsConfig: any, bundleState?: BundleStats[]): string { +// tslint:disable-next-line: no-any +function statsToString(json: StatsCompilation, statsConfig: any, bundleState?: BundleStats[]): string { + if (!json.chunks?.length) { + return ''; + } + const colors = statsConfig.colors; const rs = (x: string) => colors ? ansiColors.reset(x) : x; @@ -193,8 +173,8 @@ function statsToString(json: any, statsConfig: any, bundleState?: BundleStats[]) continue; } - const assets = json.assets.filter((asset: any) => chunk.files.includes(asset.name)); - const summedSize = assets.filter((asset: any) => !asset.name.endsWith(".map")).reduce((total: number, asset: any) => { return total + asset.size }, 0); + const assets = json.assets?.filter(asset => chunk.files?.includes(asset.name)); + const summedSize = assets?.filter(asset => !asset.name.endsWith('.map')).reduce((total, asset) => total + asset.size, 0); changedChunksStats.push(generateBundleStats({ ...chunk, size: summedSize })); } unchangedChunkNumber = json.chunks.length - changedChunksStats.length; @@ -218,7 +198,10 @@ function statsToString(json: any, statsConfig: any, bundleState?: BundleStats[]) // In some cases we do things outside of webpack context // Such us index generation, service worker augmentation etc... // This will correct the time and include these. - const time = (Date.now() - json.builtAt) + json.time; + let time = 0; + if (json.builtAt !== undefined && json.time !== undefined) { + time = (Date.now() - json.builtAt) + json.time; + } if (unchangedChunkNumber > 0) { return '\n' + rs(tags.stripIndents` @@ -226,13 +209,13 @@ function statsToString(json: any, statsConfig: any, bundleState?: BundleStats[]) ${unchangedChunkNumber} unchanged chunks - ${generateBuildStats(json.hash, time, colors)} + ${generateBuildStats(json.hash || '', time, colors)} `); } else { return '\n' + rs(tags.stripIndents` ${statsTable} - ${generateBuildStats(json.hash, time, colors)} + ${generateBuildStats(json.hash || '', time, colors)} `); } } @@ -244,29 +227,24 @@ export const IGNORE_WARNINGS = [ // https://github.com/webpack-contrib/source-map-loader/blob/b2de4249c7431dd8432da607e08f0f65e9d64219/src/index.js#L83 /Failed to parse source map from/, ]; -interface WebpackDiagnostic { - message: string; - file?: string; - moduleName?: string; - loc?: string; -} -export function statsWarningsToString(json: any, statsConfig: any): string { +// tslint:disable-next-line: no-any +export function statsWarningsToString(json: StatsCompilation, statsConfig: any): string { const colors = statsConfig.colors; const c = (x: string) => colors ? ansiColors.reset.cyan(x) : x; const y = (x: string) => colors ? ansiColors.reset.yellow(x) : x; const yb = (x: string) => colors ? ansiColors.reset.yellowBright(x) : x; - const warnings = [...json.warnings]; + const warnings = json.warnings ? [...json.warnings] : []; if (json.children) { warnings.push(...json.children - .map((c: any) => c.warnings) - .reduce((a: string[], b: string[]) => [...a, ...b], []) + .map(c => c.warnings ?? []) + .reduce((a, b) => [...a, ...b], []), ); } let output = ''; - for (const warning of warnings as (string | WebpackDiagnostic)[]) { + for (const warning of warnings) { if (typeof warning === 'string') { output += yb(`Warning: ${warning}\n\n`); } else { @@ -285,29 +263,26 @@ export function statsWarningsToString(json: any, statsConfig: any): string { } } - if (output) { - return '\n' + output; - } - - return ''; + return output ? '\n' + output : output; } -export function statsErrorsToString(json: any, statsConfig: any): string { +// tslint:disable-next-line: no-any +export function statsErrorsToString(json: StatsCompilation, statsConfig: any): string { const colors = statsConfig.colors; const c = (x: string) => colors ? ansiColors.reset.cyan(x) : x; const yb = (x: string) => colors ? ansiColors.reset.yellowBright(x) : x; const r = (x: string) => colors ? ansiColors.reset.redBright(x) : x; - const errors = [...json.errors]; + const errors = json.errors ? [...json.errors] : []; if (json.children) { errors.push(...json.children - .map((c: any) => c.errors) - .reduce((a: string[], b: string[]) => [...a, ...b], []) + .map(c => c?.errors || []) + .reduce((a, b) => [...a, ...b], []), ); } let output = ''; - for (const error of errors as (string | WebpackDiagnostic)[]) { + for (const error of errors) { if (typeof error === 'string') { output += r(`Error: ${error}\n\n`); } else { @@ -326,19 +301,15 @@ export function statsErrorsToString(json: any, statsConfig: any): string { } } - if (output) { - return '\n' + output; - } - - return ''; + return output ? '\n' + output : output; } -export function statsHasErrors(json: any): boolean { - return json.errors.length || !!json.children?.some((c: any) => c.errors.length); +export function statsHasErrors(json: StatsCompilation): boolean { + return !!(json.errors?.length || json.children?.some(c => c.errors?.length)); } -export function statsHasWarnings(json: any): boolean { - return json.warnings.length || !!json.children?.some((c: any) => c.warnings.length); +export function statsHasWarnings(json: StatsCompilation): boolean { + return !!(json.warnings?.length || json.children?.some(c => c.warnings?.length)); } export function createWebpackLoggingCallback( @@ -358,7 +329,7 @@ export function createWebpackLoggingCallback( builtAt: true, assets: true, chunks: true, - }) as JsonCompilationStats, + }), config, ); }; @@ -366,7 +337,7 @@ export function createWebpackLoggingCallback( export function webpackStatsLogger( logger: logging.LoggerApi, - json: JsonCompilationStats, + json: StatsCompilation, config: Configuration, bundleStats?: BundleStats[], ): void { @@ -378,4 +349,4 @@ export function webpackStatsLogger( if (statsHasErrors(json)) { logger.error(statsErrorsToString(json, config.stats)); } -}; +} From 04f5dfe5e2fc97bcf0641f1d2f8edfc59dae57b2 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Tue, 20 Apr 2021 15:09:46 +0200 Subject: [PATCH 024/577] fix(@angular-devkit/build-angular): use new Webpack watch API in karma webpack plugin In Webpack 5, the Webpack callback must be used when Webpack is running in watch mode. Related warning ``` .(node:6565) [DEP_WEBPACK_WATCH_WITHOUT_CALLBACK] DeprecationWarning: A 'callback' argument need to be provided to the 'webpack(options, callback)' function when the 'watch' option is set. There is no way to handle the 'watch' option without a callback. ``` --- .../plugins/karma/karma-webpack-failure-cb.ts | 24 ---- .../src/webpack/plugins/karma/karma.ts | 108 ++++++++---------- 2 files changed, 49 insertions(+), 83 deletions(-) delete mode 100644 packages/angular_devkit/build_angular/src/webpack/plugins/karma/karma-webpack-failure-cb.ts diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/karma/karma-webpack-failure-cb.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/karma/karma-webpack-failure-cb.ts deleted file mode 100644 index b4c02479bd6e..000000000000 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/karma/karma-webpack-failure-cb.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -// tslint:disable -// TODO: cleanup this file, it's copied as is from Angular CLI. - -// Force Webpack to throw compilation errors. Useful with karma-webpack when in single-run mode. -// Workaround for https://github.com/webpack-contrib/karma-webpack/issues/66 - -export class KarmaWebpackFailureCb { - constructor(private callback: (error: string | undefined, errors: string[]) => void) { } - - apply(compiler: any): void { - compiler.hooks.done.tap('KarmaWebpackFailureCb', (stats: any) => { - if (stats.compilation.errors.length > 0) { - this.callback(undefined, stats.compilation.errors.map((error: any) => error.message? error.message : error.toString())); - } - }); - } -} diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/karma/karma.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/karma/karma.ts index 1c77fab9f80c..6ec37f782ecb 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/karma/karma.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/karma/karma.ts @@ -13,23 +13,13 @@ import * as glob from 'glob'; import * as webpack from 'webpack'; const webpackDevMiddleware = require('webpack-dev-middleware'); -import { KarmaWebpackFailureCb } from './karma-webpack-failure-cb'; import { statsErrorsToString } from '../../utils/stats'; -import { getWebpackStatsConfig } from '../../configs/stats'; import { createConsoleLogger } from '@angular-devkit/core/node'; import { logging } from '@angular-devkit/core'; import { WebpackTestOptions } from '../../../utils/build-options'; import { normalizeSourceMaps } from '../../../utils/index'; -/** - * Enumerate needed (but not require/imported) dependencies from this file - * to let the dependency validator know they are used. - * - * require('source-map-support') - * require('karma-source-map-support') - */ - - const KARMA_APPLICATION_PATH = '_karma_webpack_'; +const KARMA_APPLICATION_PATH = '_karma_webpack_'; let blocked: any[] = []; @@ -64,7 +54,7 @@ function addKarmaFiles(files: any[], newFiles: any[], prepend = false) { const init: any = (config: any, emitter: any) => { if (!config.buildWebpack) { throw new Error(`The '@angular-devkit/build-angular/plugins/karma' karma plugin is meant to` + - ` be used from within Angular CLI and will not work correctly outside of it.` + ` be used from within Angular CLI and will not work correctly outside of it.` ) } const options = config.buildWebpack.options as WebpackTestOptions; @@ -94,7 +84,7 @@ const init: any = (config: any, emitter: any) => { if (options.codeCoverage) { config.plugins = config.plugins || []; config.reporters = config.reporters || []; - const {plugins, reporters} = config; + const { plugins, reporters } = config; const hasCoveragePlugin = plugins.some(isPlugin('karma-coverage', 'reporter:coverage')); const hasIstanbulPlugin = plugins.some(isPlugin('karma-coverage-istanbul-reporter', 'reporter:coverage-istanbul')); const hasCoverageReporter = reporters.includes('coverage'); @@ -110,8 +100,8 @@ const init: any = (config: any, emitter: any) => { if (hasIstanbulPlugin) { logger.warn(`'karma-coverage-istanbul-reporter' usage has been deprecated since version 11.\n` + - `Please install 'karma-coverage' and update 'karma.conf.js.' ` + - 'For more info, see https://github.com/karma-runner/karma-coverage/blob/master/README.md'); + `Please install 'karma-coverage' and update 'karma.conf.js.' ` + + 'For more info, see https://github.com/karma-runner/karma-coverage/blob/master/README.md'); } } @@ -123,21 +113,9 @@ const init: any = (config: any, emitter: any) => { publicPath: `/${KARMA_APPLICATION_PATH}/`, }; - const compilationErrorCb = (error: string | undefined, errors: string[]) => { - // Notify potential listeners of the compile error - emitter.emit('compile_error', errors); - - // Finish Karma run early in case of compilation error. - emitter.emit('run_complete', [], { exitCode: 1 }); - - // Unblock any karma requests (potentially started using `karma run`) - unblock(); - } - webpackConfig.plugins.push(new KarmaWebpackFailureCb(compilationErrorCb)); - // Use existing config if any. - config.webpack = Object.assign(webpackConfig, config.webpack); - config.webpackMiddleware = Object.assign(webpackMiddlewareConfig, config.webpackMiddleware); + config.webpack = { ...webpackConfig, ...config.webpack }; + config.webpackMiddleware = { ...webpackMiddlewareConfig, ...config.webpackMiddleware } // Our custom context and debug files list the webpack bundles directly instead of using // the karma files array. @@ -151,7 +129,11 @@ const init: any = (config: any, emitter: any) => { config.middleware.push('@angular-devkit/build-angular--fallback'); // The webpack tier owns the watch behavior so we want to force it in the config. - webpackConfig.watch = !config.singleRun; + // When not in watch mode, webpack-dev-middleware will call `compiler.watch` anyway. + // https://github.com/webpack/webpack-dev-middleware/blob/698c9ae5e9bb9a013985add6189ff21c1a1ec185/src/index.js#L65 + // https://github.com/webpack/webpack/blob/cde1b73e12eb8a77eb9ba42e7920c9ec5d29c2c9/lib/Compiler.js#L379-L388 + webpackConfig.watch = true; + if (config.singleRun) { // There's no option to turn off file watching in webpack-dev-server, but // we can override the file watcher instead. @@ -167,46 +149,54 @@ const init: any = (config: any, emitter: any) => { webpackConfig.output.path = `/${KARMA_APPLICATION_PATH}/`; webpackConfig.output.publicPath = `/${KARMA_APPLICATION_PATH}/`; - let compiler; - try { - compiler = webpack(webpackConfig); - } catch (e) { - logger.error(e.stack || e) - if (e.details) { - logger.error(e.details) + const compiler = webpack(webpackConfig, (error, stats) => { + if (error) { + throw error; } - throw e; - } - function handler(callback?: () => void) { - isBlocked = true; + if (stats?.hasErrors()) { + // Only generate needed JSON stats and when needed. + const statsJson = stats?.toJson({ + all: false, + children: true, + errors: true, + warnings: true, + }); - if (typeof callback === 'function') { - callback(); + logger.error(statsErrorsToString(statsJson, { colors: true })); + + // Notify potential listeners of the compile error. + emitter.emit('compile_error', { + errors: statsJson.errors?.map(e => e.message), + }); + + // Finish Karma run early in case of compilation error. + emitter.emit('run_complete', [], { exitCode: 1 }); + + // Emit a failure build event if there are compilation errors. + failureCb(); } + }); + + function handler(callback?: () => void): void { + isBlocked = true; + callback?.(); } compiler.hooks.invalid.tap('karma', () => handler()); - compiler.hooks.watchRun.tapAsync('karma', (_: any, callback: () => void) => handler(callback)); - compiler.hooks.run.tapAsync('karma', (_: any, callback: () => void) => handler(callback)); - function unblock(){ + function unblock() { isBlocked = false; blocked.forEach((cb) => cb()); blocked = []; } let lastCompilationHash: string | undefined; - const statsConfig = getWebpackStatsConfig(); compiler.hooks.done.tap('karma', (stats) => { if (stats.hasErrors()) { - // Print compilation errors. - logger.error(statsErrorsToString(stats.compilation, statsConfig)); lastCompilationHash = undefined; - // Emit a failure build event if there are compilation errors. - failureCb(); } else if (stats.hash != lastCompilationHash) { // Refresh karma only when there are no webpack errors, and if the compilation changed. lastCompilationHash = stats.hash; @@ -215,7 +205,7 @@ const init: any = (config: any, emitter: any) => { unblock(); }); - webpackMiddleware = new webpackDevMiddleware(compiler, webpackMiddlewareConfig); + webpackMiddleware = webpackDevMiddleware(compiler, webpackMiddlewareConfig); emitter.on('exit', (done: any) => { webpackMiddleware.close(); @@ -244,12 +234,12 @@ function requestBlocker() { // browser log, because it is an utility reporter, // unless it's alone in the "reporters" option and base reporter is used. function muteDuplicateReporterLogging(context: any, config: any) { - context.writeCommonMsg = function () { }; + context.writeCommonMsg = () => { } const reporterName = '@angular/cli'; const hasTrailingReporters = config.reporters.slice(-1).pop() !== reporterName; if (hasTrailingReporters) { - context.writeCommonMsg = function () { }; + context.writeCommonMsg = () => { }; } } @@ -268,7 +258,7 @@ const eventReporter: any = function (this: any, baseReporterDecorator: any, conf } // avoid duplicate failure message - this.specFailure = () => {}; + this.specFailure = () => { }; }; eventReporter.$inject = ['baseReporterDecorator', 'config']; @@ -287,10 +277,10 @@ const sourceMapReporter: any = function (this: any, baseReporterDecorator: any, }; // avoid duplicate complete message - this.onRunComplete = () => {}; + this.onRunComplete = () => { }; // avoid duplicate failure message - this.specFailure = () => {}; + this.specFailure = () => { }; }; sourceMapReporter.$inject = ['baseReporterDecorator', 'config']; @@ -332,7 +322,7 @@ function fallbackMiddleware() { * @param pluginName name of the karma plugin (e.g. reporter:coverage) */ function isPlugin(moduleId: string, pluginName: string) { - return (plugin: string|{}): boolean => { + return (plugin: string | {}): boolean => { if (typeof plugin === 'string') { if (!plugin.includes('*')) { return plugin === moduleId; @@ -342,7 +332,7 @@ function isPlugin(moduleId: string, pluginName: string) { try { require.resolve(moduleId); return true; - } catch {} + } catch { } } return false; } From 98f0ba2ea9ac76e7b65a8ebb100b41a1b2a070e8 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Mon, 19 Apr 2021 17:05:27 -0400 Subject: [PATCH 025/577] test(@ngtools/webpack): directly test `elideImports` function The `elideImports` function's unit tests now directly test the function instead of relying on the `makeTransform` abstraction. This change more closely reflects the current usage of `elideImports`. --- .../src/transformers/elide_imports_spec.ts | 47 +++++++++++++++---- 1 file changed, 37 insertions(+), 10 deletions(-) diff --git a/packages/ngtools/webpack/src/transformers/elide_imports_spec.ts b/packages/ngtools/webpack/src/transformers/elide_imports_spec.ts index 997e60ec8af6..133c08abb758 100644 --- a/packages/ngtools/webpack/src/transformers/elide_imports_spec.ts +++ b/packages/ngtools/webpack/src/transformers/elide_imports_spec.ts @@ -8,9 +8,7 @@ // tslint:disable:no-big-function import { tags } from '@angular-devkit/core'; // tslint:disable-line:no-implicit-dependencies import * as ts from 'typescript'; -import { getLastNode } from './ast_helpers'; -import { RemoveNodeOperation } from './interfaces'; -import { makeTransform } from './make_transform'; +import { elideImports } from './elide_imports'; import { createTypescriptContext, transformTypescript } from './spec_helpers'; describe('@ngtools/webpack transformers', () => { @@ -18,13 +16,42 @@ describe('@ngtools/webpack transformers', () => { const dummyNode = `const remove = ''`; - const transformer = (program: ts.Program) => ( - makeTransform( - (sourceFile: ts.SourceFile) => - [new RemoveNodeOperation(sourceFile, getLastNode(sourceFile) as ts.Node)], - () => program.getTypeChecker(), - ) - ); + // Transformer that removes the last node and then elides unused imports + const transformer = (program: ts.Program) => { + return (context: ts.TransformationContext) => { + + return (sourceFile: ts.SourceFile) => { + const lastNode = sourceFile.statements[sourceFile.statements.length - 1]; + const updatedSourceFile = context.factory.updateSourceFile( + sourceFile, + ts.setTextRange( + context.factory.createNodeArray(sourceFile.statements.slice(0, -1)), + sourceFile.statements, + ), + ); + + const importRemovals = elideImports( + updatedSourceFile, + [lastNode], + () => program.getTypeChecker(), + context.getCompilerOptions(), + ).map((op) => op.target); + if (importRemovals.length > 0) { + return ts.visitEachChild( + updatedSourceFile, + function visitForRemoval(node): ts.Node | undefined { + return importRemovals.includes(node) + ? undefined + : ts.visitEachChild(node, visitForRemoval, context); + }, + context, + ); + } + + return updatedSourceFile; + }; + }; + }; const additionalFiles: Record = { 'const.ts': ` From cb78ebca9e61b2f88536ad9ea24150632a4b51a5 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Mon, 19 Apr 2021 17:06:43 -0400 Subject: [PATCH 026/577] refactor(@ngtools/webpack): directly use TypeScript transformation helpers This change replaces the remaining usage of `makeTransform` with the usage of TypeScript AST helpers directly instead. This allows for the reduction in the number of AST walks necessary to transform the application's files. --- .../remove-ivy-jit-support-calls.ts | 89 +++++++++++-------- 1 file changed, 52 insertions(+), 37 deletions(-) diff --git a/packages/ngtools/webpack/src/transformers/remove-ivy-jit-support-calls.ts b/packages/ngtools/webpack/src/transformers/remove-ivy-jit-support-calls.ts index 343d6e978bfa..0abcbc29a9ac 100644 --- a/packages/ngtools/webpack/src/transformers/remove-ivy-jit-support-calls.ts +++ b/packages/ngtools/webpack/src/transformers/remove-ivy-jit-support-calls.ts @@ -6,56 +6,71 @@ * found in the LICENSE file at https://angular.io/license */ import * as ts from 'typescript'; -import { collectDeepNodes } from './ast_helpers'; -import { RemoveNodeOperation, StandardTransform, TransformOperation } from './interfaces'; -import { makeTransform } from './make_transform'; +import { elideImports } from './elide_imports'; export function removeIvyJitSupportCalls( classMetadata: boolean, ngModuleScope: boolean, getTypeChecker: () => ts.TypeChecker, ): ts.TransformerFactory { - const standardTransform: StandardTransform = function(sourceFile: ts.SourceFile) { - const ops: TransformOperation[] = []; - - collectDeepNodes(sourceFile, ts.SyntaxKind.ExpressionStatement) - .filter(statement => { - const innerStatement = getIifeStatement(statement); - if (!innerStatement) { - return false; + return (context: ts.TransformationContext) => { + const removedNodes: ts.Node[] = []; + + const visitNode: ts.Visitor = (node: ts.Node) => { + const innerStatement = ts.isExpressionStatement(node) && getIifeStatement(node); + if (innerStatement) { + if ( + ngModuleScope && + ts.isBinaryExpression(innerStatement.expression) && + isIvyPrivateCallExpression(innerStatement.expression.right, 'ɵɵsetNgModuleScope') + ) { + removedNodes.push(innerStatement); + + return undefined; } - let shouldRemove = false; + if (classMetadata) { + const expression = ts.isBinaryExpression(innerStatement.expression) + ? innerStatement.expression.right + : innerStatement.expression; + if (isIvyPrivateCallExpression(expression, 'ɵsetClassMetadata')) { + removedNodes.push(innerStatement); - if (ngModuleScope && ts.isBinaryExpression(innerStatement.expression)) { - shouldRemove = isIvyPrivateCallExpression( - innerStatement.expression.right, - 'ɵɵsetNgModuleScope', - ); - } - - if (classMetadata && !shouldRemove) { - if (ts.isBinaryExpression(innerStatement.expression)) { - shouldRemove = isIvyPrivateCallExpression( - innerStatement.expression.right, - 'ɵsetClassMetadata', - ); - } else { - shouldRemove = isIvyPrivateCallExpression( - innerStatement.expression, - 'ɵsetClassMetadata', - ); + return undefined; } } + } + + return ts.visitEachChild(node, visitNode, context); + }; + + return (sourceFile: ts.SourceFile) => { + let updatedSourceFile = ts.visitEachChild(sourceFile, visitNode, context); + + if (removedNodes.length > 0) { + // Remove any unused imports + const importRemovals = elideImports( + updatedSourceFile, + removedNodes, + getTypeChecker, + context.getCompilerOptions(), + ).map((op) => op.target); + if (importRemovals.length > 0) { + updatedSourceFile = ts.visitEachChild( + updatedSourceFile, + function visitForRemoval(node): ts.Node | undefined { + return importRemovals.includes(node) + ? undefined + : ts.visitEachChild(node, visitForRemoval, context); + }, + context, + ); + } + } - return shouldRemove; - }) - .forEach(statement => ops.push(new RemoveNodeOperation(sourceFile, statement))); - - return ops; + return updatedSourceFile; + }; }; - - return makeTransform(standardTransform, getTypeChecker); } // Each Ivy private call expression is inside an IIFE From bc0f3293c0beb6545e10673f938165b1941bf6cb Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Mon, 19 Apr 2021 17:12:45 -0400 Subject: [PATCH 027/577] refactor(@ngtools/webpack): remove unused transformation helper code With the recent refactoring of the package's TypeScript transformers, several internal functions and types are no longer used or needed. --- .../webpack/src/transformers/ast_helpers.ts | 43 ------- .../ngtools/webpack/src/transformers/index.ts | 3 - .../src/transformers/make_transform.ts | 108 ------------------ 3 files changed, 154 deletions(-) delete mode 100644 packages/ngtools/webpack/src/transformers/ast_helpers.ts delete mode 100644 packages/ngtools/webpack/src/transformers/make_transform.ts diff --git a/packages/ngtools/webpack/src/transformers/ast_helpers.ts b/packages/ngtools/webpack/src/transformers/ast_helpers.ts deleted file mode 100644 index 75dd12d729ac..000000000000 --- a/packages/ngtools/webpack/src/transformers/ast_helpers.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -import * as ts from 'typescript'; - - -// Find all nodes from the AST in the subtree of node of SyntaxKind kind. -export function collectDeepNodes( - node: ts.Node, - kind: ts.SyntaxKind | ts.SyntaxKind[], -): T[] { - const kinds = Array.isArray(kind) ? kind : [kind]; - const nodes: T[] = []; - const helper = (child: ts.Node) => { - if (kinds.includes(child.kind)) { - nodes.push(child as T); - } - ts.forEachChild(child, helper); - }; - ts.forEachChild(node, helper); - - return nodes; -} - -export function getFirstNode(sourceFile: ts.SourceFile): ts.Node { - if (sourceFile.statements.length > 0) { - return sourceFile.statements[0]; - } - - return sourceFile.getChildAt(0); -} - -export function getLastNode(sourceFile: ts.SourceFile): ts.Node | null { - if (sourceFile.statements.length > 0) { - return sourceFile.statements[sourceFile.statements.length - 1] || null; - } - - return null; -} diff --git a/packages/ngtools/webpack/src/transformers/index.ts b/packages/ngtools/webpack/src/transformers/index.ts index 7531574fff7e..e188ac203749 100644 --- a/packages/ngtools/webpack/src/transformers/index.ts +++ b/packages/ngtools/webpack/src/transformers/index.ts @@ -5,8 +5,5 @@ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -export * from './interfaces'; -export * from './ast_helpers'; -export * from './make_transform'; export * from './elide_imports'; export * from './replace_resources'; diff --git a/packages/ngtools/webpack/src/transformers/make_transform.ts b/packages/ngtools/webpack/src/transformers/make_transform.ts deleted file mode 100644 index 2541d231b4f2..000000000000 --- a/packages/ngtools/webpack/src/transformers/make_transform.ts +++ /dev/null @@ -1,108 +0,0 @@ -/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -import * as ts from 'typescript'; -import { elideImports } from './elide_imports'; -import { - AddNodeOperation, - OPERATION_KIND, - RemoveNodeOperation, - ReplaceNodeOperation, - StandardTransform, - TransformOperation, -} from './interfaces'; - -export function makeTransform( - standardTransform: StandardTransform, - getTypeChecker?: () => ts.TypeChecker, -): ts.TransformerFactory { - return (context: ts.TransformationContext): ts.Transformer => { - const transformer: ts.Transformer = (sf: ts.SourceFile) => { - const ops: TransformOperation[] = standardTransform(sf); - const removeOps = ops.filter( - op => op.kind === OPERATION_KIND.Remove, - ) as RemoveNodeOperation[]; - const addOps = ops.filter(op => op.kind === OPERATION_KIND.Add) as AddNodeOperation[]; - const replaceOps = ops.filter( - op => op.kind === OPERATION_KIND.Replace, - ) as ReplaceNodeOperation[]; - - // If nodes are removed, elide the imports as well. - // Mainly a workaround for https://github.com/Microsoft/TypeScript/issues/17552. - // WARNING: this assumes that replaceOps DO NOT reuse any of the nodes they are replacing. - // This is currently true for transforms that use replaceOps (replace_bootstrap and - // replace_resources), but may not be true for new transforms. - if (getTypeChecker && removeOps.length + replaceOps.length > 0) { - const removedNodes = removeOps.concat(replaceOps).map(op => op.target); - removeOps.push(...elideImports(sf, removedNodes, getTypeChecker, context.getCompilerOptions())); - } - - const visitor: ts.Visitor = node => { - let modified = false; - let modifiedNodes = [node]; - // Check if node should be dropped. - if (removeOps.find(op => op.target === node)) { - modifiedNodes = []; - modified = true; - } - - // Check if node should be replaced (only replaces with first op found). - const replace = replaceOps.find(op => op.target === node); - if (replace) { - modifiedNodes = [replace.replacement]; - modified = true; - } - - // Check if node should be added to. - const add = addOps.filter(op => op.target === node); - if (add.length > 0) { - modifiedNodes = [ - ...add.filter(op => op.before).map(op => op.before), - ...modifiedNodes, - ...add.filter(op => op.after).map(op => op.after), - ] as ts.Node[]; - modified = true; - } - - // If we changed anything, return modified nodes without visiting further. - if (modified) { - return modifiedNodes; - } else { - // Otherwise return node as is and visit children. - return ts.visitEachChild(node, visitor, context); - } - }; - - // Don't visit the sourcefile at all if we don't have ops for it. - if (ops.length === 0) { - return sf; - } - - const result = ts.visitNode(sf, visitor); - - // If we removed any decorators, we need to clean up the decorator arrays. - if (removeOps.some(op => op.target.kind === ts.SyntaxKind.Decorator)) { - cleanupDecorators(result); - } - - return result; - }; - - return transformer; - }; -} - -// If TS sees an empty decorator array, it will still emit a `__decorate` call. -// This seems to be a TS bug. -function cleanupDecorators(node: ts.Node) { - if (node.decorators?.length === 0) { - // tslint:disable-next-line:no-any - (node as any).decorators = undefined; - } - - ts.forEachChild(node, node => cleanupDecorators(node)); -} From 7d56d480c149863cdb25eceb24b1671d85e56a1c Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Tue, 20 Apr 2021 15:14:28 +0200 Subject: [PATCH 028/577] fix(@angular-devkit/build-angular): recover from CSS optimization errors --- .../plugins/optimize-css-webpack-plugin.ts | 58 ++++++++++--------- 1 file changed, 32 insertions(+), 26 deletions(-) diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/optimize-css-webpack-plugin.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/optimize-css-webpack-plugin.ts index 132766a0412f..9c7d51368927 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/optimize-css-webpack-plugin.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/optimize-css-webpack-plugin.ts @@ -8,7 +8,7 @@ import * as cssNano from 'cssnano'; import { ProcessOptions, Result } from 'postcss'; import { Compilation, Compiler, sources } from 'webpack'; -import { addWarning } from '../../utils/webpack-diagnostics'; +import { addError, addWarning } from '../../utils/webpack-diagnostics'; export interface OptimizeCssWebpackPluginOptions { sourceMap: boolean; @@ -86,33 +86,39 @@ export class OptimizeCssWebpackPlugin { map: map && { annotation: false, prev: map }, }; - const output = await new Promise((resolve, reject) => { - // @types/cssnano are not up to date with version 5. - // tslint:disable-next-line: no-any - (cssNano as any)(cssNanoOptions).process(content, postCssOptions) - .then(resolve) - .catch((err: Error) => reject(new Error(`${file} ${err.message}`))); - }); - - for (const { text } of output.warnings()) { - addWarning(compilation, text); - } - - let newSource; - if (output.map) { - newSource = new sources.SourceMapSource( - output.css, - file, + try { + const output = await new Promise((resolve, reject) => { + // @types/cssnano are not up to date with version 5. // tslint:disable-next-line: no-any - output.map.toString() as any, - content, - map, - ); - } else { - newSource = new sources.RawSource(output.css); - } + (cssNano as any)(cssNanoOptions).process(content, postCssOptions) + .then(resolve) + .catch((err: Error) => reject(err)); + }); + + + for (const { text } of output.warnings()) { + addWarning(compilation, text); + } + + let newSource; + if (output.map) { + newSource = new sources.SourceMapSource( + output.css, + file, + output.map.toString(), + content, + map, + ); + } else { + newSource = new sources.RawSource(output.css); + } + + compilation.assets[file] = newSource; + } catch (error) { + addError(compilation, error.message); - compilation.assets[file] = newSource; + return; + } }); return Promise.all(actions).then(() => {}); From e107055b6f459b75468e1faf512ca489bede989f Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Tue, 20 Apr 2021 09:02:17 -0400 Subject: [PATCH 029/577] fix(@angular-devkit/build-angular): disable Webpack 5 automatic public path support The Webpack 5 automatic public path support can cause an incorrect public path to be used to load assets and lazy loaded routes. The current logic relies on the last script element found at runtime in the application's index HTML which may not be related to the application scripts. Now if a `deployUrl` is not specified, the Webpack `publicPath` option is defaulted to an empty string which provides equivalent behavior to Webpack 4. --- .../angular_devkit/build_angular/src/webpack/configs/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular_devkit/build_angular/src/webpack/configs/common.ts b/packages/angular_devkit/build_angular/src/webpack/configs/common.ts index c050e894e784..2508c545576b 100644 --- a/packages/angular_devkit/build_angular/src/webpack/configs/common.ts +++ b/packages/angular_devkit/build_angular/src/webpack/configs/common.ts @@ -432,7 +432,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration { entry: entryPoints, output: { path: path.resolve(root, buildOptions.outputPath), - publicPath: buildOptions.deployUrl, + publicPath: buildOptions.deployUrl ?? '', filename: ({ chunk }) => { if (chunk?.name === 'polyfills-es5') { return `polyfills-es5${hashFormat.chunk}.js`; From 3637c0a7a2fd646c229bf6b5953f0e80e3600406 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 20 Apr 2021 01:03:51 +0000 Subject: [PATCH 030/577] build: update angular packages --- package.json | 2 +- tests/legacy-cli/e2e/ng-snapshot/package.json | 30 +++++++++---------- yarn.lock | 23 ++++++++------ 3 files changed, 30 insertions(+), 25 deletions(-) diff --git a/package.json b/package.json index 7d655cc5cc9a..96c28bad9c98 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "@angular/compiler": "12.0.0-next.9", "@angular/compiler-cli": "12.0.0-next.9", "@angular/core": "12.0.0-next.9", - "@angular/dev-infra-private": "https://github.com/angular/dev-infra-private-builds.git#3346063565e4a710fb7c1daded6edbf50962342a", + "@angular/dev-infra-private": "https://github.com/angular/dev-infra-private-builds.git#5b8b7a8b04e205eea784168a511c0258fb9995f3", "@angular/forms": "12.0.0-next.9", "@angular/localize": "12.0.0-next.9", "@angular/material": "11.2.9", diff --git a/tests/legacy-cli/e2e/ng-snapshot/package.json b/tests/legacy-cli/e2e/ng-snapshot/package.json index 3729ac69e917..fff9c7a0c62f 100644 --- a/tests/legacy-cli/e2e/ng-snapshot/package.json +++ b/tests/legacy-cli/e2e/ng-snapshot/package.json @@ -2,20 +2,20 @@ "description": "snapshot versions of Angular for e2e testing", "private": true, "dependencies": { - "@angular/animations": "github:angular/animations-builds#f800ebc31d989d9940bd3cde1f56f56cc5201873", - "@angular/cdk": "github:angular/cdk-builds#0d56ba723d91da7cbefac44737a1c847cce08d5f", - "@angular/common": "github:angular/common-builds#1a98688b5c24b3131ef81727cc3bef3e4dcb1339", - "@angular/compiler": "github:angular/compiler-builds#ed3041577eb3abfa8cab57d567a8bc0bd90f570b", - "@angular/compiler-cli": "github:angular/compiler-cli-builds#1ca20450be111086bfe15382aa6c3a8b74b4fbbc", - "@angular/core": "github:angular/core-builds#41fb1fef720b7c2f78310c22b6d324dc09696263", - "@angular/forms": "github:angular/forms-builds#04420efdb94d326fa8210067fee2cef6e3da6786", - "@angular/language-service": "github:angular/language-service-builds#1809438334de5c4843b90367b49d236aa311135d", - "@angular/localize": "github:angular/localize-builds#880639c8b0d050d960574adaa36d2f0ea3580816", - "@angular/material": "github:angular/material2-builds#2a20f19a52fadfa536471e11d68caff9449ce337", - "@angular/material-moment-adapter": "github:angular/material-moment-adapter-builds#7ab8908288ea48d06af8ecb2444075690ca708e7", - "@angular/platform-browser": "github:angular/platform-browser-builds#485291dd332b0b94b77533655e73b8e94ce1606a", - "@angular/platform-browser-dynamic": "github:angular/platform-browser-dynamic-builds#2411e72477b6ca123d37d1a6533fcfae44c9bd64", - "@angular/platform-server": "github:angular/platform-server-builds#4e43f9cc52e33f5affe7707089e8cc0028deea32", - "@angular/router": "github:angular/router-builds#4384c9ff713fb3da02f4498dd205babe2b8eeb3c" + "@angular/animations": "github:angular/animations-builds#3c189f5cbe03b7afdd2b1b62a9ba92fca1a7168b", + "@angular/cdk": "github:angular/cdk-builds#6bbff80d941dda4c591cfd65ddff139ae07f7a1b", + "@angular/common": "github:angular/common-builds#d2343d4a5d507e2d2fdce2da54cf75e45b289fe6", + "@angular/compiler": "github:angular/compiler-builds#a5a6693a08ef1d2c4c5f845d4fc8caa80594b8c0", + "@angular/compiler-cli": "github:angular/compiler-cli-builds#660fbecb3a03f7d1ab9d1a4df23ec62b32b526cd", + "@angular/core": "github:angular/core-builds#f7ad8e72fdaed142dc96ded7c41eee203528a931", + "@angular/forms": "github:angular/forms-builds#ebd9dde1b16f82e8fdc8da590a39848c5e7408dc", + "@angular/language-service": "github:angular/language-service-builds#931211e0ff389d9e61d39dd051cca59680cb2a3d", + "@angular/localize": "github:angular/localize-builds#53dca19c18fa34dea47ab8b5ef92b9fc45b0aec6", + "@angular/material": "github:angular/material2-builds#0b71b7b05c4724b40500d110d21c03dda17354b0", + "@angular/material-moment-adapter": "github:angular/material-moment-adapter-builds#2797a131e4115edc8187fbd449314f7f8e4a7382", + "@angular/platform-browser": "github:angular/platform-browser-builds#c450cd294c621839215083a17cc2fdb438da83db", + "@angular/platform-browser-dynamic": "github:angular/platform-browser-dynamic-builds#8ee4e2f0c0de82ced2d65520b51278f11a3da602", + "@angular/platform-server": "github:angular/platform-server-builds#544a3f553a48cc408159bfb498bf565c0e17e230", + "@angular/router": "github:angular/router-builds#f65a2f520f11318ab7be1e98c8a4a3566d7d3751" } } diff --git a/yarn.lock b/yarn.lock index dfc2628d499b..b910661c1298 100644 --- a/yarn.lock +++ b/yarn.lock @@ -84,16 +84,16 @@ dependencies: tslib "^2.0.0" -"@angular/dev-infra-private@https://github.com/angular/dev-infra-private-builds.git#3346063565e4a710fb7c1daded6edbf50962342a": +"@angular/dev-infra-private@https://github.com/angular/dev-infra-private-builds.git#5b8b7a8b04e205eea784168a511c0258fb9995f3": version "0.0.0" - uid "3346063565e4a710fb7c1daded6edbf50962342a" - resolved "https://github.com/angular/dev-infra-private-builds.git#3346063565e4a710fb7c1daded6edbf50962342a" + uid "5b8b7a8b04e205eea784168a511c0258fb9995f3" + resolved "https://github.com/angular/dev-infra-private-builds.git#5b8b7a8b04e205eea784168a511c0258fb9995f3" dependencies: "@angular/benchpress" "0.2.1" "@bazel/buildifier" "^4.0.1" "@octokit/graphql" "^4.6.1" "@octokit/rest" "16.28.7" - "@octokit/types" "^5.5.0" + "@octokit/types" "^6.0.0" brotli "^1.3.2" chalk "^2.3.1" clang-format "^1.4.0" @@ -1458,6 +1458,11 @@ resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-4.0.4.tgz#96fcce11e929802898646205ac567e5df592f82b" integrity sha512-31zY8JIuz3h6RAFOnyA8FbOwhILILiBu1qD81RyZZWY7oMBhIdBn6MaAmnnptLhB4jk0g50nkQkUVP4kUzppcA== +"@octokit/openapi-types@^6.0.0": + version "6.0.0" + resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-6.0.0.tgz#7da8d7d5a72d3282c1a3ff9f951c8133a707480d" + integrity sha512-CnDdK7ivHkBtJYzWzZm7gEkanA7gKH6a09Eguz7flHw//GacPJLmkHA3f3N++MJmlxD1Fl+mB7B32EEpSCwztQ== + "@octokit/request-error@^1.0.2": version "1.2.1" resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-1.2.1.tgz#ede0714c773f32347576c25649dc013ae6b31801" @@ -1516,12 +1521,12 @@ dependencies: "@types/node" ">= 8" -"@octokit/types@^5.5.0": - version "5.5.0" - resolved "https://registry.yarnpkg.com/@octokit/types/-/types-5.5.0.tgz#e5f06e8db21246ca102aa28444cdb13ae17a139b" - integrity sha512-UZ1pErDue6bZNjYOotCNveTXArOMZQFG6hKJfOnGnulVCMcVVi7YIIuuR4WfBhjo7zgpmzn/BkPDnUXtNx+PcQ== +"@octokit/types@^6.0.0": + version "6.13.0" + resolved "https://registry.yarnpkg.com/@octokit/types/-/types-6.13.0.tgz#779e5b7566c8dde68f2f6273861dd2f0409480d0" + integrity sha512-W2J9qlVIU11jMwKHUp5/rbVUeErqelCsO5vW5PKNb7wAXQVUz87Rc+imjlEvpvbH8yUb+KHmv8NEjVZdsdpyxA== dependencies: - "@types/node" ">= 8" + "@octokit/openapi-types" "^6.0.0" "@octokit/types@^6.0.3", "@octokit/types@^6.7.1": version "6.8.5" From 4eb9151510aea7e8318902de6288b0a26874ec44 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 20 Apr 2021 08:22:12 +0000 Subject: [PATCH 031/577] build: update css-loader to version 5.2.4 --- package.json | 2 +- .../angular_devkit/build_angular/package.json | 2 +- yarn.lock | 24 ++++++------------- 3 files changed, 9 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index 96c28bad9c98..4af22cf6465b 100644 --- a/package.json +++ b/package.json @@ -137,7 +137,7 @@ "copy-webpack-plugin": "8.1.1", "core-js": "3.10.1", "critters": "0.0.10", - "css-loader": "5.2.1", + "css-loader": "5.2.4", "cssnano": "5.0.1", "debug": "^4.1.1", "enhanced-resolve": "5.7.0", diff --git a/packages/angular_devkit/build_angular/package.json b/packages/angular_devkit/build_angular/package.json index 93ecc6e9daa2..6e86572ef11f 100644 --- a/packages/angular_devkit/build_angular/package.json +++ b/packages/angular_devkit/build_angular/package.json @@ -29,7 +29,7 @@ "copy-webpack-plugin": "8.1.1", "core-js": "3.10.1", "critters": "0.0.10", - "css-loader": "5.2.1", + "css-loader": "5.2.4", "cssnano": "5.0.1", "find-cache-dir": "3.3.1", "glob": "7.1.6", diff --git a/yarn.lock b/yarn.lock index b910661c1298..e1cc5aad1369 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4066,23 +4066,22 @@ css-has-pseudo@^0.10.0: postcss "^7.0.6" postcss-selector-parser "^5.0.0-rc.4" -css-loader@5.2.1: - version "5.2.1" - resolved "https://registry.yarnpkg.com/css-loader/-/css-loader-5.2.1.tgz#15fbd5b6ac4c1b170a098f804c5abd0722f2aa73" - integrity sha512-YCyRzlt/jgG1xanXZDG/DHqAueOtXFHeusP9TS478oP1J++JSKOyEgGW1GHVoCj/rkS+GWOlBwqQJBr9yajQ9w== +css-loader@5.2.4: + version "5.2.4" + resolved "https://registry.yarnpkg.com/css-loader/-/css-loader-5.2.4.tgz#e985dcbce339812cb6104ef3670f08f9893a1536" + integrity sha512-OFYGyINCKkdQsTrSYxzGSFnGS4gNjcXkKkQgWxK138jgnPt+lepxdjSZNc8sHAl5vP3DhsJUxufWIjOwI8PMMw== dependencies: camelcase "^6.2.0" - cssesc "^3.0.0" icss-utils "^5.1.0" loader-utils "^2.0.0" - postcss "^8.2.8" + postcss "^8.2.10" postcss-modules-extract-imports "^3.0.0" postcss-modules-local-by-default "^4.0.0" postcss-modules-scope "^3.0.0" postcss-modules-values "^4.0.0" postcss-value-parser "^4.1.0" schema-utils "^3.0.0" - semver "^7.3.4" + semver "^7.3.5" css-parse@~2.0.0: version "2.0.0" @@ -9838,7 +9837,7 @@ postcss@7.0.21: source-map "^0.6.1" supports-color "^6.1.0" -postcss@8.2.10: +postcss@8.2.10, postcss@^8.2.10: version "8.2.10" resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.2.10.tgz#ca7a042aa8aff494b334d0ff3e9e77079f6f702b" integrity sha512-b/h7CPV7QEdrqIxtAf2j31U5ef05uBDuvoXv6L51Q4rcS1jdlXAVKJv+atCFdUXYl9dyTHGyoMzIepwowRJjFw== @@ -9856,15 +9855,6 @@ postcss@^8.2.4: nanoid "^3.1.20" source-map "^0.6.1" -postcss@^8.2.8: - version "8.2.9" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.2.9.tgz#fd95ff37b5cee55c409b3fdd237296ab4096fba3" - integrity sha512-b+TmuIL4jGtCHtoLi+G/PisuIl9avxs8IZMSmlABRwNz5RLUUACrC+ws81dcomz1nRezm5YPdXiMEzBEKgYn+Q== - dependencies: - colorette "^1.2.2" - nanoid "^3.1.22" - source-map "^0.6.1" - prelude-ls@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" From a6cc86786bcab00db6d532f515bac26b2dd529b4 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 20 Apr 2021 08:21:52 +0000 Subject: [PATCH 032/577] build: update core-js to version 3.10.2 --- package.json | 2 +- packages/angular_devkit/build_angular/package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 4af22cf6465b..ea7f0d4627bb 100644 --- a/package.json +++ b/package.json @@ -135,7 +135,7 @@ "conventional-changelog": "^3.0.0", "conventional-commits-parser": "^3.0.0", "copy-webpack-plugin": "8.1.1", - "core-js": "3.10.1", + "core-js": "3.10.2", "critters": "0.0.10", "css-loader": "5.2.4", "cssnano": "5.0.1", diff --git a/packages/angular_devkit/build_angular/package.json b/packages/angular_devkit/build_angular/package.json index 6e86572ef11f..edb4981b33f3 100644 --- a/packages/angular_devkit/build_angular/package.json +++ b/packages/angular_devkit/build_angular/package.json @@ -27,7 +27,7 @@ "caniuse-lite": "^1.0.30001032", "circular-dependency-plugin": "5.2.2", "copy-webpack-plugin": "8.1.1", - "core-js": "3.10.1", + "core-js": "3.10.2", "critters": "0.0.10", "css-loader": "5.2.4", "cssnano": "5.0.1", diff --git a/yarn.lock b/yarn.lock index e1cc5aad1369..480731753fb3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3951,10 +3951,10 @@ core-js-compat@^3.8.1, core-js-compat@^3.9.0: browserslist "^4.16.3" semver "7.0.0" -core-js@3.10.1: - version "3.10.1" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.10.1.tgz#e683963978b6806dcc6c0a4a8bd4ab0bdaf3f21a" - integrity sha512-pwCxEXnj27XG47mu7SXAwhLP3L5CrlvCB91ANUkIz40P27kUcvNfSdvyZJ9CLHiVoKSp+TTChMQMSKQEH/IQxA== +core-js@3.10.2: + version "3.10.2" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.10.2.tgz#17cb038ce084522a717d873b63f2b3ee532e2cd5" + integrity sha512-W+2oVYeNghuBr3yTzZFQ5rfmjZtYB/Ubg87R5YOmlGrIb+Uw9f7qjUbhsj+/EkXhcV7eOD3jiM4+sgraX3FZUw== core-util-is@1.0.2, core-util-is@~1.0.0: version "1.0.2" From 72b224a569c0f6239be83ea7052ece1b95b6f5d3 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 20 Apr 2021 08:22:29 +0000 Subject: [PATCH 033/577] build: update enhanced-resolve to version 5.8.0 --- package.json | 2 +- packages/ngtools/webpack/package.json | 2 +- yarn.lock | 16 ++++++++-------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index ea7f0d4627bb..a49437e6c996 100644 --- a/package.json +++ b/package.json @@ -140,7 +140,7 @@ "css-loader": "5.2.4", "cssnano": "5.0.1", "debug": "^4.1.1", - "enhanced-resolve": "5.7.0", + "enhanced-resolve": "5.8.0", "express": "4.17.1", "fast-json-stable-stringify": "2.1.0", "find-cache-dir": "3.3.1", diff --git a/packages/ngtools/webpack/package.json b/packages/ngtools/webpack/package.json index 5f841c1f79fe..7252684b7d72 100644 --- a/packages/ngtools/webpack/package.json +++ b/packages/ngtools/webpack/package.json @@ -21,7 +21,7 @@ }, "homepage": "https://github.com/angular/angular-cli/tree/master/packages/@ngtools/webpack", "dependencies": { - "enhanced-resolve": "5.7.0" + "enhanced-resolve": "5.8.0" }, "peerDependencies": { "@angular/compiler-cli": "^12.0.0-next", diff --git a/yarn.lock b/yarn.lock index 480731753fb3..ef2463013b3c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4858,18 +4858,18 @@ engine.io@~4.1.0: engine.io-parser "~4.0.0" ws "~7.4.2" -enhanced-resolve@5.7.0, enhanced-resolve@^5.7.0: - version "5.7.0" - resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.7.0.tgz#525c5d856680fbd5052de453ac83e32049958b5c" - integrity sha512-6njwt/NsZFUKhM6j9U8hzVyD4E4r0x7NQzhTCbcWOJ0IQjNSAoalWmb0AE51Wn+fwan5qVESWi7t2ToBxs9vrw== +enhanced-resolve@5.8.0, enhanced-resolve@^5.8.0: + version "5.8.0" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.8.0.tgz#d9deae58f9d3773b6a111a5a46831da5be5c9ac0" + integrity sha512-Sl3KRpJA8OpprrtaIswVki3cWPiPKxXuFxJXBp+zNb6s6VwNWwFRUdtmzd2ReUut8n+sCPx7QCtQ7w5wfJhSgQ== dependencies: graceful-fs "^4.2.4" tapable "^2.2.0" -enhanced-resolve@^5.8.0: - version "5.8.0" - resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.8.0.tgz#d9deae58f9d3773b6a111a5a46831da5be5c9ac0" - integrity sha512-Sl3KRpJA8OpprrtaIswVki3cWPiPKxXuFxJXBp+zNb6s6VwNWwFRUdtmzd2ReUut8n+sCPx7QCtQ7w5wfJhSgQ== +enhanced-resolve@^5.7.0: + version "5.7.0" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.7.0.tgz#525c5d856680fbd5052de453ac83e32049958b5c" + integrity sha512-6njwt/NsZFUKhM6j9U8hzVyD4E4r0x7NQzhTCbcWOJ0IQjNSAoalWmb0AE51Wn+fwan5qVESWi7t2ToBxs9vrw== dependencies: graceful-fs "^4.2.4" tapable "^2.2.0" From c3cc50e6b95fbbd814d752eec808ea0a0ef411c0 Mon Sep 17 00:00:00 2001 From: Keen Yee Liau Date: Wed, 14 Apr 2021 16:06:36 -0700 Subject: [PATCH 034/577] refactor(@schematics/angular): read build-angular's version from package.json Now that `@angular-devkit/build-angular` is promoted to stable (https://github.com/angular/angular-cli/pull/20528), it will always have the same version as `@schematics/angular`. With this change, there is no need to manually update `DevkitBuildAngular` field in `latest-versions.ts` anymore. --- docs/process/release.md | 4 +--- packages/schematics/angular/utility/latest-versions.ts | 9 ++++----- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/docs/process/release.md b/docs/process/release.md index 76593d04d31f..1be2420ecec3 100644 --- a/docs/process/release.md +++ b/docs/process/release.md @@ -153,9 +153,7 @@ using the `--githubToken` flag. You just then have to confirm the draft. **For each released version**: -Update the package versions to reflect the *next* release version in **both**: -1. `version` in [`package.json`](https://github.com/angular/angular-cli/blob/master/package.json#L3) -1. `DevkitBuildAngular` in [`packages/schematics/angular/utility/latest-versions.ts`](https://github.com/angular/angular-cli/blob/master/packages/schematics/angular/utility/latest-versions.ts) +Update `version` in root [`package.json`](/package.json#L3) to the *next* release version. ```sh git checkout -b release-bump-vXX diff --git a/packages/schematics/angular/utility/latest-versions.ts b/packages/schematics/angular/utility/latest-versions.ts index 34fbdf970f59..6d60a29d56c8 100644 --- a/packages/schematics/angular/utility/latest-versions.ts +++ b/packages/schematics/angular/utility/latest-versions.ts @@ -14,11 +14,10 @@ export const latestVersions = { TypeScript: '~4.2.3', TsLib: '^2.1.0', - // The versions below must be manually updated when making a new devkit release. - // For our e2e tests, these versions must match the latest tag present on the branch. - // During RC periods they will not match the latest RC until there's a new git tag, and - // should not be updated. - DevkitBuildAngular: '~12.1.0-next.0', + // Since @angular-devkit/build-angular and @schematics/angular are always + // published together from the same monorepo, and they are both + // non-experimental, they will always have the same version. + DevkitBuildAngular: '~' + require('../package.json')['version'], ngPackagr: '^12.0.0-next.8', }; From ef6996aeff5c739662bc5ce49770102f28ee3e65 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Tue, 20 Apr 2021 16:01:53 -0400 Subject: [PATCH 035/577] perf(@angular-devkit/build-angular): use Webpack's GC memory caching in watch mode The GC caching mode will remove any unused cache entries after each rebuild. This prevents old modules from being retained indefinitely during long-lived development sessions. --- .../build_angular/src/webpack/configs/common.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/angular_devkit/build_angular/src/webpack/configs/common.ts b/packages/angular_devkit/build_angular/src/webpack/configs/common.ts index 2508c545576b..824579166a3c 100644 --- a/packages/angular_devkit/build_angular/src/webpack/configs/common.ts +++ b/packages/angular_devkit/build_angular/src/webpack/configs/common.ts @@ -483,7 +483,10 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration { ...extraRules, ], }, - cache: !!buildOptions.watch && !cachingDisabled, + cache: !!buildOptions.watch && !cachingDisabled && { + type: 'memory', + maxGenerations: 1, + }, optimization: { minimizer: extraMinimizers, moduleIds: 'deterministic', From d92805e361c006a8e84eb830f51bd38957b6f832 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Tue, 20 Apr 2021 16:18:25 -0400 Subject: [PATCH 036/577] refactor(@ngtools/webpack): reduce stored resource data between rebuilds This change makes several changes to attempt to reduce retained memory within the resource loader. The first is the preemptive clearing of the resource loader's parent compilation after all modules are built. The second removes the cached sourcemaps for each resource which are not yet used by the system. And finally, the child compilations are no longer stored on the parent compilation and instead the dependencies, errors, and warnings are propagated to the parent compilation. --- packages/ngtools/webpack/src/ivy/plugin.ts | 3 +++ .../ngtools/webpack/src/resource_loader.ts | 21 ++++++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/packages/ngtools/webpack/src/ivy/plugin.ts b/packages/ngtools/webpack/src/ivy/plugin.ts index bef3c4778b01..ce8b2c5692c2 100644 --- a/packages/ngtools/webpack/src/ivy/plugin.ts +++ b/packages/ngtools/webpack/src/ivy/plugin.ts @@ -265,6 +265,9 @@ export class AngularWebpackPlugin { // Rebuild any remaining AOT required modules await this.rebuildRequiredFiles(modules, compilation, fileEmitter); + // Clear out the Webpack compilation to avoid an extra retaining reference + resourceLoader.clearParentCompilation(); + // Analyze program for unused files if (compilation.errors.length > 0) { return; diff --git a/packages/ngtools/webpack/src/resource_loader.ts b/packages/ngtools/webpack/src/resource_loader.ts index eddf2e770aaa..4b22770f6a9f 100644 --- a/packages/ngtools/webpack/src/resource_loader.ts +++ b/packages/ngtools/webpack/src/resource_loader.ts @@ -44,6 +44,10 @@ export class WebpackResourceLoader { } } + clearParentCompilation() { + this._parentCompilation = undefined; + } + getModifiedResourceFiles() { return this.modifiedResources; } @@ -172,6 +176,22 @@ export class WebpackResourceLoader { return; } + // Workaround to attempt to reduce memory usage of child compilations. + // This removes the child compilation from the main compilation and manually propagates + // all dependencies, warnings, and errors. + const parent = childCompiler.parentCompilation; + if (parent) { + parent.children = parent.children.filter((child) => child !== childCompilation); + + parent.fileDependencies.addAll(childCompilation.fileDependencies); + parent.contextDependencies.addAll(childCompilation.contextDependencies); + parent.missingDependencies.addAll(childCompilation.missingDependencies); + parent.buildDependencies.addAll(childCompilation.buildDependencies); + + parent.warnings.push(...childCompilation.warnings); + parent.errors.push(...childCompilation.errors); + } + // Save the dependencies for this resource. if (filePath) { this._fileDependencies.set(filePath, new Set(childCompilation.fileDependencies)); @@ -188,7 +208,6 @@ export class WebpackResourceLoader { resolve({ content: finalContent ?? '', - map: finalMap, success: childCompilation.errors?.length === 0, }); }); From 8dfc8e73f3508e88a1e3d99a8deb006f1bd5706c Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Tue, 20 Apr 2021 16:23:05 -0400 Subject: [PATCH 037/577] perf(@ngtools/webpack): cache results of processed inline resources When in watch mode, both the file and inline resources will now be cached between rebuilds. This removes the need to reprocess inline resources that have not changed even if the containing TypeScript file has changed. --- packages/ngtools/webpack/src/ivy/plugin.ts | 9 ++++-- .../ngtools/webpack/src/resource_loader.ts | 32 +++++++++++++++---- 2 files changed, 32 insertions(+), 9 deletions(-) diff --git a/packages/ngtools/webpack/src/ivy/plugin.ts b/packages/ngtools/webpack/src/ivy/plugin.ts index ce8b2c5692c2..5b5b4f5695be 100644 --- a/packages/ngtools/webpack/src/ivy/plugin.ts +++ b/packages/ngtools/webpack/src/ivy/plugin.ts @@ -150,7 +150,7 @@ export class AngularWebpackPlugin { }); let ngccProcessor: NgccProcessor | undefined; - const resourceLoader = new WebpackResourceLoader(); + let resourceLoader: WebpackResourceLoader | undefined; let previousUnused: Set | undefined; compiler.hooks.thisCompilation.tap(PLUGIN_NAME, (thisCompilation) => { const compilation = thisCompilation as WebpackCompilation; @@ -164,6 +164,11 @@ export class AngularWebpackPlugin { // Store watch mode; assume true if not present (webpack < 4.23.0) this.watchMode = compiler.watchMode ?? true; + // Initialize the resource loader if not already setup + if (!resourceLoader) { + resourceLoader = new WebpackResourceLoader(this.watchMode); + } + // Initialize and process eager ngcc if not already setup if (!ngccProcessor) { const { processor, errors, warnings } = initializeNgccProcessor( @@ -266,7 +271,7 @@ export class AngularWebpackPlugin { await this.rebuildRequiredFiles(modules, compilation, fileEmitter); // Clear out the Webpack compilation to avoid an extra retaining reference - resourceLoader.clearParentCompilation(); + resourceLoader?.clearParentCompilation(); // Analyze program for unused files if (compilation.errors.length > 0) { diff --git a/packages/ngtools/webpack/src/resource_loader.ts b/packages/ngtools/webpack/src/resource_loader.ts index 4b22770f6a9f..f760a256acdc 100644 --- a/packages/ngtools/webpack/src/resource_loader.ts +++ b/packages/ngtools/webpack/src/resource_loader.ts @@ -5,6 +5,7 @@ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ +import { createHash } from 'crypto'; import * as vm from 'vm'; import { Compilation, EntryPlugin, NormalModule, library, node, sources } from 'webpack'; import { normalizePath } from './ivy/paths'; @@ -20,10 +21,18 @@ export class WebpackResourceLoader { private _fileDependencies = new Map>(); private _reverseDependencies = new Map>(); - private cache = new Map(); + private fileCache?: Map; + private inlineCache?: Map; private modifiedResources = new Set(); private outputPathCounter = 1; + constructor(shouldCache: boolean) { + if (shouldCache) { + this.fileCache = new Map(); + this.inlineCache = new Map(); + } + } + update( parentCompilation: Compilation, changedFiles?: Iterable, @@ -35,12 +44,12 @@ export class WebpackResourceLoader { if (changedFiles) { for (const changedFile of changedFiles) { for (const affectedResource of this.getAffectedResources(changedFile)) { - this.cache.delete(normalizePath(affectedResource)); + this.fileCache?.delete(normalizePath(affectedResource)); this.modifiedResources.add(affectedResource); } } } else { - this.cache.clear(); + this.fileCache?.clear(); } } @@ -236,15 +245,15 @@ export class WebpackResourceLoader { async get(filePath: string): Promise { const normalizedFile = normalizePath(filePath); - let compilationResult = this.cache.get(normalizedFile); + let compilationResult = this.fileCache?.get(normalizedFile); if (compilationResult === undefined) { // cache miss so compile resource compilationResult = await this._compile(filePath); // Only cache if compilation was successful - if (compilationResult.success) { - this.cache.set(normalizedFile, compilationResult); + if (this.fileCache && compilationResult.success) { + this.fileCache.set(normalizedFile, compilationResult); } } @@ -256,7 +265,16 @@ export class WebpackResourceLoader { return ''; } - const compilationResult = await this._compile(undefined, data, mimeType); + const cacheKey = createHash('md5').update(data).digest('hex'); + let compilationResult = this.inlineCache?.get(cacheKey); + + if (compilationResult === undefined) { + compilationResult = await this._compile(undefined, data, mimeType); + + if (this.inlineCache && compilationResult.success) { + this.inlineCache.set(cacheKey, compilationResult); + } + } return compilationResult.content; } From b8fc1dc9159267fd7a8ab24142c376d51d952666 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Tue, 20 Apr 2021 16:43:07 -0400 Subject: [PATCH 038/577] fix(@ngtools/webpack): only track actual resource file dependencies Webpack's `fileDependencies` Set could contain directories as well as files. The directories were previously stored and incorrectly used during cache invalidation which resulted in excessive cache validation. This change attempts to skip directories by ignoring any `fileDependencies` entry that does not have a file extension. --- packages/ngtools/webpack/src/resource_loader.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/ngtools/webpack/src/resource_loader.ts b/packages/ngtools/webpack/src/resource_loader.ts index f760a256acdc..84f1bda45744 100644 --- a/packages/ngtools/webpack/src/resource_loader.ts +++ b/packages/ngtools/webpack/src/resource_loader.ts @@ -6,6 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ import { createHash } from 'crypto'; +import * as path from 'path'; import * as vm from 'vm'; import { Compilation, EntryPlugin, NormalModule, library, node, sources } from 'webpack'; import { normalizePath } from './ivy/paths'; @@ -206,6 +207,14 @@ export class WebpackResourceLoader { this._fileDependencies.set(filePath, new Set(childCompilation.fileDependencies)); for (const file of childCompilation.fileDependencies) { const resolvedFile = normalizePath(file); + + // Skip paths that do not appear to be files (have no extension). + // `fileDependencies` can contain directories and not just files which can + // cause incorrect cache invalidation on rebuilds. + if (!path.extname(resolvedFile)) { + continue; + } + const entry = this._reverseDependencies.get(resolvedFile); if (entry) { entry.add(filePath); From 85ce5ec3b0a4edb466967cb663911d2de780af0c Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Wed, 21 Apr 2021 10:54:44 -0400 Subject: [PATCH 039/577] fix(@angular-devkit/build-angular): always inject live reload client when using live reload The current stable version of `webpack-dev-server` does not fully handle Webpack 5's configuration options. In this case, the `target` option can now be an array. However, the array form is ignored by the dev server which can cause the live reload client code to not be included in the output bundles. To remedy this, the `injectClient` option is used when live reload is enabled which forces the client code to be included regardless of the `target` option. --- .../build_angular/src/webpack/configs/dev-server.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/angular_devkit/build_angular/src/webpack/configs/dev-server.ts b/packages/angular_devkit/build_angular/src/webpack/configs/dev-server.ts index 50466b039638..db4da55fd6e5 100644 --- a/packages/angular_devkit/build_angular/src/webpack/configs/dev-server.ts +++ b/packages/angular_devkit/build_angular/src/webpack/configs/dev-server.ts @@ -121,6 +121,7 @@ export function getDevServerConfig( inline: hmr, publicPath: servePath, liveReload, + injectClient: liveReload, hotOnly: hmr && !liveReload, hot: hmr, proxy: addProxyConfig(root, proxyConfig), From bb3f36f30aa6aeeb4f7664410579a88ca816b91c Mon Sep 17 00:00:00 2001 From: David Shevitz Date: Tue, 20 Apr 2021 23:13:02 +0000 Subject: [PATCH 040/577] docs: remove reference to protractor. --- packages/angular/cli/commands/e2e.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular/cli/commands/e2e.json b/packages/angular/cli/commands/e2e.json index 602d4d0560a7..e8777a361bc3 100644 --- a/packages/angular/cli/commands/e2e.json +++ b/packages/angular/cli/commands/e2e.json @@ -1,7 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema", "$id": "ng-cli://commands/e2e.json", - "description": "Builds and serves an Angular app, then runs end-to-end tests using Protractor.", + "description": "Builds and serves an Angular app, then runs end-to-end tests.", "$longDescription": "./e2e-long.md", "$aliases": [ "e" ], From 09fc6e523ac2aadecf446d658844b689662f2dad Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 21 Apr 2021 06:03:02 +0000 Subject: [PATCH 041/577] build: update to version --- yarn.lock | 2217 ++++++++++++++--------------------------------------- 1 file changed, 563 insertions(+), 1654 deletions(-) diff --git a/yarn.lock b/yarn.lock index ef2463013b3c..88f1a51bde65 100644 --- a/yarn.lock +++ b/yarn.lock @@ -78,9 +78,9 @@ integrity sha512-6Pxgsrf0qF9iFFqmIcWmjJGkkCaCm6V5QNnxMy2KloO3SDq6QuMVRbN9RtC8Urmo25LP+eZ6ZgYqFYpdD8Hd9w== "@angular/core@^10.0.0-0 || ^11.0.0": - version "11.2.0" - resolved "https://registry.yarnpkg.com/@angular/core/-/core-11.2.0.tgz#309ae61d55b21fca0b644a6571109741d64b2467" - integrity sha512-jnbnJTW2GwfkRoXG8J4zs5FMcahMZwo6jrZGe9FiXjCYG9cLEuOXy4h99Z1s/o0vc/VXyWgym7SmeEgv+urf8g== + version "11.2.10" + resolved "https://registry.yarnpkg.com/@angular/core/-/core-11.2.10.tgz#d92843518cf3bef3db7014a7a798609f89072c3b" + integrity sha512-1nZGSVZPvTA6rFJhoivcUKm2YBx9A+569cV1UTPlXjcpO+wNcrrXG+6yjxS2wAffTWEQ7xA0ajyo8mZrpqqw9Q== dependencies: tslib "^2.0.0" @@ -186,20 +186,10 @@ dependencies: "@babel/highlight" "^7.12.13" -"@babel/compat-data@^7.13.0": - version "7.13.0" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.13.0.tgz#7889eb7ee6518e2afa5d312b15fd7fd1fe9f3744" - integrity sha512-mKgFbYQ+23pjwNGBNPNWrBfa3g/EcmrPnwQpjWoNxq9xYf+M8wcLhMlz/wkWimLjzNzGnl3D+C2186gMzk0VuA== - -"@babel/compat-data@^7.13.12": - version "7.13.12" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.13.12.tgz#a8a5ccac19c200f9dd49624cac6e19d7be1236a1" - integrity sha512-3eJJ841uKxeV8dcN/2yGEUy+RfgQspPEgQat85umsE1rotuquQ2AbIub4S6j7c50a2d+4myc+zSlnXeIHrOnhQ== - -"@babel/compat-data@^7.13.8": - version "7.13.8" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.13.8.tgz#5b783b9808f15cef71547f1b691f34f8ff6003a6" - integrity sha512-EaI33z19T4qN3xLXsGf48M2cDqa6ei9tPZlfLdb2HC+e/cFtREiRd8hdSqDbwdLB0/+gLwqJmCYASH0z2bUdog== +"@babel/compat-data@^7.13.0", "@babel/compat-data@^7.13.12", "@babel/compat-data@^7.13.15", "@babel/compat-data@^7.13.8": + version "7.13.15" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.13.15.tgz#7e8eea42d0b64fda2b375b22d06c605222e848f4" + integrity sha512-ltnibHKR1VnrU4ymHyQ/CXtNXI6yZC0oJThyW78Hft8XndANwi+9H+UIklBDraIjFEJzw8wmcM427oDd9KS5wA== "@babel/core@7.13.13": version "7.13.13" @@ -245,27 +235,27 @@ source-map "^0.5.0" "@babel/core@^7.7.5", "@babel/core@^7.8.6": - version "7.12.16" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.12.16.tgz#8c6ba456b23b680a6493ddcfcd9d3c3ad51cab7c" - integrity sha512-t/hHIB504wWceOeaOoONOhu+gX+hpjfeN6YRBT209X/4sibZQfSF1I0HFRRlBe97UZZosGx5XwUg1ZgNbelmNw== + version "7.13.16" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.13.16.tgz#7756ab24396cc9675f1c3fcd5b79fcce192ea96a" + integrity sha512-sXHpixBiWWFti0AV2Zq7avpTasr6sIAu7Y396c608541qAU2ui4a193m0KSQmfPSKFZLnQ3cvlKDOm3XkuXm3Q== dependencies: "@babel/code-frame" "^7.12.13" - "@babel/generator" "^7.12.15" - "@babel/helper-module-transforms" "^7.12.13" - "@babel/helpers" "^7.12.13" - "@babel/parser" "^7.12.16" + "@babel/generator" "^7.13.16" + "@babel/helper-compilation-targets" "^7.13.16" + "@babel/helper-module-transforms" "^7.13.14" + "@babel/helpers" "^7.13.16" + "@babel/parser" "^7.13.16" "@babel/template" "^7.12.13" - "@babel/traverse" "^7.12.13" - "@babel/types" "^7.12.13" + "@babel/traverse" "^7.13.15" + "@babel/types" "^7.13.16" convert-source-map "^1.7.0" debug "^4.1.0" - gensync "^1.0.0-beta.1" + gensync "^1.0.0-beta.2" json5 "^2.1.2" - lodash "^4.17.19" - semver "^5.4.1" + semver "^6.3.0" source-map "^0.5.0" -"@babel/generator@7.13.9", "@babel/generator@^7.13.9": +"@babel/generator@7.13.9": version "7.13.9" resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.13.9.tgz#3a7aa96f9efb8e2be42d38d80e2ceb4c64d8de39" integrity sha512-mHOOmY0Axl/JCTkxTU6Lf5sWOg/v8nUa+Xkt4zMTftX0wqmb6Sh7J8gvcehBw7q0AhrhAR+FDacKjCZ2X8K+Sw== @@ -274,21 +264,12 @@ jsesc "^2.5.1" source-map "^0.5.0" -"@babel/generator@^7.12.13", "@babel/generator@^7.12.15", "@babel/generator@^7.8.3": - version "7.12.15" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.12.15.tgz#4617b5d0b25cc572474cc1aafee1edeaf9b5368f" - integrity sha512-6F2xHxBiFXWNSGb7vyCUTBF8RCLY66rS0zEPcP8t/nQyXjha5EuK4z7H5o7fWG8B4M7y6mqVWq1J+1PuwRhecQ== +"@babel/generator@^7.13.16", "@babel/generator@^7.13.9", "@babel/generator@^7.8.3": + version "7.13.16" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.13.16.tgz#0befc287031a201d84cdfc173b46b320ae472d14" + integrity sha512-grBBR75UnKOcUWMp8WoDxNsWCFl//XCK6HWTrBQKTr5SV9f5g0pNOjdyzi/DTBv12S9GnYPInIXQBTky7OXEMg== dependencies: - "@babel/types" "^7.12.13" - jsesc "^2.5.1" - source-map "^0.5.0" - -"@babel/generator@^7.13.0": - version "7.13.0" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.13.0.tgz#bd00d4394ca22f220390c56a0b5b85568ec1ec0c" - integrity sha512-zBZfgvBB/ywjx0Rgc2+BwoH/3H+lDtlgD4hBOpEv5LxRnYsm/753iRuLepqnYlynpjC3AdQxtxsoeHJoEEwOAw== - dependencies: - "@babel/types" "^7.13.0" + "@babel/types" "^7.13.16" jsesc "^2.5.1" source-map "^0.5.0" @@ -307,50 +288,20 @@ "@babel/helper-explode-assignable-expression" "^7.12.13" "@babel/types" "^7.12.13" -"@babel/helper-compilation-targets@^7.13.0": - version "7.13.0" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.13.0.tgz#c9cf29b82a76fd637f0faa35544c4ace60a155a1" - integrity sha512-SOWD0JK9+MMIhTQiUVd4ng8f3NXhPVQvTv7D3UN4wbp/6cAHnB2EmMaU1zZA2Hh1gwme+THBrVSqTFxHczTh0Q== - dependencies: - "@babel/compat-data" "^7.13.0" - "@babel/helper-validator-option" "^7.12.17" - browserslist "^4.14.5" - semver "7.0.0" - -"@babel/helper-compilation-targets@^7.13.10": - version "7.13.10" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.13.10.tgz#1310a1678cb8427c07a753750da4f8ce442bdd0c" - integrity sha512-/Xju7Qg1GQO4mHZ/Kcs6Au7gfafgZnwm+a7sy/ow/tV1sHeraRUHbjdat8/UvDor4Tez+siGKDk6zIKtCPKVJA== - dependencies: - "@babel/compat-data" "^7.13.8" - "@babel/helper-validator-option" "^7.12.17" - browserslist "^4.14.5" - semver "^6.3.0" - -"@babel/helper-compilation-targets@^7.13.13": - version "7.13.13" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.13.13.tgz#2b2972a0926474853f41e4adbc69338f520600e5" - integrity sha512-q1kcdHNZehBwD9jYPh3WyXcsFERi39X4I59I3NadciWtNDyZ6x+GboOxncFK0kXlKIv6BJm5acncehXWUjWQMQ== - dependencies: - "@babel/compat-data" "^7.13.12" - "@babel/helper-validator-option" "^7.12.17" - browserslist "^4.14.5" - semver "^6.3.0" - -"@babel/helper-compilation-targets@^7.13.8": - version "7.13.8" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.13.8.tgz#02bdb22783439afb11b2f009814bdd88384bd468" - integrity sha512-pBljUGC1y3xKLn1nrx2eAhurLMA8OqBtBP/JwG4U8skN7kf8/aqwwxpV1N6T0e7r6+7uNitIa/fUxPFagSXp3A== +"@babel/helper-compilation-targets@^7.13.0", "@babel/helper-compilation-targets@^7.13.10", "@babel/helper-compilation-targets@^7.13.13", "@babel/helper-compilation-targets@^7.13.16", "@babel/helper-compilation-targets@^7.13.8": + version "7.13.16" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.13.16.tgz#6e91dccf15e3f43e5556dffe32d860109887563c" + integrity sha512-3gmkYIrpqsLlieFwjkGgLaSHmhnvlAYzZLlYVjlW+QwI+1zE17kGxuJGmIqDQdYp56XdmGeD+Bswx0UTyG18xA== dependencies: - "@babel/compat-data" "^7.13.8" + "@babel/compat-data" "^7.13.15" "@babel/helper-validator-option" "^7.12.17" browserslist "^4.14.5" semver "^6.3.0" "@babel/helper-create-class-features-plugin@^7.13.0": - version "7.13.0" - resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.13.0.tgz#28d04ad9cfbd1ed1d8b988c9ea7b945263365846" - integrity sha512-twwzhthM4/+6o9766AW2ZBHpIHPSGrPGk1+WfHiu13u/lBnggXGNYCpeAyVfNwGDKfkhEDp+WOD/xafoJ2iLjA== + version "7.13.11" + resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.13.11.tgz#30d30a005bca2c953f5653fc25091a492177f4f6" + integrity sha512-ays0I7XYq9xbjCSvT+EvysLgfc3tOkwCULHjrnscGT3A9qD4sk3wXnJ3of0MAWsWGjdinFvajHU2smYuqXKMrw== dependencies: "@babel/helper-function-name" "^7.12.13" "@babel/helper-member-expression-to-functions" "^7.13.0" @@ -359,17 +310,17 @@ "@babel/helper-split-export-declaration" "^7.12.13" "@babel/helper-create-regexp-features-plugin@^7.12.13": - version "7.12.16" - resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.12.16.tgz#3b31d13f39f930fad975e151163b7df7d4ffe9d3" - integrity sha512-jAcQ1biDYZBdaAxB4yg46/XirgX7jBDiMHDbwYQOgtViLBXGxJpZQ24jutmBqAIB/q+AwB6j+NbBXjKxEY8vqg== + version "7.12.17" + resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.12.17.tgz#a2ac87e9e319269ac655b8d4415e94d38d663cb7" + integrity sha512-p2VGmBu9oefLZ2nQpgnEnG0ZlRPvL8gAGvPUMQwUdaE8k49rOMuZpOwdQoy5qJf6K8jL3bcAMhVUlHAjIgJHUg== dependencies: "@babel/helper-annotate-as-pure" "^7.12.13" regexpu-core "^4.7.1" -"@babel/helper-define-polyfill-provider@^0.1.2": - version "0.1.2" - resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.1.2.tgz#619f01afe1deda460676c25c463b42eaefdb71a2" - integrity sha512-hWeolZJivTNGHXHzJjQz/NwDaG4mGXf22ZroOP8bQYgvHNzaQ5tylsVbAcAS2oDjXBwpu8qH2I/654QFS2rDpw== +"@babel/helper-define-polyfill-provider@^0.1.5": + version "0.1.5" + resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.1.5.tgz#3c2f91b7971b9fc11fe779c945c014065dea340e" + integrity sha512-nXuzCSwlJ/WKr8qxzW816gwyT6VZgiJG17zR40fou70yfAcqjoNyTLl/DQ+FExw5Hx5KNqshmN8Ldl/r2N7cTg== dependencies: "@babel/helper-compilation-targets" "^7.13.0" "@babel/helper-module-imports" "^7.12.13" @@ -381,11 +332,11 @@ semver "^6.1.2" "@babel/helper-explode-assignable-expression@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.12.13.tgz#0e46990da9e271502f77507efa4c9918d3d8634a" - integrity sha512-5loeRNvMo9mx1dA/d6yNi+YiKziJZFylZnCo1nmFF4qPU4yJ14abhWESuSMQSlQxWdxdOFzxXjk/PpfudTtYyw== + version "7.13.0" + resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.13.0.tgz#17b5c59ff473d9f956f40ef570cf3a76ca12657f" + integrity sha512-qS0peLTDP8kOisG1blKbaoBg/o9OSa1qoumMjTK5pM+KDTtpxpsiubnCGP34vK8BXGcb2M9eigwgvoJryrzwWA== dependencies: - "@babel/types" "^7.12.13" + "@babel/types" "^7.13.0" "@babel/helper-function-name@^7.12.13": version "7.12.13" @@ -404,82 +355,31 @@ "@babel/types" "^7.12.13" "@babel/helper-hoist-variables@^7.13.0": - version "7.13.0" - resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.13.0.tgz#5d5882e855b5c5eda91e0cadc26c6e7a2c8593d8" - integrity sha512-0kBzvXiIKfsCA0y6cFEIJf4OdzfpRuNk4+YTeHZpGGc666SATFKTz6sRncwFnQk7/ugJ4dSrCj6iJuvW4Qwr2g== - dependencies: - "@babel/traverse" "^7.13.0" - "@babel/types" "^7.13.0" - -"@babel/helper-member-expression-to-functions@^7.12.13": - version "7.12.16" - resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.12.16.tgz#41e0916b99f8d5f43da4f05d85f4930fa3d62b22" - integrity sha512-zYoZC1uvebBFmj1wFAlXwt35JLEgecefATtKp20xalwEK8vHAixLBXTGxNrVGEmTT+gzOThUgr8UEdgtalc1BQ== + version "7.13.16" + resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.13.16.tgz#1b1651249e94b51f8f0d33439843e33e39775b30" + integrity sha512-1eMtTrXtrwscjcAeO4BVK+vvkxaLJSPFz1w1KLawz6HLNi9bPFGBNwwDyVfiu1Tv/vRRFYfoGaKhmAQPGPn5Wg== dependencies: - "@babel/types" "^7.12.13" + "@babel/traverse" "^7.13.15" + "@babel/types" "^7.13.16" -"@babel/helper-member-expression-to-functions@^7.13.0": - version "7.13.0" - resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.13.0.tgz#6aa4bb678e0f8c22f58cdb79451d30494461b091" - integrity sha512-yvRf8Ivk62JwisqV1rFRMxiSMDGnN6KH1/mDMmIrij4jztpQNRoHqqMG3U6apYbGRPJpgPalhva9Yd06HlUxJQ== - dependencies: - "@babel/types" "^7.13.0" - -"@babel/helper-member-expression-to-functions@^7.13.12": +"@babel/helper-member-expression-to-functions@^7.13.0", "@babel/helper-member-expression-to-functions@^7.13.12": version "7.13.12" resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.13.12.tgz#dfe368f26d426a07299d8d6513821768216e6d72" integrity sha512-48ql1CLL59aKbU94Y88Xgb2VFy7a95ykGRbJJaaVv+LX5U8wFpLfiGXJJGUozsmA1oEh/o5Bp60Voq7ACyA/Sw== dependencies: "@babel/types" "^7.13.12" -"@babel/helper-module-imports@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.12.13.tgz#ec67e4404f41750463e455cc3203f6a32e93fcb0" - integrity sha512-NGmfvRp9Rqxy0uHSSVP+SRIW1q31a7Ji10cLBcqSDUngGentY4FRiHOFZFE1CLU5eiL0oE8reH7Tg1y99TDM/g== - dependencies: - "@babel/types" "^7.12.13" - -"@babel/helper-module-imports@^7.13.12": +"@babel/helper-module-imports@^7.12.13", "@babel/helper-module-imports@^7.13.12": version "7.13.12" resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.13.12.tgz#c6a369a6f3621cb25da014078684da9196b61977" integrity sha512-4cVvR2/1B693IuOvSI20xqqa/+bl7lqAMR59R4iu39R9aOX8/JoYY1sFaNvUMyMBGnHdwvJgUrzNLoUZxXypxA== dependencies: "@babel/types" "^7.13.12" -"@babel/helper-module-transforms@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.12.13.tgz#01afb052dcad2044289b7b20beb3fa8bd0265bea" - integrity sha512-acKF7EjqOR67ASIlDTupwkKM1eUisNAjaSduo5Cz+793ikfnpe7p4Q7B7EWU2PCoSTPWsQkR7hRUWEIZPiVLGA== - dependencies: - "@babel/helper-module-imports" "^7.12.13" - "@babel/helper-replace-supers" "^7.12.13" - "@babel/helper-simple-access" "^7.12.13" - "@babel/helper-split-export-declaration" "^7.12.13" - "@babel/helper-validator-identifier" "^7.12.11" - "@babel/template" "^7.12.13" - "@babel/traverse" "^7.12.13" - "@babel/types" "^7.12.13" - lodash "^4.17.19" - -"@babel/helper-module-transforms@^7.13.0": - version "7.13.0" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.13.0.tgz#42eb4bd8eea68bab46751212c357bfed8b40f6f1" - integrity sha512-Ls8/VBwH577+pw7Ku1QkUWIyRRNHpYlts7+qSqBBFCW3I8QteB9DxfcZ5YJpOwH6Ihe/wn8ch7fMGOP1OhEIvw== - dependencies: - "@babel/helper-module-imports" "^7.12.13" - "@babel/helper-replace-supers" "^7.13.0" - "@babel/helper-simple-access" "^7.12.13" - "@babel/helper-split-export-declaration" "^7.12.13" - "@babel/helper-validator-identifier" "^7.12.11" - "@babel/template" "^7.12.13" - "@babel/traverse" "^7.13.0" - "@babel/types" "^7.13.0" - lodash "^4.17.19" - -"@babel/helper-module-transforms@^7.13.12": - version "7.13.12" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.13.12.tgz#600e58350490828d82282631a1422268e982ba96" - integrity sha512-7zVQqMO3V+K4JOOj40kxiCrMf6xlQAkewBB0eu2b03OO/Q21ZutOzjpfD79A5gtE/2OWi1nv625MrDlGlkbknQ== +"@babel/helper-module-transforms@^7.13.0", "@babel/helper-module-transforms@^7.13.12", "@babel/helper-module-transforms@^7.13.14": + version "7.13.14" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.13.14.tgz#e600652ba48ccb1641775413cb32cfa4e8b495ef" + integrity sha512-QuU/OJ0iAOSIatyVZmfqB0lbkVP0kDRiKj34xy+QNsnVZi/PA6BoSoreeqnxxa9EHFAIL0R9XOaAR/G9WlIy5g== dependencies: "@babel/helper-module-imports" "^7.13.12" "@babel/helper-replace-supers" "^7.13.12" @@ -487,8 +387,8 @@ "@babel/helper-split-export-declaration" "^7.12.13" "@babel/helper-validator-identifier" "^7.12.11" "@babel/template" "^7.12.13" - "@babel/traverse" "^7.13.0" - "@babel/types" "^7.13.12" + "@babel/traverse" "^7.13.13" + "@babel/types" "^7.13.14" "@babel/helper-optimise-call-expression@^7.12.13": version "7.12.13" @@ -497,12 +397,7 @@ dependencies: "@babel/types" "^7.12.13" -"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.12.13.tgz#174254d0f2424d8aefb4dd48057511247b0a9eeb" - integrity sha512-C+10MXCXJLiR6IeG9+Wiejt9jmtFpxUc3MQqCmPY8hfCjyUGl9kT+B2okzEZrtykiwrc4dbCPdDoz0A/HQbDaA== - -"@babel/helper-plugin-utils@^7.13.0": +"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.13.0", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3": version "7.13.0" resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.13.0.tgz#806526ce125aed03373bc416a828321e3a6a33af" integrity sha512-ZPafIPSwzUlAoWT8DKs1W2VyF2gOWthGd5NGFMsBcMMol+ZhK+EQY/e6V96poa6PA/Bh+C9plWN0hXO1uB8AfQ== @@ -516,27 +411,7 @@ "@babel/helper-wrap-function" "^7.13.0" "@babel/types" "^7.13.0" -"@babel/helper-replace-supers@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.12.13.tgz#00ec4fb6862546bd3d0aff9aac56074277173121" - integrity sha512-pctAOIAMVStI2TMLhozPKbf5yTEXc0OJa0eENheb4w09SrgOWEs+P4nTOZYJQCqs8JlErGLDPDJTiGIp3ygbLg== - dependencies: - "@babel/helper-member-expression-to-functions" "^7.12.13" - "@babel/helper-optimise-call-expression" "^7.12.13" - "@babel/traverse" "^7.12.13" - "@babel/types" "^7.12.13" - -"@babel/helper-replace-supers@^7.13.0": - version "7.13.0" - resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.13.0.tgz#6034b7b51943094cb41627848cb219cb02be1d24" - integrity sha512-Segd5me1+Pz+rmN/NFBOplMbZG3SqRJOBlY+mA0SxAv6rjj7zJqr1AVr3SfzUVTLCv7ZLU5FycOM/SBGuLPbZw== - dependencies: - "@babel/helper-member-expression-to-functions" "^7.13.0" - "@babel/helper-optimise-call-expression" "^7.12.13" - "@babel/traverse" "^7.13.0" - "@babel/types" "^7.13.0" - -"@babel/helper-replace-supers@^7.13.12": +"@babel/helper-replace-supers@^7.12.13", "@babel/helper-replace-supers@^7.13.0", "@babel/helper-replace-supers@^7.13.12": version "7.13.12" resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.13.12.tgz#6442f4c1ad912502481a564a7386de0c77ff3804" integrity sha512-Gz1eiX+4yDO8mT+heB94aLVNCL+rbuT2xy4YfyNqu8F+OI6vMvJK891qGBTqL9Uc8wxEvRW92Id6G7sDen3fFw== @@ -546,14 +421,7 @@ "@babel/traverse" "^7.13.0" "@babel/types" "^7.13.12" -"@babel/helper-simple-access@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.12.13.tgz#8478bcc5cacf6aa1672b251c1d2dde5ccd61a6c4" - integrity sha512-0ski5dyYIHEfwpWGx5GPWhH35j342JaflmCeQmsPWcrOQDtCN6C1zKAVRFVbK53lPW2c9TsuLLSUDf0tIGJ5hA== - dependencies: - "@babel/types" "^7.12.13" - -"@babel/helper-simple-access@^7.13.12": +"@babel/helper-simple-access@^7.12.13", "@babel/helper-simple-access@^7.13.12": version "7.13.12" resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.13.12.tgz#dd6c538afb61819d205a012c31792a39c7a5eaf6" integrity sha512-7FEjbrx5SL9cWvXioDbnlYTppcZGuCY6ow3/D5vMggb2Ywgu4dMrpTJX0JdQAIcRRUElOIxF3yEooa9gUb9ZbA== @@ -594,47 +462,28 @@ "@babel/traverse" "^7.13.0" "@babel/types" "^7.13.0" -"@babel/helpers@^7.12.13", "@babel/helpers@^7.8.3": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.12.13.tgz#3c75e993632e4dadc0274eae219c73eb7645ba47" - integrity sha512-oohVzLRZ3GQEk4Cjhfs9YkJA4TdIDTObdBEZGrd6F/T0GPSnuV6l22eMcxlvcvzVIPH3VTtxbseudM1zIE+rPQ== +"@babel/helpers@^7.13.10", "@babel/helpers@^7.13.16", "@babel/helpers@^7.8.3": + version "7.13.17" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.13.17.tgz#b497c7a00e9719d5b613b8982bda6ed3ee94caf6" + integrity sha512-Eal4Gce4kGijo1/TGJdqp3WuhllaMLSrW6XcL0ulyUAQOuxHcCafZE8KHg9857gcTehsm/v7RcOx2+jp0Ryjsg== dependencies: "@babel/template" "^7.12.13" - "@babel/traverse" "^7.12.13" - "@babel/types" "^7.12.13" - -"@babel/helpers@^7.13.10": - version "7.13.10" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.13.10.tgz#fd8e2ba7488533cdeac45cc158e9ebca5e3c7df8" - integrity sha512-4VO883+MWPDUVRF3PhiLBUFHoX/bsLTGFpFK/HqvvfBZz2D57u9XzPVNFVBTc0PW/CWR9BXTOKt8NF4DInUHcQ== - dependencies: - "@babel/template" "^7.12.13" - "@babel/traverse" "^7.13.0" - "@babel/types" "^7.13.0" + "@babel/traverse" "^7.13.17" + "@babel/types" "^7.13.17" "@babel/highlight@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.12.13.tgz#8ab538393e00370b26271b01fa08f7f27f2e795c" - integrity sha512-kocDQvIbgMKlWxXe9fof3TQ+gkIPOUSEYhJjqUjvKMez3krV7vbzYCDq39Oj11UAVK7JqPVGQPlgE85dPNlQww== + version "7.13.10" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.13.10.tgz#a8b2a66148f5b27d666b15d81774347a731d52d1" + integrity sha512-5aPpe5XQPzflQrFwL1/QoeHkP2MsA4JCntcXHRhEsdsfPVkvPi2w7Qix4iV7t5S/oC9OodGrggd8aco1g3SZFg== dependencies: "@babel/helper-validator-identifier" "^7.12.11" chalk "^2.0.0" js-tokens "^4.0.0" -"@babel/parser@^7.1.0", "@babel/parser@^7.12.13", "@babel/parser@^7.12.16", "@babel/parser@^7.8.3": - version "7.12.16" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.12.16.tgz#cc31257419d2c3189d394081635703f549fc1ed4" - integrity sha512-c/+u9cqV6F0+4Hpq01jnJO+GLp2DdT63ppz9Xa+6cHaajM9VFzK/iDXiKK65YtpeVwu+ctfS6iqlMqRgQRzeCw== - -"@babel/parser@^7.13.0": - version "7.13.0" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.13.0.tgz#49b9b6ee213e5634fa80361dae139effef893f78" - integrity sha512-w80kxEMFhE3wjMOQkfdTvv0CSdRSJZptIlLhU4eU/coNJeWjduspUFz+IRnBbAq6m5XYBFMoT1TNkk9K9yf10g== - -"@babel/parser@^7.13.13": - version "7.13.13" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.13.13.tgz#42f03862f4aed50461e543270916b47dd501f0df" - integrity sha512-OhsyMrqygfk5v8HmWwOzlYjJrtLaFhF34MrfG/Z73DgYCI6ojNUTUp2TYbtnjo8PegeJp12eamsNettCQjKjVw== +"@babel/parser@^7.1.0", "@babel/parser@^7.12.13", "@babel/parser@^7.13.13", "@babel/parser@^7.13.16", "@babel/parser@^7.8.3": + version "7.13.16" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.13.16.tgz#0f18179b0448e6939b1f3f5c4c355a3a9bcdfd37" + integrity sha512-6bAg36mCwuqLO0hbR+z7PHuqWiCeP7Dzg73OpQwsAB1Eb8HnGEz5xYBzCfbu+YjoaJsJs+qheDxVAuqbt3ILEw== "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.13.12": version "7.13.12" @@ -646,9 +495,9 @@ "@babel/plugin-proposal-optional-chaining" "^7.13.12" "@babel/plugin-proposal-async-generator-functions@^7.13.8": - version "7.13.8" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.13.8.tgz#87aacb574b3bc4b5603f6fe41458d72a5a2ec4b1" - integrity sha512-rPBnhj+WgoSmgq+4gQUtXx/vOcU+UYtjy1AA/aeD61Hwj410fwYyqfUcRP3lR8ucgliVJL/G7sXcNUecC75IXA== + version "7.13.15" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.13.15.tgz#80e549df273a3b3050431b148c892491df1bcc5b" + integrity sha512-VapibkWzFeoa6ubXy/NgV5U2U4MVnUlvnx6wo1XhlsaTrLYWE0UFpDQsVrmn22q5CzeloqJ8gEMHSKxuee6ZdA== dependencies: "@babel/helper-plugin-utils" "^7.13.0" "@babel/helper-remap-async-to-generator" "^7.13.0" @@ -862,11 +711,11 @@ "@babel/helper-plugin-utils" "^7.12.13" "@babel/plugin-transform-block-scoping@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.12.13.tgz#f36e55076d06f41dfd78557ea039c1b581642e61" - integrity sha512-Pxwe0iqWJX4fOOM2kEZeUuAxHMWb9nK+9oh5d11bsLoB0xMg+mkDpt0eYuDZB7ETrY9bbcVlKUGTOGWy7BHsMQ== + version "7.13.16" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.13.16.tgz#a9c0f10794855c63b1d629914c7dcfeddd185892" + integrity sha512-ad3PHUxGnfWF4Efd3qFuznEtZKoBp0spS+DgqzVzRPV7urEBvPLue3y2j80w4Jf2YLzZHj8TOv/Lmvdmh3b2xg== dependencies: - "@babel/helper-plugin-utils" "^7.12.13" + "@babel/helper-plugin-utils" "^7.13.0" "@babel/plugin-transform-classes@^7.13.0": version "7.13.0" @@ -889,9 +738,9 @@ "@babel/helper-plugin-utils" "^7.13.0" "@babel/plugin-transform-destructuring@^7.13.0": - version "7.13.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.13.0.tgz#c5dce270014d4e1ebb1d806116694c12b7028963" - integrity sha512-zym5em7tePoNT9s964c0/KU3JPPnuq7VhIxPRefJ4/s82cD+q1mgKfuGRDMCPL0HTyKz4dISuQlCusfgCJ86HA== + version "7.13.17" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.13.17.tgz#678d96576638c19d5b36b332504d3fd6e06dea27" + integrity sha512-UAUqiLv+uRLO+xuBKKMEpC+t7YRNVRqBsWWq1yKXbBZBje/t3IXCiSinZhjn/DC3qzBfICeYd2EFGEbHsh5RLA== dependencies: "@babel/helper-plugin-utils" "^7.13.0" @@ -1022,9 +871,9 @@ "@babel/helper-plugin-utils" "^7.12.13" "@babel/plugin-transform-regenerator@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.12.13.tgz#b628bcc9c85260ac1aeb05b45bde25210194a2f5" - integrity sha512-lxb2ZAvSLyJ2PEe47hoGWPmW22v7CtSl9jW8mingV4H2sEX/JOcrAj2nPuGWi56ERUm2bUpjKzONAuT6HCn2EA== + version "7.13.15" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.13.15.tgz#e5eb28945bf8b6563e7f818945f966a8d2997f39" + integrity sha512-Bk9cOLSz8DiurcMETZ8E2YtIVJbFCPGW28DJWUakmyVWtQSm6Wsf0p4B4BfEr/eL2Nkhe/CICiUiMOCi1TPhuQ== dependencies: regenerator-transform "^0.14.2" @@ -1192,9 +1041,9 @@ regenerator-runtime "^0.13.4" "@babel/runtime@^7.8.4": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.12.13.tgz#0a21452352b02542db0ffb928ac2d3ca7cb6d66d" - integrity sha512-8+3UMPBrjFa/6TtKi/7sehPKqfAm4g6K+YQjyyFOLUTxzOngcRZTlAVY8sc2CORJYqdHQY8gRPHmn+qo15rCBw== + version "7.13.17" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.13.17.tgz#8966d1fc9593bf848602f0662d6b4d0069e3a7ec" + integrity sha512-NCdgJEelPTSh+FEFylhnP1ylq848l1z9t9N0j1Lfbcw0+KXGjsTvUmkxy+voLLXB5SOKMbLLx4jxYliGrYQseA== dependencies: regenerator-runtime "^0.13.4" @@ -1207,84 +1056,26 @@ "@babel/parser" "^7.12.13" "@babel/types" "^7.12.13" -"@babel/traverse@^7.12.13", "@babel/traverse@^7.8.3": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.12.13.tgz#689f0e4b4c08587ad26622832632735fb8c4e0c0" - integrity sha512-3Zb4w7eE/OslI0fTp8c7b286/cQps3+vdLW3UcwC8VSJC6GbKn55aeVVu2QJNuCDoeKyptLOFrPq8WqZZBodyA== +"@babel/traverse@^7.13.0", "@babel/traverse@^7.13.13", "@babel/traverse@^7.13.15", "@babel/traverse@^7.13.17", "@babel/traverse@^7.8.3": + version "7.13.17" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.13.17.tgz#c85415e0c7d50ac053d758baec98b28b2ecfeea3" + integrity sha512-BMnZn0R+X6ayqm3C3To7o1j7Q020gWdqdyP50KEoVqaCO2c/Im7sYZSmVgvefp8TTMQ+9CtwuBp0Z1CZ8V3Pvg== dependencies: "@babel/code-frame" "^7.12.13" - "@babel/generator" "^7.12.13" + "@babel/generator" "^7.13.16" "@babel/helper-function-name" "^7.12.13" "@babel/helper-split-export-declaration" "^7.12.13" - "@babel/parser" "^7.12.13" - "@babel/types" "^7.12.13" + "@babel/parser" "^7.13.16" + "@babel/types" "^7.13.17" debug "^4.1.0" globals "^11.1.0" - lodash "^4.17.19" - -"@babel/traverse@^7.13.0": - version "7.13.0" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.13.0.tgz#6d95752475f86ee7ded06536de309a65fc8966cc" - integrity sha512-xys5xi5JEhzC3RzEmSGrs/b3pJW/o87SypZ+G/PhaE7uqVQNv/jlmVIBXuoh5atqQ434LfXV+sf23Oxj0bchJQ== - dependencies: - "@babel/code-frame" "^7.12.13" - "@babel/generator" "^7.13.0" - "@babel/helper-function-name" "^7.12.13" - "@babel/helper-split-export-declaration" "^7.12.13" - "@babel/parser" "^7.13.0" - "@babel/types" "^7.13.0" - debug "^4.1.0" - globals "^11.1.0" - lodash "^4.17.19" - -"@babel/traverse@^7.13.13": - version "7.13.13" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.13.13.tgz#39aa9c21aab69f74d948a486dd28a2dbdbf5114d" - integrity sha512-CblEcwmXKR6eP43oQGG++0QMTtCjAsa3frUuzHoiIJWpaIIi8dwMyEFUJoXRLxagGqCK+jALRwIO+o3R9p/uUg== - dependencies: - "@babel/code-frame" "^7.12.13" - "@babel/generator" "^7.13.9" - "@babel/helper-function-name" "^7.12.13" - "@babel/helper-split-export-declaration" "^7.12.13" - "@babel/parser" "^7.13.13" - "@babel/types" "^7.13.13" - debug "^4.1.0" - globals "^11.1.0" - -"@babel/types@^7.0.0", "@babel/types@^7.12.1", "@babel/types@^7.12.13", "@babel/types@^7.3.0", "@babel/types@^7.4.4", "@babel/types@^7.8.3", "@babel/types@^7.8.6": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.12.13.tgz#8be1aa8f2c876da11a9cf650c0ecf656913ad611" - integrity sha512-oKrdZTld2im1z8bDwTOQvUbxKwE+854zc16qWZQlcTqMN00pWxHQ4ZeOq0yDMnisOpRykH2/5Qqcrk/OlbAjiQ== - dependencies: - "@babel/helper-validator-identifier" "^7.12.11" - lodash "^4.17.19" - to-fast-properties "^2.0.0" - -"@babel/types@^7.13.0": - version "7.13.0" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.13.0.tgz#74424d2816f0171b4100f0ab34e9a374efdf7f80" - integrity sha512-hE+HE8rnG1Z6Wzo+MhaKE5lM5eMx71T4EHJgku2E3xIfaULhDcxiiRxUYgwX8qwP1BBSlag+TdGOt6JAidIZTA== - dependencies: - "@babel/helper-validator-identifier" "^7.12.11" - lodash "^4.17.19" - to-fast-properties "^2.0.0" -"@babel/types@^7.13.12": - version "7.13.12" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.13.12.tgz#edbf99208ef48852acdff1c8a681a1e4ade580cd" - integrity sha512-K4nY2xFN4QMvQwkQ+zmBDp6ANMbVNw6BbxWmYA4qNjhR9W+Lj/8ky5MEY2Me5r+B2c6/v6F53oMndG+f9s3IiA== +"@babel/types@^7.0.0", "@babel/types@^7.12.1", "@babel/types@^7.12.13", "@babel/types@^7.13.0", "@babel/types@^7.13.12", "@babel/types@^7.13.13", "@babel/types@^7.13.14", "@babel/types@^7.13.16", "@babel/types@^7.13.17", "@babel/types@^7.3.0", "@babel/types@^7.4.4", "@babel/types@^7.8.3", "@babel/types@^7.8.6": + version "7.13.17" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.13.17.tgz#48010a115c9fba7588b4437dd68c9469012b38b4" + integrity sha512-RawydLgxbOPDlTLJNtoIypwdmAy//uQIzlKt2+iBiJaRlVuI6QLUxVAyWGNfOzp8Yu4L4lLIacoCyTNtpb4wiA== dependencies: "@babel/helper-validator-identifier" "^7.12.11" - lodash "^4.17.19" - to-fast-properties "^2.0.0" - -"@babel/types@^7.13.13": - version "7.13.13" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.13.13.tgz#dcd8b815b38f537a3697ce84c8e3cc62197df96f" - integrity sha512-kt+EpC6qDfIaqlP+DIbIJOclYy/A1YXs9dAf/ljbi+39Bcbc073H6jKVpXEr/EoIh5anGn5xq/yRVzKl+uIc9w== - dependencies: - "@babel/helper-validator-identifier" "^7.12.11" - lodash "^4.17.19" to-fast-properties "^2.0.0" "@bazel/bazelisk@1.7.5": @@ -1381,18 +1172,17 @@ integrity sha512-oN3y7FAROHhrAt7Rr7PnTSwrHrZVRTS2ZbyxeQwSSYD0ifwM3YNgQqbaRmjcWoPyq77MjchusjJDspbzMmip1Q== "@npmcli/git@^2.0.1": - version "2.0.6" - resolved "https://registry.yarnpkg.com/@npmcli/git/-/git-2.0.6.tgz#47b97e96b2eede3f38379262fa3bdfa6eae57bf2" - integrity sha512-a1MnTfeRPBaKbFY07fd+6HugY1WAkKJzdiJvlRub/9o5xz2F/JtPacZZapx5zRJUQFIzSL677vmTSxEcDMrDbg== + version "2.0.8" + resolved "https://registry.yarnpkg.com/@npmcli/git/-/git-2.0.8.tgz#c38b54cdeec556ab641cf6161cc7825711a88d65" + integrity sha512-LPnzyBZ+1p7+JzHVwwKycMF8M3lr1ze3wxGRnxn/QxJtk++Y3prSJQrdBDGCxJyRpFsup6J3lrRBVYBhJVrM8Q== dependencies: - "@npmcli/promise-spawn" "^1.1.0" + "@npmcli/promise-spawn" "^1.3.2" lru-cache "^6.0.0" - mkdirp "^1.0.3" - npm-pick-manifest "^6.0.0" + mkdirp "^1.0.4" + npm-pick-manifest "^6.1.1" promise-inflight "^1.0.1" promise-retry "^2.0.1" - semver "^7.3.2" - unique-filename "^1.1.1" + semver "^7.3.5" which "^2.0.2" "@npmcli/installed-package-contents@^1.0.6": @@ -1416,7 +1206,7 @@ resolved "https://registry.yarnpkg.com/@npmcli/node-gyp/-/node-gyp-1.0.2.tgz#3cdc1f30e9736dbc417373ed803b42b1a0a29ede" integrity sha512-yrJUe6reVMpktcvagumoqD9r08fH1iRo01gn1u0zoCApa9lnZGEigVKUd2hzsCId4gdtkZZIVscLhNxMECKgRg== -"@npmcli/promise-spawn@^1.1.0", "@npmcli/promise-spawn@^1.2.0", "@npmcli/promise-spawn@^1.3.2": +"@npmcli/promise-spawn@^1.2.0", "@npmcli/promise-spawn@^1.3.2": version "1.3.2" resolved "https://registry.yarnpkg.com/@npmcli/promise-spawn/-/promise-spawn-1.3.2.tgz#42d4e56a8e9274fba180dabc0aea6e38f29274f5" integrity sha512-QyAGYo/Fbj4MXeGdJcFzZ+FkDkomfRBrPM+9QYJSg+PxgAUL+LU3FneQk37rKR2/zjqkCV1BLHccX98wRXG3Sg== @@ -1424,15 +1214,14 @@ infer-owner "^1.0.4" "@npmcli/run-script@^1.8.2": - version "1.8.3" - resolved "https://registry.yarnpkg.com/@npmcli/run-script/-/run-script-1.8.3.tgz#07f440ed492400bb1114369bc37315eeaaae2bb3" - integrity sha512-ELPGWAVU/xyU+A+H3pEPj0QOvYwLTX71RArXcClFzeiyJ/b/McsZ+d0QxpznvfFtZzxGN/gz/1cvlqICR4/suQ== + version "1.8.4" + resolved "https://registry.yarnpkg.com/@npmcli/run-script/-/run-script-1.8.4.tgz#03ced92503a6fe948cbc0975ce39210bc5e824d6" + integrity sha512-Yd9HXTtF1JGDXZw0+SOn+mWLYS0e7bHBHVC/2C8yqs4wUrs/k8rwBSinD7rfk+3WG/MFGRZKxjyoD34Pch2E/A== dependencies: "@npmcli/node-gyp" "^1.0.2" "@npmcli/promise-spawn" "^1.3.2" infer-owner "^1.0.4" node-gyp "^7.1.0" - puka "^1.0.1" read-package-json-fast "^2.0.1" "@octokit/endpoint@^6.0.1": @@ -1453,15 +1242,10 @@ "@octokit/types" "^6.0.3" universal-user-agent "^6.0.0" -"@octokit/openapi-types@^4.0.3": - version "4.0.4" - resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-4.0.4.tgz#96fcce11e929802898646205ac567e5df592f82b" - integrity sha512-31zY8JIuz3h6RAFOnyA8FbOwhILILiBu1qD81RyZZWY7oMBhIdBn6MaAmnnptLhB4jk0g50nkQkUVP4kUzppcA== - "@octokit/openapi-types@^6.0.0": - version "6.0.0" - resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-6.0.0.tgz#7da8d7d5a72d3282c1a3ff9f951c8133a707480d" - integrity sha512-CnDdK7ivHkBtJYzWzZm7gEkanA7gKH6a09Eguz7flHw//GacPJLmkHA3f3N++MJmlxD1Fl+mB7B32EEpSCwztQ== + version "6.1.0" + resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-6.1.0.tgz#cf0f859f9a4833b7fa5141b53e1d62d5d1cbc78f" + integrity sha512-Z9fDZVbGj4dFLErEoXUSuZhk3wJ8KVGnbrUwoPijsQ9EyNwOeQ+U2jSqaHUz8WtgIWf0aeO59oJyhMpWCKaabg== "@octokit/request-error@^1.0.2": version "1.2.1" @@ -1482,17 +1266,15 @@ once "^1.4.0" "@octokit/request@^5.0.0", "@octokit/request@^5.3.0": - version "5.4.14" - resolved "https://registry.yarnpkg.com/@octokit/request/-/request-5.4.14.tgz#ec5f96f78333bb2af390afa5ff66f114b063bc96" - integrity sha512-VkmtacOIQp9daSnBmDI92xNIeLuSRDOIuplp/CJomkvzt7M18NXgG044Cx/LFKLgjKt9T2tZR6AtJayba9GTSA== + version "5.4.15" + resolved "https://registry.yarnpkg.com/@octokit/request/-/request-5.4.15.tgz#829da413dc7dd3aa5e2cdbb1c7d0ebe1f146a128" + integrity sha512-6UnZfZzLwNhdLRreOtTkT9n57ZwulCve8q3IT/Z477vThu6snfdkBuhxnChpOKNGxcQ71ow561Qoa6uqLdPtag== dependencies: "@octokit/endpoint" "^6.0.1" "@octokit/request-error" "^2.0.0" "@octokit/types" "^6.7.1" - deprecation "^2.0.0" is-plain-object "^5.0.0" node-fetch "^2.6.1" - once "^1.4.0" universal-user-agent "^6.0.0" "@octokit/rest@16.28.7": @@ -1521,20 +1303,13 @@ dependencies: "@types/node" ">= 8" -"@octokit/types@^6.0.0": - version "6.13.0" - resolved "https://registry.yarnpkg.com/@octokit/types/-/types-6.13.0.tgz#779e5b7566c8dde68f2f6273861dd2f0409480d0" - integrity sha512-W2J9qlVIU11jMwKHUp5/rbVUeErqelCsO5vW5PKNb7wAXQVUz87Rc+imjlEvpvbH8yUb+KHmv8NEjVZdsdpyxA== +"@octokit/types@^6.0.0", "@octokit/types@^6.0.3", "@octokit/types@^6.7.1": + version "6.13.1" + resolved "https://registry.yarnpkg.com/@octokit/types/-/types-6.13.1.tgz#85f447f97dc7edb672f221df51f56a51785c131a" + integrity sha512-UF/PL0y4SKGx/p1azFf7e6j9lB78tVwAFvnHtslzOJ6VipshYks74qm9jjTEDlCyaTmbhbk2h3Run5l0CtCF6A== dependencies: "@octokit/openapi-types" "^6.0.0" -"@octokit/types@^6.0.3", "@octokit/types@^6.7.1": - version "6.8.5" - resolved "https://registry.yarnpkg.com/@octokit/types/-/types-6.8.5.tgz#797dfdad8c75718e97dc687d4c9fc49200ca8d17" - integrity sha512-ZsQawftZoi0kSF2pCsdgLURbOjtVcHnBOXiSxBKSNF56CRjARt5rb/g8WJgqB8vv4lgUEHrv06EdDKYQ22vA9Q== - dependencies: - "@octokit/openapi-types" "^4.0.3" - "@protobufjs/aspromise@^1.1.1", "@protobufjs/aspromise@^1.1.2": version "1.1.2" resolved "https://registry.yarnpkg.com/@protobufjs/aspromise/-/aspromise-1.1.2.tgz#9b8b0cc663d669a7d8f6f5d0893a14d348f30fbf" @@ -1588,10 +1363,10 @@ resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570" integrity sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA= -"@rollup/plugin-commonjs@^17.0.0": - version "17.1.0" - resolved "https://registry.yarnpkg.com/@rollup/plugin-commonjs/-/plugin-commonjs-17.1.0.tgz#757ec88737dffa8aa913eb392fade2e45aef2a2d" - integrity sha512-PoMdXCw0ZyvjpCMT5aV4nkL0QywxP29sODQsSGeDpr/oI49Qq9tRtAsb/LbYbDzFlOydVEqHmmZWFtXJEAX9ew== +"@rollup/plugin-commonjs@^18.0.0": + version "18.0.0" + resolved "https://registry.yarnpkg.com/@rollup/plugin-commonjs/-/plugin-commonjs-18.0.0.tgz#50dc7518b5aa9e66a270e529ea85115d269825c4" + integrity sha512-fj92shhg8luw7XbA0HowAqz90oo7qtLGwqTKbyZ8pmOyH8ui5e+u0wPEgeHLH3djcVma6gUCUrjY6w5R2o1u6g== dependencies: "@rollup/pluginutils" "^3.1.0" commondir "^1.0.1" @@ -1609,9 +1384,9 @@ "@rollup/pluginutils" "^3.0.8" "@rollup/plugin-node-resolve@^11.1.0": - version "11.2.0" - resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.2.0.tgz#a5ab88c35bb7622d115f44984dee305112b6f714" - integrity sha512-qHjNIKYt5pCcn+5RUBQxK8krhRvf1HnyVgUCcFFcweDS7fhkOLZeYh0mhHK6Ery8/bb9tvN/ubPzmfF0qjDCTA== + version "11.2.1" + resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.2.1.tgz#82aa59397a29cd4e13248b106e6a4a1880362a60" + integrity sha512-yc2n43jcqVyGE2sqV5/YCmocy9ArjVAP/BeXyTtADTBBX6V0e5UMqwO8CdQ0kzjb6zu5P1qMzsScCMRvE9OlVg== dependencies: "@rollup/pluginutils" "^3.1.0" "@types/resolve" "1.17.1" @@ -1651,6 +1426,11 @@ resolved "https://registry.yarnpkg.com/@trysound/sax/-/sax-0.1.1.tgz#3348564048e7a2d7398c935d466c0414ebb6a669" integrity sha512-Z6DoceYb/1xSg5+e+ZlPZ9v0N16ZvZ+wYMraFue4HYrE4ttONKtsvruIRf6t9TBR0YvSOfi1hUU0fJfBLCDYow== +"@types/anymatch@*": + version "1.3.1" + resolved "https://registry.yarnpkg.com/@types/anymatch/-/anymatch-1.3.1.tgz#336badc1beecb9dacc38bea2cf32adf627a8421a" + integrity sha512-/+CRPXpBDpo2RK9C68N3b2cOvO0Cf5B9aPijHsoDQTHivnGSObdOF2BRQOYjojWTDy6nQvMjmqRXIxH55VjxxA== + "@types/autoprefixer@^9.0.0": version "9.7.2" resolved "https://registry.yarnpkg.com/@types/autoprefixer/-/autoprefixer-9.7.2.tgz#64b3251c9675feef5a631b7dd34cfea50a8fdbcc" @@ -1686,9 +1466,9 @@ "@babel/types" "^7.0.0" "@types/babel__traverse@*": - version "7.11.0" - resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.11.0.tgz#b9a1efa635201ba9bc850323a8793ee2d36c04a0" - integrity sha512-kSjgDMZONiIfSH1Nxcr5JIRMwUetDki63FSQfpTCz8ogF3Ulqm8+mr5f78dUYs6vMiB6gBusQqfQmBvHZj/lwg== + version "7.11.1" + resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.11.1.tgz#654f6c4f67568e24c23b367e947098c6206fa639" + integrity sha512-Vs0hm0vPahPMYi9tDjtP66llufgO3ST16WXaSTtDGEl9cewAl3AibmxWw6TINOqHPT9z0uABKAYjT9jNSg4npw== dependencies: "@babel/types" "^7.3.0" @@ -1735,9 +1515,9 @@ integrity sha512-bsjleuRKWmGqajMerkzox19aGbscQX5rmmvvXl3wlIp5gMG1HgkiwPxsN5p070fBDKTNSPgojVbuY1+HWMbFhg== "@types/connect-history-api-fallback@*": - version "1.3.3" - resolved "https://registry.yarnpkg.com/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.3.3.tgz#4772b79b8b53185f0f4c9deab09236baf76ee3b4" - integrity sha512-7SxFCd+FLlxCfwVwbyPxbR4khL9aNikJhrorw8nUIOqeuooc9gifBuDQOJw5kzN7i6i3vLn9G8Wde/4QDihpYw== + version "1.3.4" + resolved "https://registry.yarnpkg.com/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.3.4.tgz#8c0f0e6e5d8252b699f5a662f51bdf82fd9d8bb8" + integrity sha512-Kf8v0wljR5GSCOCF/VQWdV3ZhKOVA73drXtY3geMTQgHy9dgqQ0dLrf31M0hcuWkhFzK5sP0kkS3mJzcKVtZbw== dependencies: "@types/express-serve-static-core" "*" "@types/node" "*" @@ -1755,11 +1535,11 @@ integrity sha512-y7mImlc/rNkvCRmg8gC3/lj87S7pTUIJ6QGjwHR9WQJcFs+ZMTOaoPrkdFA/YdbuqVEmEbb5RdhVxMkAcgOnpg== "@types/copy-webpack-plugin@^6.0.0": - version "6.4.0" - resolved "https://registry.yarnpkg.com/@types/copy-webpack-plugin/-/copy-webpack-plugin-6.4.0.tgz#225f86bc60a62052df39a110f7cbf7bc5156a0c1" - integrity sha512-f5mQG5c7xH3zLGrEmKgzLLFSGNB7Y4+4a+a1X4DvjgfbTEWEZUNNXUqGs5tBVCtb5qKPzm2z+6ixX3xirWmOCg== + version "6.4.1" + resolved "https://registry.yarnpkg.com/@types/copy-webpack-plugin/-/copy-webpack-plugin-6.4.1.tgz#f2ab07def407c6a1fcfe626864b326c3584e2167" + integrity sha512-jnM0aMsaMTBr+xlMIO/fu+ZXIbSncmj4UB9ZHTXVfZJsUwGqtdfdSfz1/S8O99R9k7G5V6KhbAd8+QL0f2kUkg== dependencies: - "@types/webpack" "*" + "@types/webpack" "^4" "@types/cors@^2.8.8": version "2.8.10" @@ -1787,32 +1567,27 @@ "@types/estree" "*" "@types/eslint@*": - version "7.2.6" - resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-7.2.6.tgz#5e9aff555a975596c03a98b59ecd103decc70c3c" - integrity sha512-I+1sYH+NPQ3/tVqCeUSBwTE/0heyvtXqpIopUUArlBm0Kpocb8FbMa3AZ/ASKIFpN3rnEx932TTXDbt9OXsNDw== + version "7.2.10" + resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-7.2.10.tgz#4b7a9368d46c0f8cd5408c23288a59aa2394d917" + integrity sha512-kUEPnMKrqbtpCq/KTaGFFKAcz6Ethm2EjCoKIDaCmfRBWLbFuTcOJfTlorwbnboXBzahqWLgUp1BQeKHiJzPUQ== dependencies: "@types/estree" "*" "@types/json-schema" "*" -"@types/estree@*", "@types/estree@^0.0.46": - version "0.0.46" - resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.46.tgz#0fb6bfbbeabd7a30880504993369c4bf1deab1fe" - integrity sha512-laIjwTQaD+5DukBZaygQ79K1Z0jb1bPEMRrkXSLjtCcZm+abyp5YbrqpSLzD42FwWW6gK/aS4NYpJ804nG2brg== +"@types/estree@*", "@types/estree@^0.0.47": + version "0.0.47" + resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.47.tgz#d7a51db20f0650efec24cd04994f523d93172ed4" + integrity sha512-c5ciR06jK8u9BstrmJyO97m+klJrrhCf9u3rLu3DEAJBirxRqSCvDQoYKmxuYwQI5SZChAWu+tq9oVlGRuzPAg== "@types/estree@0.0.39": version "0.0.39" resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f" integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw== -"@types/estree@^0.0.47": - version "0.0.47" - resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.47.tgz#d7a51db20f0650efec24cd04994f523d93172ed4" - integrity sha512-c5ciR06jK8u9BstrmJyO97m+klJrrhCf9u3rLu3DEAJBirxRqSCvDQoYKmxuYwQI5SZChAWu+tq9oVlGRuzPAg== - "@types/express-serve-static-core@*", "@types/express-serve-static-core@^4.17.18": - version "4.17.18" - resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.17.18.tgz#8371e260f40e0e1ca0c116a9afcd9426fa094c40" - integrity sha512-m4JTwx5RUBNZvky/JJ8swEJPKFd8si08pPF2PfizYjGZOKr/svUWPcoUmLow6MmPzhasphB7gSTINY67xn3JNA== + version "4.17.19" + resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.17.19.tgz#00acfc1632e729acac4f1530e9e16f6dd1508a1d" + integrity sha512-DJOSHzX7pCiSElWaGR8kCprwibCB/3yW6vcT8VG3P0SJjnv19gnWG/AZMfM60Xj/YJIp/YCaDHyvzsFVeniARA== dependencies: "@types/node" "*" "@types/qs" "*" @@ -1846,16 +1621,7 @@ resolved "https://registry.yarnpkg.com/@types/http-cache-semantics/-/http-cache-semantics-4.0.0.tgz#9140779736aa2655635ee756e2467d787cfe8a2a" integrity sha512-c3Xy026kOF7QOTn00hbIllV1dLR9hG9NkSrLQgCVs8NF6sBU+VGWjD3wLPhmh1TYAc7ugCFsvHYMN4VcBN1U1A== -"@types/http-proxy-middleware@*": - version "0.19.3" - resolved "https://registry.yarnpkg.com/@types/http-proxy-middleware/-/http-proxy-middleware-0.19.3.tgz#b2eb96fbc0f9ac7250b5d9c4c53aade049497d03" - integrity sha512-lnBTx6HCOUeIJMLbI/LaL5EmdKLhczJY5oeXZpX/cXE4rRqb3RmV7VcMpiEfYkmTjipv3h7IAyIINe4plEv7cA== - dependencies: - "@types/connect" "*" - "@types/http-proxy" "*" - "@types/node" "*" - -"@types/http-proxy@*", "@types/http-proxy@^1.17.4": +"@types/http-proxy@^1.17.4", "@types/http-proxy@^1.17.5": version "1.17.5" resolved "https://registry.yarnpkg.com/@types/http-proxy/-/http-proxy-1.17.5.tgz#c203c5e6e9dc6820d27a40eb1e511c70a220423d" integrity sha512-GNkDE7bTv6Sf8JbV2GksknKOsk7OznNYHSdrtvPJXO0qJ9odZig6IZKUi5RFGi6d1bf6dgIAe4uXi3DBc7069Q== @@ -1881,9 +1647,9 @@ integrity sha512-sz7iLqvVUg1gIedBOvlkxPlc8/uVzyS5OwGz1cKjXzkl3FpL3al0crU8YGU1WoHkxn0Wxbw5tyi6hvzJKNzFsw== "@types/jasmine@~3.6.0": - version "3.6.3" - resolved "https://registry.yarnpkg.com/@types/jasmine/-/jasmine-3.6.3.tgz#824df555b8a5114f91619e78d8f59624d6f23050" - integrity sha512-5QKAG8WfC9XrOgYLXPrxv1G2IIUE6zDyzTWamhNWJO0LqPRUbZ0q0zGHDhDJ7MpFloUuyME/jpBIdPjq3/P3jA== + version "3.6.9" + resolved "https://registry.yarnpkg.com/@types/jasmine/-/jasmine-3.6.9.tgz#8785870f87839b7d91b45d7b226380f28dee5d9f" + integrity sha512-B53NIwMj/AO0O+xfSWLYmKB0Mo6TYxfv2Mk8/c1T2w/e38t55iaPR6p7pHXTTtqfTmevPK3i8T1YweYFTZlxDw== "@types/json-schema@*", "@types/json-schema@^7.0.5", "@types/json-schema@^7.0.6": version "7.0.7" @@ -1906,12 +1672,12 @@ "@types/node" "*" "@types/loader-utils@^2.0.0": - version "2.0.1" - resolved "https://registry.yarnpkg.com/@types/loader-utils/-/loader-utils-2.0.1.tgz#4073425aca25762099823f7b922e86599c2b85ec" - integrity sha512-X3jTNi/I2AEd2WrHdSqRppPkYzWkRMNGxJzeMwS0o3hVi8ZB6JCnf/XyQmqpUuCidld5lC/1VxVgTktEweRK+w== + version "2.0.2" + resolved "https://registry.yarnpkg.com/@types/loader-utils/-/loader-utils-2.0.2.tgz#2999dc2a3330b3ac0b2eaa9e01328b3484ef1112" + integrity sha512-y3UaQ1rIkp2Nzv67Wa/MS7GJM958CDyWkMmnFneTRcWKlaSPreESrwruQ2WhEapQHCV6HJ2Pj62k0BB7mtQNHw== dependencies: "@types/node" "*" - "@types/webpack" "*" + "@types/webpack" "^4" "@types/long@^4.0.0": version "4.0.1" @@ -1923,12 +1689,7 @@ resolved "https://registry.yarnpkg.com/@types/mime/-/mime-1.3.2.tgz#93e25bf9ee75fe0fd80b594bc4feb0e862111b5a" integrity sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw== -"@types/minimatch@*", "@types/minimatch@^3.0.3": - version "3.0.3" - resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d" - integrity sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA== - -"@types/minimatch@3.0.4": +"@types/minimatch@*", "@types/minimatch@3.0.4", "@types/minimatch@^3.0.3": version "3.0.4" resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.4.tgz#f0ec25dbf2f0e4b18647313ac031134ca5b24b21" integrity sha512-1z8k4wzFnNjVK/tlxvrWuK5WMt6mydWWP7+zvH5eFep4oj+UkrfiJTRtjCeBXNpwaA/FYqqtb4/QS4ianFpIRA== @@ -1939,22 +1700,22 @@ integrity sha512-fZQQafSREFyuZcdWFAExYjBiCL7AUCdgsk80iO0q4yihYYdcIiH28CcuPTGFgLOCC8RlW49GSQxdHwZP+I7CNg== "@types/node-fetch@^2.1.6": - version "2.5.8" - resolved "https://registry.yarnpkg.com/@types/node-fetch/-/node-fetch-2.5.8.tgz#e199c835d234c7eb0846f6618012e558544ee2fb" - integrity sha512-fbjI6ja0N5ZA8TV53RUqzsKNkl9fv8Oj3T7zxW7FGv1GSH7gwJaNF8dzCjrqKaxKeUpTz4yT1DaJFq/omNpGfw== + version "2.5.10" + resolved "https://registry.yarnpkg.com/@types/node-fetch/-/node-fetch-2.5.10.tgz#9b4d4a0425562f9fcea70b12cb3fcdd946ca8132" + integrity sha512-IpkX0AasN44hgEad0gEF/V6EgR5n69VEqPEgnmoM8GsIGro3PowbWs4tR6IhxUTyPLpOn+fiGG6nrQhcmoCuIQ== dependencies: "@types/node" "*" form-data "^3.0.0" -"@types/node@*", "@types/node@>= 8", "@types/node@^14.14.10": - version "14.14.28" - resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.28.tgz#cade4b64f8438f588951a6b35843ce536853f25b" - integrity sha512-lg55ArB+ZiHHbBBttLpzD07akz0QPrZgUODNakeC09i62dnrywr9mFErHuaPlB6I7z+sEbK+IYmplahvplCj2g== +"@types/node@*", "@types/node@>= 8", "@types/node@>=10.0.0": + version "14.14.41" + resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.41.tgz#d0b939d94c1d7bd53d04824af45f1139b8c45615" + integrity sha512-dueRKfaJL4RTtSa7bWeTK1M+VH+Gns73oCgzvYfHZywRCoPSd8EkXBL0mZ9unPTveBn+D9phZBaxuzpwjWkW0g== "@types/node@^10.1.0": - version "10.17.52" - resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.52.tgz#dc960d4e256331b3c697b7a573ee98b882febee5" - integrity sha512-bKnO8Rcj03i6JTzweabq96k29uVNcXGB0bkwjVQTFagDgxxNged18281AZ0nTMHl+aFpPPWyPrk4Z3+NtW/z5w== + version "10.17.58" + resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.58.tgz#10682f6016fd866725c36d22ce6bbbd029bf4545" + integrity sha512-Dn5RBxLohjdHFj17dVVw3rtrZAeXeWg+LQfvxDIW/fdPkSiuQk7h3frKMYtsQhtIW42wkErDcy9UMVxhGW4O7w== "@types/node@~12.12.6": version "12.12.70" @@ -2002,9 +1763,9 @@ integrity sha512-tYYcz/+5v/EGYT83C0pIXrJGOiVBLksQvxgJboG4nGqx/gZTvq0Ro4SkAjECqMk7L4Ww58VWB4j48qeYh4/YJg== "@types/postcss-preset-env@^6.7.1": - version "6.7.1" - resolved "https://registry.yarnpkg.com/@types/postcss-preset-env/-/postcss-preset-env-6.7.1.tgz#fdc39e818893a5a035265daba76e498c530d2e3d" - integrity sha512-Ya5/cZSbmQ6juE7HQk0UsDNJptJzEFyCq+b0z6Rl1GKfZgIPCxecaf9uS5i2yYmSbojUKIc48XoSBgKVv/ka1g== + version "6.7.2" + resolved "https://registry.yarnpkg.com/@types/postcss-preset-env/-/postcss-preset-env-6.7.2.tgz#8e7b63a8c6d728b816dd9efe2cea09323cd24edb" + integrity sha512-Q+vT1ljfQn0Zr3V6OoqVYmU+diYbKnGqiZ1h/ysr1cFTwWB2LdJrsRMXhi+ppRzeswHD+I2AxFHMrS8koTUjVA== dependencies: "@types/autoprefixer" "^9.0.0" postcss "^7.0.32" @@ -2021,15 +1782,10 @@ resolved "https://registry.yarnpkg.com/@types/q/-/q-0.0.32.tgz#bd284e57c84f1325da702babfc82a5328190c0c5" integrity sha1-vShOV8hPEyXacCur/IKlMoGQwMU= -"@types/q@^1.5.1": - version "1.5.4" - resolved "https://registry.yarnpkg.com/@types/q/-/q-1.5.4.tgz#15925414e0ad2cd765bfef58842f7e26a7accb24" - integrity sha512-1HcDas8SEj4z1Wc696tH56G8OlRaH/sqZOynNNB+HF0WOeXPaxTtbYzJY2oEfiUxjSKjhCKr+MvR7dCHcEelug== - "@types/qs@*": - version "6.9.5" - resolved "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.5.tgz#434711bdd49eb5ee69d90c1d67c354a9a8ecb18b" - integrity sha512-/JHkVHtx/REVG0VVToGRGH2+23hsYLHdyG+GrvoUGlGAd0ErauXDyvHtRI/7H7mzLm+tBCKA7pfcpkQ1lf58iQ== + version "6.9.6" + resolved "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.6.tgz#df9c3c8b31a247ec315e6996566be3171df4b3b1" + integrity sha512-0/HnwIfW4ki2D8L8c9GVcG5I72s9jP5GSLVF0VIXDW00kmIpA6O33G7a8n59Tmh7Nz0WUC3rSb7PTY/sdW2JzA== "@types/range-parser@*": version "1.2.3" @@ -2044,11 +1800,9 @@ "@types/node" "*" "@types/resolve@^1.17.1": - version "1.19.0" - resolved "https://registry.yarnpkg.com/@types/resolve/-/resolve-1.19.0.tgz#75c729aedd9a0de60650facb16eb33239d3c407a" - integrity sha512-NikKq+D2KJzmaWbcz4JLVT34ybtCC4c3jV6XRGWOQvOkXka9QblEmC+sPf3vRa3lmcURkVbCk2V2BDyCO7jbXg== - dependencies: - "@types/node" "*" + version "1.20.0" + resolved "https://registry.yarnpkg.com/@types/resolve/-/resolve-1.20.0.tgz#11325a379b6f63b858fed49552fd4178495ee087" + integrity sha512-SFT3jdUNlLkjxUWwH/0QjLiEsV38hjdDX8oMcX9jZAD8KWNzRLdg6INZE7UMz9O86b2BOHzA3dR8nF+DbonX2Q== "@types/responselike@*": version "1.0.0" @@ -2088,6 +1842,11 @@ resolved "https://registry.yarnpkg.com/@types/source-list-map/-/source-list-map-0.1.2.tgz#0078836063ffaf17412349bba364087e0ac02ec9" integrity sha512-K5K+yml8LTo9bWJI/rECfIPrGgxdpeNbj+d53lwN4QjW1MCwlkhUms+gtdzigTeUyBr09+u8BwOIY3MXvHdcsA== +"@types/tapable@^1": + version "1.0.7" + resolved "https://registry.yarnpkg.com/@types/tapable/-/tapable-1.0.7.tgz#545158342f949e8fd3bfd813224971ecddc3fac4" + integrity sha512-0VBprVqfgFD7Ehb2vd8Lh9TG3jP98gvr8rgehQqzztZNI7o8zS8Ad4jyZneKELphpuE212D8J70LnSNQSyO6bQ== + "@types/text-table@^0.2.1": version "0.2.1" resolved "https://registry.yarnpkg.com/@types/text-table/-/text-table-0.2.1.tgz#39c4d4a058a82f677392dfd09976e83d9b4c9264" @@ -2100,21 +1859,37 @@ dependencies: "@types/node" "*" +"@types/uglify-js@*": + version "3.13.0" + resolved "https://registry.yarnpkg.com/@types/uglify-js/-/uglify-js-3.13.0.tgz#1cad8df1fb0b143c5aba08de5712ea9d1ff71124" + integrity sha512-EGkrJD5Uy+Pg0NUR8uA4bJ5WMfljyad0G+784vLCNUkD+QwOJXUbBYExXfVGf7YtyzdQp3L/XMYcliB987kL5Q== + dependencies: + source-map "^0.6.1" + "@types/uuid@^8.0.0": version "8.3.0" resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-8.3.0.tgz#215c231dff736d5ba92410e6d602050cce7e273f" integrity sha512-eQ9qFW/fhfGJF8WKHGEHZEyVWfZxrT+6CLIJGBcZPfxUh/+BnEj+UCGYMlr9qZuX/2AltsvwrGqp0LhEW8D0zQ== "@types/webpack-dev-server@^3.1.7": - version "3.11.1" - resolved "https://registry.yarnpkg.com/@types/webpack-dev-server/-/webpack-dev-server-3.11.1.tgz#f8f4dac1da226d530bd15a1d5dc34b23ba766ccb" - integrity sha512-rIb+LtUkKnh7+oIJm3WiMJONd71Q0lZuqGLcSqhZ5qjN9gV/CNmZe7Bai+brnBPZ/KVYOsr+4bFLiNZwjBicLw== + version "3.11.3" + resolved "https://registry.yarnpkg.com/@types/webpack-dev-server/-/webpack-dev-server-3.11.3.tgz#237e26d87651cf95490dcd356f568c8c84016177" + integrity sha512-p9B/QClflreKDeamKhBwuo5zqtI++wwb9QNG/CdIZUFtHvtaq0dWVgbtV7iMl4Sr4vWzEFj0rn16pgUFANjLPA== dependencies: "@types/connect-history-api-fallback" "*" "@types/express" "*" - "@types/http-proxy-middleware" "*" "@types/serve-static" "*" - "@types/webpack" "*" + "@types/webpack" "^4" + http-proxy-middleware "^1.0.0" + +"@types/webpack-sources@*": + version "2.1.0" + resolved "https://registry.yarnpkg.com/@types/webpack-sources/-/webpack-sources-2.1.0.tgz#8882b0bd62d1e0ce62f183d0d01b72e6e82e8c10" + integrity sha512-LXn/oYIpBeucgP1EIJbKQ2/4ZmpvRl+dlrFdX7+94SKRUV3Evy3FsfMZY318vGhkWUS5MPhtOM3w1/hCOAOXcg== + dependencies: + "@types/node" "*" + "@types/source-list-map" "*" + source-map "^0.7.3" "@types/webpack-sources@^0.1.5": version "0.1.8" @@ -2125,14 +1900,17 @@ "@types/source-list-map" "*" source-map "^0.6.1" -"@types/webpack@*": - version "5.28.0" - resolved "https://registry.yarnpkg.com/@types/webpack/-/webpack-5.28.0.tgz#78dde06212f038d77e54116cfe69e88ae9ed2c03" - integrity sha512-8cP0CzcxUiFuA9xGJkfeVpqmWTk9nx6CWwamRGCj95ph1SmlRRk9KlCZ6avhCbZd4L68LvYT6l1kpdEnQXrF8w== +"@types/webpack@^4": + version "4.41.27" + resolved "https://registry.yarnpkg.com/@types/webpack/-/webpack-4.41.27.tgz#f47da488c8037e7f1b2dbf2714fbbacb61ec0ffc" + integrity sha512-wK/oi5gcHi72VMTbOaQ70VcDxSQ1uX8S2tukBK9ARuGXrYM/+u4ou73roc7trXDNmCxCoerE8zruQqX/wuHszA== dependencies: + "@types/anymatch" "*" "@types/node" "*" - tapable "^2.2.0" - webpack "^5" + "@types/tapable" "^1" + "@types/uglify-js" "*" + "@types/webpack-sources" "*" + source-map "^0.6.0" "@types/yauzl@^2.9.1": version "2.9.1" @@ -2375,9 +2153,9 @@ acorn@^7.1.0, acorn@^7.1.1: integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== acorn@^8.0.4: - version "8.0.5" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.0.5.tgz#a3bfb872a74a6a7f661bc81b9849d9cac12601b7" - integrity sha512-v+DieK/HJkJOpFBETDJioequtc3PfxsWMaxIdIwujtF7FEV/MAyDQLlm6/zPvr7Mix07mLh6ccVwIsloceodlg== + version "8.1.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.1.1.tgz#fb0026885b9ac9f48bac1e185e4af472971149ff" + integrity sha512-xYiIVjNuqtKXMxlRMDc6mZUhXehod4a3gbZ1qRlM7icK4EbxUFNLhWoPblCvFtB2Y9CIqHP3CF/rdxLItaQv8g== add-stream@^1.0.0: version "1.0.0" @@ -2465,17 +2243,7 @@ ajv@^6.1.0, ajv@^6.12.3, ajv@^6.12.4, ajv@^6.12.5: json-schema-traverse "^0.4.1" uri-js "^4.2.2" -ajv@^7.0.3: - version "7.2.4" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-7.2.4.tgz#8e239d4d56cf884bccca8cca362f508446dc160f" - integrity sha512-nBeQgg/ZZA3u3SYxyaDvpvDtgZ/EZPF547ARgZBrG9Bhu1vKDwAIjtIf+sDtJUKa2zOcEbmRLBRSyMraS/Oy1A== - dependencies: - fast-deep-equal "^3.1.1" - json-schema-traverse "^1.0.0" - require-from-string "^2.0.2" - uri-js "^4.2.2" - -alphanum-sort@^1.0.0, alphanum-sort@^1.0.2: +alphanum-sort@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/alphanum-sort/-/alphanum-sort-1.0.2.tgz#97a1119649b211ad33691d9f9f486a8ec9fbe0a3" integrity sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM= @@ -2491,11 +2259,11 @@ ansi-colors@^3.0.0: integrity sha512-hHUXGagefjN2iRrID63xckIvotOXOojhQKWIPUZ4mNUZ9nLZW+7FMNoE1lOkEhNWYsx/7ysGIuJYCiMAA9FnrA== ansi-escapes@^4.2.1: - version "4.3.1" - resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.1.tgz#a5c47cc43181f1f38ffd7076837700d395522a61" - integrity sha512-JWF7ocqNrp8u9oqpgV+wH5ftbt+cfvv+PTjOvKLT3AdYly/LmORARfEVT1iyjwN+4MqE5UmVKoAdIBqeoCHgLA== + version "4.3.2" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" + integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== dependencies: - type-fest "^0.11.0" + type-fest "^0.21.3" ansi-html@0.0.7: version "0.0.7" @@ -2550,9 +2318,9 @@ anymatch@^2.0.0: normalize-path "^2.1.1" anymatch@~3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.1.tgz#c55ecf02185e2469259399310c173ce31233b142" - integrity sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg== + version "3.1.2" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.2.tgz#c0557c096af32f106198f4f4e2a383537e378716" + integrity sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg== dependencies: normalize-path "^3.0.0" picomatch "^2.0.4" @@ -2766,18 +2534,6 @@ atomic-sleep@^1.0.0: resolved "https://registry.yarnpkg.com/atomic-sleep/-/atomic-sleep-1.0.0.tgz#eb85b77a601fc932cfe432c5acd364a9e2c9075b" integrity sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ== -autoprefixer@^10.2.4: - version "10.2.4" - resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-10.2.4.tgz#c0e7cf24fcc6a1ae5d6250c623f0cb8beef2f7e1" - integrity sha512-DCCdUQiMD+P/as8m3XkeTUkUKuuRqLGcwD0nll7wevhqoJfMRpJlkFd1+MQh1pvupjiQuip42lc/VFvfUTMSKw== - dependencies: - browserslist "^4.16.1" - caniuse-lite "^1.0.30001181" - colorette "^1.2.1" - fraction.js "^4.0.13" - normalize-range "^0.1.2" - postcss-value-parser "^4.1.0" - autoprefixer@^9.6.1: version "9.8.6" resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-9.8.6.tgz#3b73594ca1bf9266320c5acf1588d74dea74210f" @@ -2826,33 +2582,33 @@ babel-plugin-dynamic-import-node@^2.3.3: object.assign "^4.1.0" babel-plugin-polyfill-corejs2@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.1.5.tgz#8fc4779965311393594a1b9ad3adefab3860c8fe" - integrity sha512-5IzdFIjYWqlOFVr/hMYUpc+5fbfuvJTAISwIY58jhH++ZtawtNlcJnxAixlk8ahVwHCz1ipW/kpXYliEBp66wg== + version "0.1.10" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.1.10.tgz#a2c5c245f56c0cac3dbddbf0726a46b24f0f81d1" + integrity sha512-DO95wD4g0A8KRaHKi0D51NdGXzvpqVLnLu5BTvDlpqUEpTmeEtypgC1xqesORaWmiUOQI14UHKlzNd9iZ2G3ZA== dependencies: "@babel/compat-data" "^7.13.0" - "@babel/helper-define-polyfill-provider" "^0.1.2" + "@babel/helper-define-polyfill-provider" "^0.1.5" semver "^6.1.1" babel-plugin-polyfill-corejs3@^0.1.3: - version "0.1.4" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.1.4.tgz#2ae290200e953bade30907b7a3bebcb696e6c59d" - integrity sha512-ysSzFn/qM8bvcDAn4mC7pKk85Y5dVaoa9h4u0mHxOEpDzabsseONhUpR7kHxpUinfj1bjU7mUZqD23rMZBoeSg== + version "0.1.7" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.1.7.tgz#80449d9d6f2274912e05d9e182b54816904befd0" + integrity sha512-u+gbS9bbPhZWEeyy1oR/YaaSpod/KDT07arZHb80aTpl8H5ZBq+uN1nN9/xtX7jQyfLdPfoqI4Rue/MQSWJquw== dependencies: - "@babel/helper-define-polyfill-provider" "^0.1.2" + "@babel/helper-define-polyfill-provider" "^0.1.5" core-js-compat "^3.8.1" babel-plugin-polyfill-regenerator@^0.1.2: - version "0.1.3" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.1.3.tgz#350f857225fc640ae1ec78d1536afcbb457db841" - integrity sha512-hRjTJQiOYt/wBKEc+8V8p9OJ9799blAJcuKzn1JXh3pApHoWl1Emxh2BHc6MC7Qt6bbr3uDpNxaYQnATLIudEg== + version "0.1.6" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.1.6.tgz#0fe06a026fe0faa628ccc8ba3302da0a6ce02f3f" + integrity sha512-OUrYG9iKPKz8NxswXbRAdSwF0GhRdIEMTloQATJi4bDuFqrXaXcCUT/VGNrr8pBcjMh1RxZ7Xt9cytVJTJfvMg== dependencies: - "@babel/helper-define-polyfill-provider" "^0.1.2" + "@babel/helper-define-polyfill-provider" "^0.1.5" balanced-match@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" - integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= + version "1.0.2" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" + integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== base64-arraybuffer@0.1.4: version "0.1.4" @@ -2900,9 +2656,9 @@ bcryptjs@2.4.3: integrity sha1-mrVie5PmBiH/fNrF2pczAn3x0Ms= before-after-hook@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-2.1.1.tgz#99ae36992b5cfab4a83f6bee74ab27835f28f405" - integrity sha512-5ekuQOvO04MDj7kYZJaMab2S8SPjGJbotVNyv7QYFCOAwrGZs/YnoDNlh1U+m5hl7H2D/+n0taaAV/tfyd3KMA== + version "2.2.1" + resolved "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-2.2.1.tgz#73540563558687586b52ed217dad6a802ab1549c" + integrity sha512-/6FKxSTWoJdbsLDF8tdIjaRiFXiE6UHsEHE3OPI/cwPURCVi1ukP0gmLn7XWEiFk5TcwQjjY5PWsU+j+tgXgmw== big.js@^5.2.2: version "5.2.2" @@ -2970,7 +2726,7 @@ bonjour@^3.5.0: multicast-dns "^6.0.1" multicast-dns-service-types "^1.1.0" -boolbase@^1.0.0, boolbase@~1.0.0: +boolbase@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e" integrity sha1-aN/1++YMUes3cl6p4+0xDcwed24= @@ -3038,16 +2794,16 @@ browser-process-hrtime@^1.0.0: resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz#3c9b4b7d782c8121e56f10106d84c0d0ffc94626" integrity sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow== -browserslist@*, browserslist@^4.0.0, browserslist@^4.12.0, browserslist@^4.14.5, browserslist@^4.16.0, browserslist@^4.16.1, browserslist@^4.16.3, browserslist@^4.6.4, browserslist@^4.9.1: - version "4.16.3" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.16.3.tgz#340aa46940d7db878748567c5dea24a48ddf3717" - integrity sha512-vIyhWmIkULaq04Gt93txdh+j02yX/JzlyhLYbV3YQCn/zvES3JnY7TifHHvvr1w5hTDluNKMkV05cs4vy8Q7sw== +browserslist@*, browserslist@^4.0.0, browserslist@^4.12.0, browserslist@^4.14.5, browserslist@^4.16.0, browserslist@^4.16.1, browserslist@^4.16.4, browserslist@^4.6.4, browserslist@^4.9.1: + version "4.16.4" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.16.4.tgz#7ebf913487f40caf4637b892b268069951c35d58" + integrity sha512-d7rCxYV8I9kj41RH8UKYnvDYCRENUlHRgyXy/Rhr/1BaeLGfiCptEdFE8MIrvGfWbBFNjVYx76SQWvNX1j+/cQ== dependencies: - caniuse-lite "^1.0.30001181" - colorette "^1.2.1" - electron-to-chromium "^1.3.649" + caniuse-lite "^1.0.30001208" + colorette "^1.2.2" + electron-to-chromium "^1.3.712" escalade "^3.1.1" - node-releases "^1.1.70" + node-releases "^1.1.71" browserstack@^1.5.1: version "1.6.1" @@ -3138,7 +2894,7 @@ c8@~7.5.0: yargs "^16.0.0" yargs-parser "^20.0.0" -cacache@15.0.6: +cacache@15.0.6, cacache@^15.0.5: version "15.0.6" resolved "https://registry.yarnpkg.com/cacache/-/cacache-15.0.6.tgz#65a8c580fda15b59150fb76bf3f3a8e45d583099" integrity sha512-g1WYDMct/jzW+JdWEyjaX2zoBkZ6ZT9VpOyp2I/VMtDsNLffNat3kqPFfi1eDRSK9/SuKGyORDHcQMcPF8sQ/w== @@ -3161,29 +2917,6 @@ cacache@15.0.6: tar "^6.0.2" unique-filename "^1.1.1" -cacache@^15.0.5: - version "15.0.5" - resolved "https://registry.yarnpkg.com/cacache/-/cacache-15.0.5.tgz#69162833da29170d6732334643c60e005f5f17d0" - integrity sha512-lloiL22n7sOjEEXdL8NAjTgv9a1u43xICE9/203qonkZUCj5X1UEWIdf2/Y0d6QcCtMzbKQyhrcDbdvlZTs/+A== - dependencies: - "@npmcli/move-file" "^1.0.1" - chownr "^2.0.0" - fs-minipass "^2.0.0" - glob "^7.1.4" - infer-owner "^1.0.4" - lru-cache "^6.0.0" - minipass "^3.1.1" - minipass-collect "^1.0.2" - minipass-flush "^1.0.5" - minipass-pipeline "^1.2.2" - mkdirp "^1.0.3" - p-map "^4.0.0" - promise-inflight "^1.0.1" - rimraf "^3.0.2" - ssri "^8.0.0" - tar "^6.0.2" - unique-filename "^1.1.1" - cache-base@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" @@ -3228,25 +2961,6 @@ call-bind@^1.0.0, call-bind@^1.0.2: function-bind "^1.1.1" get-intrinsic "^1.0.2" -caller-callsite@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/caller-callsite/-/caller-callsite-2.0.0.tgz#847e0fce0a223750a9a027c54b33731ad3154134" - integrity sha1-hH4PzgoiN1CpoCfFSzNzGtMVQTQ= - dependencies: - callsites "^2.0.0" - -caller-path@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-2.0.0.tgz#468f83044e369ab2010fac5f06ceee15bb2cb1f4" - integrity sha1-Ro+DBE42mrIBD6xfBs7uFbsssfQ= - dependencies: - caller-callsite "^2.0.0" - -callsites@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50" - integrity sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA= - callsites@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" @@ -3294,10 +3008,10 @@ caniuse-api@^3.0.0: lodash.memoize "^4.1.2" lodash.uniq "^4.5.0" -caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000981, caniuse-lite@^1.0.30001032, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001181: - version "1.0.30001187" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001187.tgz#5706942631f83baa5a0218b7dfa6ced29f845438" - integrity sha512-w7/EP1JRZ9552CyrThUnay2RkZ1DXxKe/Q2swTC4+LElLh9RRYrL1Z+27LlakB8kzY0fSmHw9mc7XYDUKAKWMA== +caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000981, caniuse-lite@^1.0.30001032, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001208: + version "1.0.30001214" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001214.tgz#70f153c78223515c6d37a9fde6cd69250da9d872" + integrity sha512-O2/SCpuaU3eASWVaesQirZv1MSjUNOvmugaD8zNSJqw6Vv5SGwoOpA9LJs3pNPfM745nxqPvfZY3MQKY4AKHYg== canonical-path@1.0.0: version "1.0.0" @@ -3329,7 +3043,7 @@ chalk@^2.0.0, chalk@^2.3.0, chalk@^2.3.1, chalk@^2.4.1, chalk@^2.4.2: escape-string-regexp "^1.0.5" supports-color "^5.3.0" -chalk@^4.0.0, chalk@^4.1.0: +chalk@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a" integrity sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A== @@ -3342,7 +3056,7 @@ chardet@^0.7.0: resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== -"chokidar@>=2.0.0 <4.0.0", "chokidar@>=3.0.0 <4.0.0", chokidar@^3.0.0, chokidar@^3.4.2, chokidar@^3.5.1: +"chokidar@>=3.0.0 <4.0.0", chokidar@^3.0.0, chokidar@^3.4.2, chokidar@^3.5.1: version "3.5.1" resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.1.tgz#ee9ce7bbebd2b79f49f304799d5468e31e14e68a" integrity sha512-9+s+Od+W0VJJzawDma/gvBNQqkTiqYTWLuZoyAsivsI4AaWTCzHG06/TMjsf1cYe9Cb97UCEhjz7HvnPk2p/tw== @@ -3387,11 +3101,9 @@ chownr@^2.0.0: integrity sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ== chrome-trace-event@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/chrome-trace-event/-/chrome-trace-event-1.0.2.tgz#234090ee97c7d4ad1a2c4beae27505deffc608a4" - integrity sha512-9e/zx1jw7B4CO+c/RXoCsfg/x1AfUBioy4owYH0bJprEYAx5hRFLRhWBqHAG57D0ZM4H7vxbP7bPe0VwhQRYDQ== - dependencies: - tslib "^1.9.0" + version "1.0.3" + resolved "https://registry.yarnpkg.com/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz#1015eced4741e15d06664a957dbbf50d041e26ac" + integrity sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg== circular-dependency-plugin@5.2.2: version "5.2.2" @@ -3438,9 +3150,9 @@ cli-progress@^3.7.0: string-width "^4.2.0" cli-spinners@^2.5.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.5.0.tgz#12763e47251bf951cb75c201dfa58ff1bcb2d047" - integrity sha512-PC+AmIuK04E6aeSs/pUccSujsTzBhu4HzC2dL+CfJB/Jcc2qTRbEwZQDfIUpt2Xl8BodYBEq8w4fc0kU2I9DjQ== + version "2.6.0" + resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.6.0.tgz#36c7dc98fb6a9a76bd6238ec3f77e2425627e939" + integrity sha512-t+4/y50K/+4xcCRosKkA7W4gTr1MySvLV0q+PxmG7FJ5g+66ChKurYjxBCjHggHH3HA5Hh9cy+lcUGWDqVH+4Q== cli-width@^3.0.0: version "3.0.0" @@ -3502,15 +3214,6 @@ clone@^1.0.2: resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" integrity sha1-2jCcwmPfFZlMaIypAheco8fNfH4= -coa@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/coa/-/coa-2.0.2.tgz#43f6c21151b4ef2bf57187db0d73de229e3e7ec3" - integrity sha512-q5/jG+YQnSy4nRTV4F7lPepBJZ8qBNJJDBuJdoejDyLXgmL7IEo+Le2JDZudFTFt7mrCqIRaSjws4ygRCTCAXA== - dependencies: - "@types/q" "^1.5.1" - chalk "^2.4.1" - q "^1.1.2" - code-point-at@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" @@ -3574,14 +3277,14 @@ color-name@^1.0.0, color-name@~1.1.4: integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== color-string@^1.5.4: - version "1.5.4" - resolved "https://registry.yarnpkg.com/color-string/-/color-string-1.5.4.tgz#dd51cd25cfee953d138fe4002372cc3d0e504cb6" - integrity sha512-57yF5yt8Xa3czSEW1jfQDE79Idk0+AkN/4KWad6tbdxUmAs3MvjxlWSWD4deYytcRfoZ9nhKyFl1kj5tBvidbw== + version "1.5.5" + resolved "https://registry.yarnpkg.com/color-string/-/color-string-1.5.5.tgz#65474a8f0e7439625f3d27a6a19d89fc45223014" + integrity sha512-jgIoum0OfQfq9Whcfc2z/VhCNcmQjWbey6qBX0vqt7YICflUmBCh9E9CiQD5GSJ+Uehixm3NUwHVhqUAWRivZg== dependencies: color-name "^1.0.0" simple-swizzle "^0.2.2" -color@^3.0.0, color@^3.1.1: +color@^3.1.1: version "3.1.3" resolved "https://registry.yarnpkg.com/color/-/color-3.1.3.tgz#ca67fb4e7b97d611dcde39eceed422067d91596e" integrity sha512-xgXAcTHa2HeFCGLE9Xs/R82hujGtu9Jd9x4NW3T34+OMs7VoPsjwzRczKHvTAHeJwWFwX5j15+MgAppE8ztObQ== @@ -3589,12 +3292,7 @@ color@^3.0.0, color@^3.1.1: color-convert "^1.9.1" color-string "^1.5.4" -colorette@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.2.1.tgz#4d0b921325c14faf92633086a536db6e89564b1b" - integrity sha512-puCDz0CzydiSYOrnXpz/PKd69zRrribezjtE9yd4zvytoRc8+RY/KJPvtPFKZS3E3wP6neGyMe0vOTlHO5L3Pw== - -colorette@^1.2.2: +colorette@^1.2.1, colorette@^1.2.2: version "1.2.2" resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.2.2.tgz#cbcc79d5e99caea2dbf10eb3a26fd8b3e6acfa94" integrity sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w== @@ -3616,12 +3314,7 @@ commander@^2.11.0, commander@^2.12.1, commander@^2.20.0: resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== -commander@^7.0.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-7.1.0.tgz#f2eaecf131f10e36e07d894698226e36ae0eb5ff" - integrity sha512-pRxBna3MJe6HKnBGsDyMv8ETbptw3axEdYHoqNh7gu5oDcew8fs0xnivZGm06Ogk8zGAJ9VX+OPEr2GXEQK4dg== - -commander@^7.1.0: +commander@^7.0.0, commander@^7.1.0: version "7.2.0" resolved "https://registry.yarnpkg.com/commander/-/commander-7.2.0.tgz#a36cb57d0b501ce108e4d20559a150a391d97ab7" integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw== @@ -3857,20 +3550,7 @@ conventional-commits-filter@^2.0.7: lodash.ismatch "^4.4.0" modify-values "^1.0.0" -conventional-commits-parser@^3.0.0, conventional-commits-parser@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/conventional-commits-parser/-/conventional-commits-parser-3.2.0.tgz#9e261b139ca4b7b29bcebbc54460da36894004ca" - integrity sha512-XmJiXPxsF0JhAKyfA2Nn+rZwYKJ60nanlbSWwwkGwLQFbugsc0gv1rzc7VbbUWAzJfR1qR87/pNgv9NgmxtBMQ== - dependencies: - JSONStream "^1.0.4" - is-text-path "^1.0.1" - lodash "^4.17.15" - meow "^8.0.0" - split2 "^2.0.0" - through2 "^4.0.0" - trim-off-newlines "^1.0.0" - -conventional-commits-parser@^3.2.1: +conventional-commits-parser@^3.0.0, conventional-commits-parser@^3.2.0, conventional-commits-parser@^3.2.1: version "3.2.1" resolved "https://registry.yarnpkg.com/conventional-commits-parser/-/conventional-commits-parser-3.2.1.tgz#ba44f0b3b6588da2ee9fd8da508ebff50d116ce2" integrity sha512-OG9kQtmMZBJD/32NEw5IhN5+HnBqVjy03eC+I71I0oQRFA5rOgA4OtPOYG7mz1GkCfCNxn3gKIX8EiHJYuf1cA== @@ -3944,11 +3624,11 @@ copy-webpack-plugin@8.1.1: serialize-javascript "^5.0.1" core-js-compat@^3.8.1, core-js-compat@^3.9.0: - version "3.9.0" - resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.9.0.tgz#29da39385f16b71e1915565aa0385c4e0963ad56" - integrity sha512-YK6fwFjCOKWwGnjFUR3c544YsnA/7DoLL0ysncuOJ4pwbriAtOpvM2bygdlcXbvQCQZ7bBU9CL4t7tGl7ETRpQ== + version "3.10.2" + resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.10.2.tgz#0a675b4e1cde599616322a72c8886bcf696f3ec3" + integrity sha512-IGHnpuaM1N++gLSPI1F1wu3WXICPxSyj/Q++clcwsIOnUVp5uKUIPl/+6h0TQ112KU3fMiSxqJuM+OrCyKj5+A== dependencies: - browserslist "^4.16.3" + browserslist "^4.16.4" semver "7.0.0" core-js@3.10.2: @@ -3969,16 +3649,6 @@ cors@2.8.5, cors@~2.8.5: object-assign "^4" vary "^1" -cosmiconfig@^5.0.0: - version "5.2.1" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-5.2.1.tgz#040f726809c591e77a17c0a3626ca45b4f168b1a" - integrity sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA== - dependencies: - import-fresh "^2.0.0" - is-directory "^0.3.1" - js-yaml "^3.13.1" - parse-json "^4.0.0" - cosmiconfig@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.0.0.tgz#ef9b44d773959cae63ddecd122de23853b60f8d3" @@ -4033,7 +3703,7 @@ css-blank-pseudo@^0.1.4: dependencies: postcss "^7.0.5" -css-color-names@0.0.4, css-color-names@^0.0.4: +css-color-names@^0.0.4: version "0.0.4" resolved "https://registry.yarnpkg.com/css-color-names/-/css-color-names-0.0.4.tgz#808adc2e79cf84738069b646cb20ec27beb629e0" integrity sha1-gIrcLnnPhHOAabZGyyDsJ762KeA= @@ -4050,14 +3720,6 @@ css-declaration-sorter@6.0.0: dependencies: timsort "^0.3.0" -css-declaration-sorter@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/css-declaration-sorter/-/css-declaration-sorter-4.0.1.tgz#c198940f63a76d7e36c1e71018b001721054cb22" - integrity sha512-BcxQSKTSEEQUftYpBVnsH4SF05NTuBokb19/sBt6asXGKZ/6VP7PLG1CBCkFDYOnhXhPh0jMhO6xZ71oYHXHBA== - dependencies: - postcss "^7.0.1" - timsort "^0.3.0" - css-has-pseudo@^0.10.0: version "0.10.0" resolved "https://registry.yarnpkg.com/css-has-pseudo/-/css-has-pseudo-0.10.0.tgz#3c642ab34ca242c59c41a125df9105841f6966ee" @@ -4097,21 +3759,6 @@ css-prefers-color-scheme@^3.1.1: dependencies: postcss "^7.0.5" -css-select-base-adapter@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/css-select-base-adapter/-/css-select-base-adapter-0.1.1.tgz#3b2ff4972cc362ab88561507a95408a1432135d7" - integrity sha512-jQVeeRG70QI08vSTwf1jHxp74JoZsr2XSgETae8/xC8ovSnL2WF87GTLO86Sbwdt2lK4Umg4HnnwMO4YF3Ce7w== - -css-select@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/css-select/-/css-select-2.1.0.tgz#6a34653356635934a81baca68d0255432105dbef" - integrity sha512-Dqk7LQKpwLoH3VovzZnkzegqNSuAziQyNZUcrdDM401iY+R5NkGBXGmtO05/yaXQziALuPogeG0b7UAgjnTJTQ== - dependencies: - boolbase "^1.0.0" - css-what "^3.2.1" - domutils "^1.7.0" - nth-check "^1.0.2" - css-select@^3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/css-select/-/css-select-3.1.2.tgz#d52cbdc6fee379fba97fb0d3925abbd18af2d9d8" @@ -4131,27 +3778,14 @@ css-selector-tokenizer@^0.7.1: cssesc "^3.0.0" fastparse "^1.1.2" -css-tree@1.0.0-alpha.37: - version "1.0.0-alpha.37" - resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-1.0.0-alpha.37.tgz#98bebd62c4c1d9f960ec340cf9f7522e30709a22" - integrity sha512-DMxWJg0rnz7UgxKT0Q1HU/L9BeJI0M6ksor0OgqOnF+aRCDWg/N2641HmVyU9KVIu0OVVWOb2IpC9A+BJRnejg== - dependencies: - mdn-data "2.0.4" - source-map "^0.6.1" - css-tree@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-1.1.2.tgz#9ae393b5dafd7dae8a622475caec78d3d8fbd7b5" - integrity sha512-wCoWush5Aeo48GLhfHPbmvZs59Z+M7k5+B1xDnXbdWNcEF423DoFdqSWE0PM5aNk5nI5cp1q7ms36zGApY/sKQ== + version "1.1.3" + resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-1.1.3.tgz#eb4870fb6fd7707327ec95c2ff2ab09b5e8db91d" + integrity sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q== dependencies: mdn-data "2.0.14" source-map "^0.6.1" -css-what@^3.2.1: - version "3.4.2" - resolved "https://registry.yarnpkg.com/css-what/-/css-what-3.4.2.tgz#ea7026fcb01777edbde52124e21f327e7ae950e4" - integrity sha512-ACUm3L0/jiZTqfzRM3Hi9Q8eZqd6IK37mMWPLz9PJxkLWllYeRf+EHUSHYEtFop2Eqytaq1FizFVh7XfBnXCDQ== - css-what@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/css-what/-/css-what-4.0.0.tgz#35e73761cab2eeb3d3661126b23d7aa0e8432233" @@ -4198,42 +3832,6 @@ cssesc@^3.0.0: resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee" integrity sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg== -cssnano-preset-default@^4.0.7: - version "4.0.7" - resolved "https://registry.yarnpkg.com/cssnano-preset-default/-/cssnano-preset-default-4.0.7.tgz#51ec662ccfca0f88b396dcd9679cdb931be17f76" - integrity sha512-x0YHHx2h6p0fCl1zY9L9roD7rnlltugGu7zXSKQx6k2rYw0Hi3IqxcoAGF7u9Q5w1nt7vK0ulxV8Lo+EvllGsA== - dependencies: - css-declaration-sorter "^4.0.1" - cssnano-util-raw-cache "^4.0.1" - postcss "^7.0.0" - postcss-calc "^7.0.1" - postcss-colormin "^4.0.3" - postcss-convert-values "^4.0.1" - postcss-discard-comments "^4.0.2" - postcss-discard-duplicates "^4.0.2" - postcss-discard-empty "^4.0.1" - postcss-discard-overridden "^4.0.1" - postcss-merge-longhand "^4.0.11" - postcss-merge-rules "^4.0.3" - postcss-minify-font-values "^4.0.2" - postcss-minify-gradients "^4.0.2" - postcss-minify-params "^4.0.2" - postcss-minify-selectors "^4.0.2" - postcss-normalize-charset "^4.0.1" - postcss-normalize-display-values "^4.0.2" - postcss-normalize-positions "^4.0.2" - postcss-normalize-repeat-style "^4.0.2" - postcss-normalize-string "^4.0.2" - postcss-normalize-timing-functions "^4.0.2" - postcss-normalize-unicode "^4.0.1" - postcss-normalize-url "^4.0.1" - postcss-normalize-whitespace "^4.0.2" - postcss-ordered-values "^4.1.2" - postcss-reduce-initial "^4.0.3" - postcss-reduce-transforms "^4.0.2" - postcss-svgo "^4.0.2" - postcss-unique-selectors "^4.0.1" - cssnano-preset-default@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/cssnano-preset-default/-/cssnano-preset-default-5.0.0.tgz#94c03ecc1cb47ecdc23c0aea3ca05170ebbb7e33" @@ -4269,34 +3867,12 @@ cssnano-preset-default@^5.0.0: postcss-svgo "^5.0.0" postcss-unique-selectors "^5.0.0" -cssnano-util-get-arguments@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/cssnano-util-get-arguments/-/cssnano-util-get-arguments-4.0.0.tgz#ed3a08299f21d75741b20f3b81f194ed49cc150f" - integrity sha1-7ToIKZ8h11dBsg87gfGU7UnMFQ8= - -cssnano-util-get-match@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/cssnano-util-get-match/-/cssnano-util-get-match-4.0.0.tgz#c0e4ca07f5386bb17ec5e52250b4f5961365156d" - integrity sha1-wOTKB/U4a7F+xeUiULT1lhNlFW0= - -cssnano-util-raw-cache@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/cssnano-util-raw-cache/-/cssnano-util-raw-cache-4.0.1.tgz#b26d5fd5f72a11dfe7a7846fb4c67260f96bf282" - integrity sha512-qLuYtWK2b2Dy55I8ZX3ky1Z16WYsx544Q0UWViebptpwn/xDBmog2TLg4f+DBMg1rJ6JDWtn96WHbOKDWt1WQA== - dependencies: - postcss "^7.0.0" - -cssnano-util-same-parent@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/cssnano-util-same-parent/-/cssnano-util-same-parent-4.0.1.tgz#574082fb2859d2db433855835d9a8456ea18bbf3" - integrity sha512-WcKx5OY+KoSIAxBW6UBBRay1U6vkYheCdjyVNDm85zt5K9mHoGOfsOsqIszfAqrQQFIIKgjh2+FDgIj/zsl21Q== - cssnano-utils@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/cssnano-utils/-/cssnano-utils-2.0.0.tgz#b04baaa312aa3dd5a854b7f61d76b9d94be07f74" integrity sha512-xvxmTszdrvSyTACdPe8VU5J6p4sm3egpgw54dILvNqt5eBUv6TFjACLhSxtRuEsxYrgy8uDy269YjScO5aKbGA== -cssnano@5.0.1: +cssnano@5.0.1, cssnano@^5.0.0: version "5.0.1" resolved "https://registry.yarnpkg.com/cssnano/-/cssnano-5.0.1.tgz#ed4822c4a9212f22f6820717859c52a6b7f9cf5c" integrity sha512-5WubEmKcK2cqw43DUAayRBiIlTdX7iX3ZowrWDVxSVcW3hyohVnbJ4K4mbnWtJp5rfJnUwHg5H4mDAGzmuCM3g== @@ -4305,17 +3881,7 @@ cssnano@5.0.1: cssnano-preset-default "^5.0.0" is-resolvable "^1.1.0" -cssnano@^4.1.10: - version "4.1.10" - resolved "https://registry.yarnpkg.com/cssnano/-/cssnano-4.1.10.tgz#0ac41f0b13d13d465487e111b778d42da631b8b2" - integrity sha512-5wny+F6H4/8RgNlaqab4ktc3e0/blKutmq8yNlBFXA//nSFFAqAngjNVRzUvCgYROULmZZUoosL/KSoZo5aUaQ== - dependencies: - cosmiconfig "^5.0.0" - cssnano-preset-default "^4.0.7" - is-resolvable "^1.0.0" - postcss "^7.0.0" - -csso@^4.0.2, csso@^4.2.0: +csso@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/csso/-/csso-4.2.0.tgz#ea3a561346e8dc9f546d6febedd50187cf389529" integrity sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA== @@ -4506,9 +4072,9 @@ defaults@^1.0.3: clone "^1.0.2" defer-to-connect@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-2.0.0.tgz#83d6b199db041593ac84d781b5222308ccf4c2c1" - integrity sha512-bYL2d05vOSf1JEZNx5vSAtPuBMkX8K9EUutg7zlKvTqKXHt7RhWJFbmd7qakVuf13i+IkGmp6FwSsONOf6VYIg== + version "2.0.1" + resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-2.0.1.tgz#8016bdb4143e4632b77a3449c6236277de520587" + integrity sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg== define-lazy-prop@^2.0.0: version "2.0.0" @@ -4606,9 +4172,9 @@ destroy@~1.0.4: integrity sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA= detect-node@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/detect-node/-/detect-node-2.0.4.tgz#014ee8f8f669c5c58023da64b8179c083a28c46c" - integrity sha512-ZIzRpLJrOj7jjP2miAtgqIfmzbxa4ZOr5jJc601zklsfEx9oTzmmj2nVpIPRpNlRTIh8lc1kyViIY7BWSGNmKw== + version "2.0.5" + resolved "https://registry.yarnpkg.com/detect-node/-/detect-node-2.0.5.tgz#9d270aa7eaa5af0b72c4c9d9b814e7f4ce738b79" + integrity sha512-qi86tE6hRcFHy8jI1m2VG+LaPUR1LhqDa5G8tVjuUXmOrpuAgqsA1pN0+ldgr3aKUH+QLI9hCY/OcRYisERejw== devtools-protocol@0.0.854822: version "0.0.854822" @@ -4675,14 +4241,6 @@ dom-serialize@^2.2.1: extend "^3.0.0" void-elements "^2.0.0" -dom-serializer@0: - version "0.2.2" - resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-0.2.2.tgz#1afb81f533717175d478655debc5e332d9f9bb51" - integrity sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g== - dependencies: - domelementtype "^2.0.1" - entities "^2.0.0" - dom-serializer@^1.0.1: version "1.3.1" resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-1.3.1.tgz#d845a1565d7c041a95e5dab62184ab41e3a519be" @@ -4692,17 +4250,7 @@ dom-serializer@^1.0.1: domhandler "^4.0.0" entities "^2.0.0" -domelementtype@1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-1.3.1.tgz#d048c44b37b0d10a7f2a3d5fee3f4333d790481f" - integrity sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w== - -domelementtype@^2.0.1: - version "2.1.0" - resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-2.1.0.tgz#a851c080a6d1c3d94344aed151d99f669edf585e" - integrity sha512-LsTgx/L5VpD+Q8lmsXSHW2WpA+eBlZ9HPf3erD1IoPF00/3JKHZ3BknUVA2QGDNu69ZNmyFmCWBSO45XjYKC5w== - -domelementtype@^2.2.0: +domelementtype@^2.0.1, domelementtype@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-2.2.0.tgz#9a0b6c2782ed6a1c7323d42267183df9bd8b1d57" integrity sha512-DtBMo82pv1dFtUmHyr48beiuq792Sxohr+8Hm9zoxklYPfa6n0Z3Byjj2IV7bmr2IyqClnqEQhfgHJJ5QF0R5A== @@ -4714,10 +4262,10 @@ domexception@^1.0.1: dependencies: webidl-conversions "^4.0.2" -domhandler@^4.0.0, domhandler@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-4.1.0.tgz#c1d8d494d5ec6db22de99e46a149c2a4d23ddd43" - integrity sha512-/6/kmsGlMY4Tup/nGVutdrK9yQi4YjWVcVeoQmixpzjOUK1U7pQkvAPHBJeUxOgxF0J8f8lwCJSlCfD0V4CMGQ== +domhandler@^4.0.0, domhandler@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-4.2.0.tgz#f9768a5f034be60a89a27c2e4d0f74eba0d8b059" + integrity sha512-zk7sgt970kzPks2Bf+dwT/PLzghLnsivb9CcxkvR8Mzr66Olr0Ofd8neSbglHJHaHa2MadfoSdNlKYAaafmWfA== dependencies: domelementtype "^2.2.0" @@ -4727,26 +4275,18 @@ domino@^2.1.2: integrity sha512-3VdM/SXBZX2omc9JF9nOPCtDaYQ67BGp5CoLpIQlO2KCAPETs8TcDHacF26jXadGbvUteZzRTeos2fhID5+ucQ== dompurify@^2.2.6: - version "2.2.6" - resolved "https://registry.yarnpkg.com/dompurify/-/dompurify-2.2.6.tgz#54945dc5c0b45ce5ae228705777e8e59d7b2edc4" - integrity sha512-7b7ZArhhH0SP6W2R9cqK6RjaU82FZ2UPM7RO8qN1b1wyvC/NY1FNWcX1Pu00fFOAnzEORtwXe4bPaClg6pUybQ== - -domutils@^1.7.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/domutils/-/domutils-1.7.0.tgz#56ea341e834e06e6748af7a1cb25da67ea9f8c2a" - integrity sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg== - dependencies: - dom-serializer "0" - domelementtype "1" + version "2.2.7" + resolved "https://registry.yarnpkg.com/dompurify/-/dompurify-2.2.7.tgz#a5f055a2a471638680e779bd08fc334962d11fd8" + integrity sha512-jdtDffdGNY+C76jvodNTu9jt5yYj59vuTUyx+wXdzcSwAGTYZDAQkQ7Iwx9zcGrA4ixC1syU4H3RZROqRxokxg== domutils@^2.4.3: - version "2.5.2" - resolved "https://registry.yarnpkg.com/domutils/-/domutils-2.5.2.tgz#37ef8ba087dff1a17175e7092e8a042e4b050e6c" - integrity sha512-MHTthCb1zj8f1GVfRpeZUbohQf/HdBos0oX5gZcQFepOZPLLRyj6Wn7XS7EMnY7CVpwv8863u2vyE83Hfu28HQ== + version "2.6.0" + resolved "https://registry.yarnpkg.com/domutils/-/domutils-2.6.0.tgz#2e15c04185d43fb16ae7057cb76433c6edb938b7" + integrity sha512-y0BezHuy4MDYxh6OvolXYsH+1EMGmFbwv5FKW7ovwMG6zTPWqNPq3WF9ayZssFq+UlKdffGLbOEaghNdaOm1WA== dependencies: dom-serializer "^1.0.1" domelementtype "^2.2.0" - domhandler "^4.1.0" + domhandler "^4.2.0" dot-prop@^5.1.0, dot-prop@^5.2.0: version "5.3.0" @@ -4794,10 +4334,10 @@ ejs@^3.1.6: dependencies: jake "^10.6.1" -electron-to-chromium@^1.3.649: - version "1.3.665" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.665.tgz#6d0937376f6a919c0f289202c4be77790a6175e5" - integrity sha512-LIjx1JheOz7LM8DMEQ2tPnbBzJ4nVG1MKutsbEMLnJfwfVdPIsyagqfLp56bOWhdBrYGXWHaTayYkllIU2TauA== +electron-to-chromium@^1.3.712: + version "1.3.718" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.718.tgz#a192981ced608978410ebc011e24ecab1bb4beb3" + integrity sha512-CikzdUSShGXwjq1pcW740wK8j+KbazgHZiwzlHICejDaczM6OVsPcrZmBHPwzj9i2rj5twg20MBwp+cYZwldYA== emoji-regex@^7.0.1: version "7.0.3" @@ -4866,14 +4406,6 @@ enhanced-resolve@5.8.0, enhanced-resolve@^5.8.0: graceful-fs "^4.2.4" tapable "^2.2.0" -enhanced-resolve@^5.7.0: - version "5.7.0" - resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.7.0.tgz#525c5d856680fbd5052de453ac83e32049958b5c" - integrity sha512-6njwt/NsZFUKhM6j9U8hzVyD4E4r0x7NQzhTCbcWOJ0IQjNSAoalWmb0AE51Wn+fwan5qVESWi7t2ToBxs9vrw== - dependencies: - graceful-fs "^4.2.4" - tapable "^2.2.0" - ent@~2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/ent/-/ent-2.2.0.tgz#e964219325a21d05f44466a2f686ed6ce5f5dd1d" @@ -4885,9 +4417,9 @@ entities@^2.0.0: integrity sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A== env-paths@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/env-paths/-/env-paths-2.2.0.tgz#cdca557dc009152917d6166e2febe1f039685e43" - integrity sha512-6u0VYSCo/OW6IoD5WCLLy9JUGARbamfSavcNXry/eu8aHVFei6CD3Sw+VGX5alea1i9pgPHW0mbu6Xj0uBh7gA== + version "2.2.1" + resolved "https://registry.yarnpkg.com/env-paths/-/env-paths-2.2.1.tgz#420399d416ce1fbe9bc0a07c62fa68d67fd0f8f2" + integrity sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A== envinfo@7.7.4: version "7.7.4" @@ -4913,57 +4445,11 @@ error-ex@^1.2.0, error-ex@^1.3.1: dependencies: is-arrayish "^0.2.1" -es-abstract@^1.17.2: - version "1.17.7" - resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.17.7.tgz#a4de61b2f66989fc7421676c1cb9787573ace54c" - integrity sha512-VBl/gnfcJ7OercKA9MVaegWsBHFjV492syMudcnQZvt/Dw8ezpcOHYZXa/J96O8vx+g4x65YKhxOwDUh63aS5g== - dependencies: - es-to-primitive "^1.2.1" - function-bind "^1.1.1" - has "^1.0.3" - has-symbols "^1.0.1" - is-callable "^1.2.2" - is-regex "^1.1.1" - object-inspect "^1.8.0" - object-keys "^1.1.1" - object.assign "^4.1.1" - string.prototype.trimend "^1.0.1" - string.prototype.trimstart "^1.0.1" - -es-abstract@^1.18.0-next.1: - version "1.18.0-next.2" - resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.18.0-next.2.tgz#088101a55f0541f595e7e057199e27ddc8f3a5c2" - integrity sha512-Ih4ZMFHEtZupnUh6497zEL4y2+w8+1ljnCyaTa+adcoafI1GOvMwFlDjBLfWR7y9VLfrjRJe9ocuHY1PSR9jjw== - dependencies: - call-bind "^1.0.2" - es-to-primitive "^1.2.1" - function-bind "^1.1.1" - get-intrinsic "^1.0.2" - has "^1.0.3" - has-symbols "^1.0.1" - is-callable "^1.2.2" - is-negative-zero "^2.0.1" - is-regex "^1.1.1" - object-inspect "^1.9.0" - object-keys "^1.1.1" - object.assign "^4.1.2" - string.prototype.trimend "^1.0.3" - string.prototype.trimstart "^1.0.3" - es-module-lexer@^0.4.0: version "0.4.1" resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-0.4.1.tgz#dda8c6a14d8f340a24e34331e0fab0cb50438e0e" integrity sha512-ooYciCUtfw6/d2w56UVeqHPcoCFAiJdz5XOkYpv/Txl1HMUozpXjz/2RIQgqwKdXNDPSF1W7mJCFse3G+HDyAA== -es-to-primitive@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a" - integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA== - dependencies: - is-callable "^1.1.4" - is-date-object "^1.0.1" - is-symbol "^1.0.2" - es5-ext@^0.10.35, es5-ext@^0.10.46, es5-ext@^0.10.50, es5-ext@^0.10.53, es5-ext@~0.10.14, es5-ext@~0.10.2, es5-ext@~0.10.46: version "0.10.53" resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.53.tgz#93c5a3acfdbef275220ad72644ad02ee18368de1" @@ -5120,14 +4606,14 @@ eventemitter3@^4.0.0: integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== events@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/events/-/events-3.2.0.tgz#93b87c18f8efcd4202a461aec4dfc0556b639379" - integrity sha512-/46HWwbfCX2xTawVfkKLGxMifJYQBWMwY1mjywRtb4c9x8l5NP3KoJtnIOiL1hfdRkIuYhETxQlo62IF8tcnlg== + version "3.3.0" + resolved "https://registry.yarnpkg.com/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400" + integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q== eventsource@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/eventsource/-/eventsource-1.0.7.tgz#8fbc72c93fcd34088090bc0a4e64f4b5cee6d8d0" - integrity sha512-4Ln17+vVT0k8aWq+t/bF5arcS3EpT9gYtW66EPacdj/mAFevznsnyoHLPy2BA8gbIQeIHoPsvwmfBftfcG//BQ== + version "1.1.0" + resolved "https://registry.yarnpkg.com/eventsource/-/eventsource-1.1.0.tgz#00e8ca7c92109e94b0ddf32dac677d841028cfaf" + integrity sha512-VSJjT5oCNrFvCS6igjzPAt5hBzQ2qPBFIbJ03zLI9SE0mxwZpMw6BfJrbFHm1a141AavMEB8JHmBhWAd66PfCg== dependencies: original "^1.0.0" @@ -5322,9 +4808,9 @@ fastparse@^1.1.2: integrity sha512-483XLLxTVIwWK3QTrMGRqUfUpoOs/0hbQrl2oz4J0pAcm3A3bu84wxTFqGqkJzewCLdME38xJLJAxBABfQT8sQ== fastq@^1.6.0: - version "1.10.1" - resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.10.1.tgz#8b8f2ac8bf3632d67afcd65dac248d5fdc45385e" - integrity sha512-AWuv6Ery3pM+dY7LYS8YIaCiQvUaos9OB1RyNgaOWnaX+Tik7Onvcsf8x8c+YtDeT0maYLniBip2hox5KtEXXA== + version "1.11.0" + resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.11.0.tgz#bb9fb955a07130a918eb63c1f5161cc32a5d0858" + integrity sha512-7Eczs8gIPDrVzT+EksYBcupqMyxSHXXrHOLRRxU2/DicV8789MRBRR8+Hc2uWzUupOs4YS4JzBmBxjjCVBxD/g== dependencies: reusify "^1.0.4" @@ -5459,9 +4945,9 @@ flatten@^1.0.2: integrity sha512-dVsPA/UwQ8+2uoFe5GHtiBMu48dWLTdsuEd7CKGlZlD78r1TTWBvDuFaFGKCo/ZfEr95Uk56vZoX86OsHkUeIg== follow-redirects@^1.0.0: - version "1.13.2" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.13.2.tgz#dd73c8effc12728ba5cf4259d760ea5fb83e3147" - integrity sha512-6mPTgLxYm3r6Bkkg0vNM0HTjfGrOEtsfbhagQvbxDEsEkpNhw582upBaoRZylzen6krEmxXJgt9Ju6HiI4O7BA== + version "1.13.3" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.13.3.tgz#e5598ad50174c1bc4e872301e82ac2cd97f90267" + integrity sha512-DUgl6+HDzB0iEptNQEXLx/KhTmDb8tZUHSeLqpnjpknR70H0nC2t9N73BK6fN4hOvJ84pKlIQVQ4k5FFlBedKA== font-awesome@^4.7.0: version "4.7.0" @@ -5514,11 +5000,6 @@ forwarded@~0.1.2: resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.1.2.tgz#98c23dab1175657b8c0573e8ceccd91b0ff18c84" integrity sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ= -fraction.js@^4.0.13: - version "4.0.13" - resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-4.0.13.tgz#3c1c315fa16b35c85fffa95725a36fa729c69dfe" - integrity sha512-E1fz2Xs9ltlUp+qbiyx9wmt2n9dRzPsS11Jtdb8D2o+cC7wr9xkkKsVKJuBX0ST+LVS+LhLO+SbLJNtfWcJvXA== - fragment-cache@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" @@ -5552,10 +5033,10 @@ fs-minipass@^2.0.0, fs-minipass@^2.1.0: dependencies: minipass "^3.0.0" -fs-monkey@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/fs-monkey/-/fs-monkey-1.0.1.tgz#4a82f36944365e619f4454d9fff106553067b781" - integrity sha512-fcSa+wyTqZa46iWweI7/ZiUfegOZl0SG8+dltIwFXo7+zYU9J9kpS3NB6pZcSlJdhvIwp81Adx2XhZorncxiaA== +fs-monkey@1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/fs-monkey/-/fs-monkey-1.0.3.tgz#ae3ac92d53bb328efe0e9a1d9541f6ad8d48e2d3" + integrity sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q== fs.realpath@^1.0.0: version "1.0.0" @@ -5632,11 +5113,6 @@ get-pkg-repo@^1.0.0: parse-github-repo-url "^1.3.0" through2 "^2.0.0" -get-port@^3.1.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/get-port/-/get-port-3.2.0.tgz#dd7ce7de187c06c8bf353796ac71e099f0980ebc" - integrity sha1-3Xzn3hh8Bsi/NTeWrHHgmfCYDrw= - get-stdin@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-4.0.1.tgz#b968c6b0a04384324902e8bf1a5df32579a450fe" @@ -5718,9 +5194,9 @@ glob-parent@^3.1.0: path-dirname "^1.0.0" glob-parent@^5.1.0, glob-parent@^5.1.1, glob-parent@~5.1.0: - version "5.1.1" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.1.tgz#b6c1ef417c4e5663ea498f1c45afac6916bbc229" - integrity sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ== + version "5.1.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" + integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== dependencies: is-glob "^4.0.1" @@ -5883,9 +5359,9 @@ has-flag@^4.0.0: integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== has-symbols@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.1.tgz#9f5214758a44196c406d9bd76cebf81ec2dd31e8" - integrity sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg== + version "1.0.2" + resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.2.tgz#165d3070c00309752a1236a479331e3ac56f1423" + integrity sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw== has-unicode@^2.0.0: version "2.0.1" @@ -5923,7 +5399,7 @@ has-values@^1.0.0: is-number "^3.0.0" kind-of "^4.0.0" -has@^1.0.0, has@^1.0.1, has@^1.0.3: +has@^1.0.1, has@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== @@ -5936,21 +5412,14 @@ hex-color-regex@^1.1.0: integrity sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ== hosted-git-info@^2.1.4, hosted-git-info@^2.7.1: - version "2.8.8" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.8.tgz#7539bd4bc1e0e0a895815a2e0262420b12858488" - integrity sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg== - -hosted-git-info@^3.0.6: - version "3.0.8" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-3.0.8.tgz#6e35d4cc87af2c5f816e4cb9ce350ba87a3f370d" - integrity sha512-aXpmwoOhRBrw6X3j0h5RloK4x1OzsxMPyxqIHyNfSe2pypkVTZFpEiRoSipPEPlMrh0HW/XsjkJ5WgnCirpNUw== - dependencies: - lru-cache "^6.0.0" + version "2.8.9" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9" + integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw== hosted-git-info@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-4.0.1.tgz#710ef5452ea429a844abc33c981056e7371edab7" - integrity sha512-eT7NrxAsppPRQEBSwKSosReE+v8OzABwEScQYk5d4uxaEPlzxTIku7LINXtBGalthkLhJnq5lBI89PfK43zAKg== + version "4.0.2" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-4.0.2.tgz#5e425507eede4fea846b7262f0838456c4209961" + integrity sha512-c9OGXbZ3guC/xOlCg1Ci/VgWlwsqDv1yMQL1CWqXDL0hDjXuNcq0zuR4xqPSuasI3kqFDhqSyTjREz5gzq0fXg== dependencies: lru-cache "^6.0.0" @@ -5974,11 +5443,6 @@ hsla-regex@^1.0.0: resolved "https://registry.yarnpkg.com/hsla-regex/-/hsla-regex-1.0.0.tgz#c1ce7a3168c8c6614033a4b5f7877f3b225f9c38" integrity sha1-wc56MWjIxmFAM6S194d/OyJfnDg= -html-comment-regex@^1.1.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/html-comment-regex/-/html-comment-regex-1.1.2.tgz#97d4688aeb5c81886a364faa0cad1dda14d433a7" - integrity sha512-P+M65QY2JQ5Y0G9KKdlDpo0zK+/OHptU5AaBwUfAIDJZk1MYf32Frm84EcOytfJE0t5JvkAnKlmjsXDnWzCJmQ== - html-encoding-sniffer@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz#e70d84b94da53aa375e11fe3a351be6642ca46f8" @@ -6073,6 +5537,17 @@ http-proxy-middleware@0.19.1: lodash "^4.17.11" micromatch "^3.1.10" +http-proxy-middleware@^1.0.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/http-proxy-middleware/-/http-proxy-middleware-1.2.0.tgz#87776ea3d4d8dda3dc2594a076787bbc6fe4d995" + integrity sha512-vNw+AxT0+6VTM1rCJw1bpiIaUQ1Ww/vTyIEOUzdW9kNX4yuhhqV3jLSKDJo/Y/lqEIshaKCDujtvEqWiD9Dn6Q== + dependencies: + "@types/http-proxy" "^1.17.5" + http-proxy "^1.18.1" + is-glob "^4.0.1" + is-plain-obj "^3.0.0" + micromatch "^4.0.2" + http-proxy@^1.17.0, http-proxy@^1.18.1: version "1.18.1" resolved "https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.18.1.tgz#401541f0534884bbf95260334e72f88ee3976549" @@ -6175,14 +5650,6 @@ immutable@^3.8.2: resolved "https://registry.yarnpkg.com/immutable/-/immutable-3.8.2.tgz#c2439951455bb39913daf281376f1530e104adf3" integrity sha1-wkOZUUVbs5kT2vKBN28VMOEErfM= -import-fresh@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-2.0.0.tgz#d81355c15612d386c61f9ddd3922d4304822a546" - integrity sha1-2BNVwVYS04bGH53dOSLUMEgipUY= - dependencies: - caller-path "^2.0.0" - resolve-from "^3.0.0" - import-fresh@^3.2.1: version "3.3.0" resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" @@ -6308,11 +5775,6 @@ ipaddr.js@1.9.1, ipaddr.js@^1.9.0: resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3" integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g== -is-absolute-url@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-absolute-url/-/is-absolute-url-2.1.0.tgz#50530dfb84fcc9aa7dbe7852e83a37b93b9f2aa6" - integrity sha1-UFMN+4T8yap9vnhS6Do3uTufKqY= - is-absolute-url@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/is-absolute-url/-/is-absolute-url-3.0.3.tgz#96c6a22b6a23929b11ea0afb1836c36ad4a5d698" @@ -6368,12 +5830,7 @@ is-buffer@^1.1.5: resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== -is-callable@^1.1.4, is-callable@^1.2.2: - version "1.2.3" - resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.3.tgz#8b1e0500b73a1d76c70487636f368e519de8db8e" - integrity sha512-J1DcMe8UYTBSrKezuIUTUwjXsho29693unXM2YhJUTR2txK/eG47bvNa/wipPFmZFgr/N6f1GA66dv0mEyTIyQ== - -is-color-stop@^1.0.0, is-color-stop@^1.1.0: +is-color-stop@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-color-stop/-/is-color-stop-1.1.0.tgz#cfff471aee4dd5c9e158598fbe12967b5cdad345" integrity sha1-z/9HGu5N1cnhWFmPvhKWe1za00U= @@ -6429,15 +5886,10 @@ is-descriptor@^1.0.0, is-descriptor@^1.0.2: is-data-descriptor "^1.0.0" kind-of "^6.0.2" -is-directory@^0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1" - integrity sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE= - is-docker@^2.0.0, is-docker@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.1.1.tgz#4125a88e44e450d384e09047ede71adc2d144156" - integrity sha512-ZOoqiXfEwtGknTiuDEy8pN2CfE3TxMHprvNer1mXiqwkOT77Rw3YVrUQ52EqAOU3QAWDQ+bQdx7HJzrv7LS2Hw== + version "2.2.1" + resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa" + integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ== is-extendable@^0.1.0, is-extendable@^0.1.1: version "0.1.1" @@ -6507,11 +5959,6 @@ is-module@^1.0.0: resolved "https://registry.yarnpkg.com/is-module/-/is-module-1.0.0.tgz#3258fb69f78c14d5b815d664336b4cffb6441591" integrity sha1-Mlj7afeMFNW4FdZkM2tM/7ZEFZE= -is-negative-zero@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.1.tgz#3de746c18dda2319241a53675908d8f766f11c24" - integrity sha512-2z6JzQvZRa9A2Y7xC6dQQm4FSTSTNWjKIYYTt4246eMTJmIo0Q+ZyOsU66X8lxK1AbB92dFeglPLrhwpeRKO6w== - is-number@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" @@ -6572,6 +6019,11 @@ is-plain-obj@^1.1.0: resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" integrity sha1-caUMhCnfync8kqOQpKA7OfzVHT4= +is-plain-obj@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-3.0.0.tgz#af6f2ea14ac5a646183a5bbdb5baabbc156ad9d7" + integrity sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA== + is-plain-object@^2.0.3, is-plain-object@^2.0.4: version "2.0.4" resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" @@ -6596,7 +6048,7 @@ is-reference@^1.2.1: dependencies: "@types/estree" "*" -is-regex@^1.0.4, is-regex@^1.1.1: +is-regex@^1.0.4: version "1.1.2" resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.2.tgz#81c8ebde4db142f2cf1c53fc86d6a45788266251" integrity sha512-axvdhb5pdhEVThqJzYXwMlVuZwC+FF2DpcOhTS+y/8jVq4trxyPgfcwIxIKiyeuLlSQYKkmUaPQJ8ZE4yNKXDg== @@ -6604,7 +6056,7 @@ is-regex@^1.0.4, is-regex@^1.1.1: call-bind "^1.0.2" has-symbols "^1.0.1" -is-resolvable@^1.0.0, is-resolvable@^1.1.0: +is-resolvable@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-resolvable/-/is-resolvable-1.1.0.tgz#fb18f87ce1feb925169c9a407c19318a3206ed88" integrity sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg== @@ -6614,20 +6066,6 @@ is-stream@^1.0.1, is-stream@^1.1.0: resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" integrity sha1-EtSj3U5o4Lec6428hBc66A2RykQ= -is-svg@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-svg/-/is-svg-3.0.0.tgz#9321dbd29c212e5ca99c4fa9794c714bcafa2f75" - integrity sha512-gi4iHK53LR2ujhLVVj+37Ykh9GLqYHX6JOVXbLAucaG/Cqw9xwdFOjDM2qeifLs1sF1npXXFvDu0r5HNgCMrzQ== - dependencies: - html-comment-regex "^1.1.0" - -is-symbol@^1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.3.tgz#38e1014b9e6329be0de9d24a414fd7441ec61937" - integrity sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ== - dependencies: - has-symbols "^1.0.1" - is-text-path@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/is-text-path/-/is-text-path-1.0.1.tgz#4e1aa0fb51bfbcb3e92688001397202c1775b66e" @@ -6656,9 +6094,9 @@ is-utf8@^0.2.0: integrity sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI= is-what@^3.12.0: - version "3.12.0" - resolved "https://registry.yarnpkg.com/is-what/-/is-what-3.12.0.tgz#f4405ce4bd6dd420d3ced51a026fb90e03705e55" - integrity sha512-2ilQz5/f/o9V7WRWJQmpFYNmQFZ9iM+OXRonZKcYgTkCzjb949Vi4h282PD1UfmgHk666rcWonbRJ++KI41VGw== + version "3.14.1" + resolved "https://registry.yarnpkg.com/is-what/-/is-what-3.14.1.tgz#e1222f46ddda85dead0fd1c9df131760e77755c1" + integrity sha512-sNxgpk9793nzSs7bA6JQJGeIuRBQhAaNGG77kzYQgMkrID+lS6SlK07K5LaptscDlSaIgH+GPFzf+d75FVxozA== is-windows@^1.0.2: version "1.0.2" @@ -6773,21 +6211,16 @@ jake@^10.6.1: filelist "^1.0.1" minimatch "^3.0.4" -jasmine-core@^3.6.0, jasmine-core@~3.6.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-3.6.0.tgz#491f3bb23941799c353ceb7a45b38a950ebc5a20" - integrity sha512-8uQYa7zJN8hq9z+g8z1bqCfdC8eoDAeVnM5sfqs7KHv9/ifoJ500m018fpFc7RDaO6SWCLCXwo/wPSNcdYTgcw== +jasmine-core@^3.6.0, jasmine-core@~3.7.0: + version "3.7.1" + resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-3.7.1.tgz#0401327f6249eac993d47bbfa18d4e8efacfb561" + integrity sha512-DH3oYDS/AUvvr22+xUBW62m1Xoy7tUlY1tsxKEJvl5JeJ7q8zd1K5bUwiOxdH+erj6l2vAMM3hV25Xs9/WrmuQ== jasmine-core@~2.8.0: version "2.8.0" resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-2.8.0.tgz#bcc979ae1f9fd05701e45e52e65d3a5d63f1a24e" integrity sha1-vMl5rh+f0FcB5F5S5l06XWPxok4= -jasmine-core@~3.7.0: - version "3.7.0" - resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-3.7.0.tgz#33da871fef5595e9aa43d0f50e009b5fe35f7ef2" - integrity sha512-jmeRIgxS/abz8afk9NKJ1yP7n93aZdRaHDWtTHJBlYu6fhbzvErjiO3mMlSSrJefVk1a+26JlABrHS2iBH8Azw== - jasmine-reporters@~2.4.0: version "2.4.0" resolved "https://registry.yarnpkg.com/jasmine-reporters/-/jasmine-reporters-2.4.0.tgz#708c17ae70ba6671e3a930bb1b202aab80a31409" @@ -6813,12 +6246,12 @@ jasmine@2.8.0: jasmine-core "~2.8.0" jasmine@^3.3.1: - version "3.6.4" - resolved "https://registry.yarnpkg.com/jasmine/-/jasmine-3.6.4.tgz#1f8e4a0d5028a2dc66942b73b9fef4c32be97ad5" - integrity sha512-hIeOou6y0BgCOKYgXYveQvlY+PTHgDPajFf+vLCYbMTQ+VjAP9+EQv0nuC9+gyCAAWISRFauB1XUb9kFuOKtcQ== + version "3.7.0" + resolved "https://registry.yarnpkg.com/jasmine/-/jasmine-3.7.0.tgz#d36638c0c815e6ad5666676e386d79e2ccb70835" + integrity sha512-wlzGQ+cIFzMEsI+wDqmOwvnjTvolLFwlcpYLCqSPPH0prOQaW3P+IzMhHYn934l1imNvw07oCyX+vGUv3wmtSQ== dependencies: glob "^7.1.6" - jasmine-core "~3.6.0" + jasmine-core "~3.7.0" jasminewd2@^2.1.0: version "2.2.0" @@ -6835,9 +6268,9 @@ jest-worker@26.6.2, jest-worker@^26.5.0, jest-worker@^26.6.2: supports-color "^7.0.0" jquery@^3.3.1: - version "3.5.1" - resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.5.1.tgz#d7b4d08e1bfdb86ad2f1a3d039ea17304717abb5" - integrity sha512-XwIBPqcMn57FxfT+Go5pzySnm4KWkT1Tv7gjrpT1srtf8Weynl6R273VJ5GjkRb51IzMp5nbaPjJXMWeju2MKg== + version "3.6.0" + resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.6.0.tgz#c72a09f15c1bdce142f49dbf1170bdf8adac2470" + integrity sha512-JVzAR/AjBvVt2BmYhxRCSYysDsPcssdmTFnzyLEts9qNwmjmu4JTAMYubEfwVOSwpQ1I1sKKFcxhZCI2buerfw== js-base64@^2.4.3: version "2.6.4" @@ -6965,7 +6398,7 @@ json5@^2.1.0, json5@^2.1.2: dependencies: minimist "^1.2.5" -jsonc-parser@3.0.0: +jsonc-parser@3.0.0, jsonc-parser@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-3.0.0.tgz#abdd785701c7e7eaca8a9ec8cf070ca51a745a22" integrity sha512-fQzRfAbIBnR0IQvftw9FJveWiHp72Fg20giDrHz6TdfB12UH/uue0D3hm57UB5KgAVuniLMCaS8P1IMj9NR7cA== @@ -7074,9 +6507,9 @@ karma-source-map-support@1.4.0: source-map-support "^0.5.5" karma@~6.3.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/karma/-/karma-6.3.0.tgz#8291d1ba329a1f57c160b0bd256fb42ae16bfd8b" - integrity sha512-Or+x8T4/TWe7ChBaAkdQARjETSbvxsipp5Y+0UMSu4z0YYzy06OA2UdHAmMIx5gLs4a76X916pY1bzGgYuN7BQ== + version "6.3.2" + resolved "https://registry.yarnpkg.com/karma/-/karma-6.3.2.tgz#24b62fbae3e8b5218cc32a0dac49ad08a541e76d" + integrity sha512-fo4Wt0S99/8vylZMxNj4cBFyOBBnC1bewZ0QOlePij/2SZVWxqbyLeIddY13q6URa2EpLRW8ixvFRUMjkmo1bw== dependencies: body-parser "^1.19.0" braces "^3.0.2" @@ -7313,11 +6746,6 @@ lockfile@1.0.4: dependencies: signal-exit "^3.0.2" -lodash._reinterpolate@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d" - integrity sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0= - lodash.debounce@^4.0.8: version "4.0.8" resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" @@ -7383,43 +6811,16 @@ lodash.sortby@^4.7.0: resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" integrity sha1-7dFMgk4sycHgsKG0K7UhBRakJDg= -lodash.template@^4.5.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/lodash.template/-/lodash.template-4.5.0.tgz#f976195cf3f347d0d5f52483569fe8031ccce8ab" - integrity sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A== - dependencies: - lodash._reinterpolate "^3.0.0" - lodash.templatesettings "^4.0.0" - -lodash.templatesettings@^4.0.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz#e481310f049d3cf6d47e912ad09313b154f0fb33" - integrity sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ== - dependencies: - lodash._reinterpolate "^3.0.0" - lodash.uniq@^4.5.0: version "4.5.0" resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M= -lodash@4, lodash@4.17.21, lodash@^4.17.21: +lodash@4, lodash@4.17.21, lodash@^4.17.11, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.21: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== -lodash@^4.17.11, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19: - version "4.17.20" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52" - integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA== - -log-symbols@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.0.0.tgz#69b3cc46d20f448eccdb75ea1fa733d9e821c920" - integrity sha512-FN8JBzLx6CzeMrB0tg6pqlGU1wCrXW+ZXGH481kfsBqer0hToTIiHdjH4Mq8xJUbvATujKCvaREGWpGUionraA== - dependencies: - chalk "^4.0.0" - log-symbols@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" @@ -7518,13 +6919,6 @@ magic-string@^0.22.4: dependencies: vlq "^0.2.2" -make-dir@3.1.0, make-dir@^3.0.0, make-dir@^3.0.2, make-dir@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" - integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== - dependencies: - semver "^6.0.0" - make-dir@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5" @@ -7533,6 +6927,13 @@ make-dir@^2.1.0: pify "^4.0.1" semver "^5.6.0" +make-dir@^3.0.0, make-dir@^3.0.2, make-dir@^3.1.0, make-dir@~3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" + integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== + dependencies: + semver "^6.0.0" + make-error@^1.1.1: version "1.3.6" resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" @@ -7577,9 +6978,9 @@ map-obj@^1.0.0, map-obj@^1.0.1: integrity sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0= map-obj@^4.0.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-4.1.0.tgz#b91221b542734b9f14256c0132c897c5d7256fd5" - integrity sha512-glc9y00wgtwcDmp7GaE/0b0OnxpNJsVf3ael/An6Fe2Q51LLwN1er6sdomLRzz5h0+yMpiYLhWYF5R7HeqVd4g== + version "4.2.1" + resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-4.2.1.tgz#e4ea399dbc979ae735c83c863dd31bdf364277b7" + integrity sha512-+WA2/1sPmDj1dlvvJmB5G6JKfY9dpn7EVBUL06+y6PoljPkh+6V1QihwxNkbcGxCRjt2b0F9K0taiCuo7MbdFQ== map-visit@^1.0.0: version "1.0.0" @@ -7588,40 +6989,40 @@ map-visit@^1.0.0: dependencies: object-visit "^1.0.0" -marked@2.0.1, marked@^2.0.1: +marked@2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/marked/-/marked-2.0.1.tgz#5e7ed7009bfa5c95182e4eb696f85e948cefcee3" integrity sha512-5+/fKgMv2hARmMW7DOpykr2iLhl0NgjyELk5yn92iE7z8Se1IS9n3UsFm86hFXIkvMBmVxki8+ckcpjBeyo/hw== +marked@^2.0.1: + version "2.0.3" + resolved "https://registry.yarnpkg.com/marked/-/marked-2.0.3.tgz#3551c4958c4da36897bda2a16812ef1399c8d6b0" + integrity sha512-5otztIIcJfPc2qGTN8cVtOJEjNJZ0jwa46INMagrYfk0EvqtRuEHLsEe0LrFS0/q+ZRKT0+kXK7P2T1AN5lWRA== + mdn-data@2.0.14: version "2.0.14" resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.14.tgz#7113fc4281917d63ce29b43446f701e68c25ba50" integrity sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow== -mdn-data@2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.4.tgz#699b3c38ac6f1d728091a64650b65d388502fd5b" - integrity sha512-iV3XNKw06j5Q7mi6h+9vbx23Tv7JkjEVgKHW4pimwyDGWm0OIQntJJ+u1C6mg6mK1EaTv42XQ7w76yuzH7M2cA== - media-typer@0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" integrity sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g= mem@^8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/mem/-/mem-8.0.0.tgz#b5e4b6d2d241c6296da05436173b4d0c7ae1f9ac" - integrity sha512-qrcJOe6uD+EW8Wrci1Vdiua/15Xw3n/QnaNXE7varnB6InxSk7nu3/i5jfy3S6kWxr8WYJ6R1o0afMUtvorTsA== + version "8.1.1" + resolved "https://registry.yarnpkg.com/mem/-/mem-8.1.1.tgz#cf118b357c65ab7b7e0817bdf00c8062297c0122" + integrity sha512-qFCFUDs7U3b8mBDPyz5EToEKoAkgCzqquIgi9nkkR9bixxOVOre+09lbuH7+9Kn2NFpm56M3GUWVbU2hQgdACA== dependencies: map-age-cleaner "^0.1.3" mimic-fn "^3.1.0" memfs@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/memfs/-/memfs-3.2.0.tgz#f9438e622b5acd1daa8a4ae160c496fdd1325b26" - integrity sha512-f/xxz2TpdKv6uDn6GtHee8ivFyxwxmPuXatBb1FBwxYNuVpbM3k/Y1Z+vC0mH/dIXXrukYfe3qe5J32Dfjg93A== + version "3.2.2" + resolved "https://registry.yarnpkg.com/memfs/-/memfs-3.2.2.tgz#5de461389d596e3f23d48bb7c2afb6161f4df40e" + integrity sha512-RE0CwmIM3CEvpcdK3rZ19BC4E6hv9kADkMN5rPduRak58cNArWLi/9jFLsa4rhsjfVxMP3v0jO7FHXq7SvFY5Q== dependencies: - fs-monkey "1.0.1" + fs-monkey "1.0.3" memoizee@0.4.15: version "0.4.15" @@ -7732,50 +7133,35 @@ micromatch@^3.1.10, micromatch@^3.1.4: to-regex "^3.0.2" micromatch@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.2.tgz#4fcb0999bf9fbc2fcbdd212f6d629b9a56c39259" - integrity sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q== + version "4.0.4" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.4.tgz#896d519dfe9db25fce94ceb7a500919bf881ebf9" + integrity sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg== dependencies: braces "^3.0.1" - picomatch "^2.0.5" + picomatch "^2.2.3" -mime-db@1.45.0: - version "1.45.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.45.0.tgz#cceeda21ccd7c3a745eba2decd55d4b73e7879ea" - integrity sha512-CkqLUxUk15hofLoLyljJSrukZi8mAtgd+yE5uO4tqRZsdsAJKv0O+rFMhVDRJgozy+yG6md5KwuXhD4ocIoP+w== - -"mime-db@>= 1.43.0 < 2": - version "1.46.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.46.0.tgz#6267748a7f799594de3cbc8cde91def349661cee" - integrity sha512-svXaP8UQRZ5K7or+ZmfNhg2xX3yKDMUzqadsSqi4NCH/KomcH75MAMYAGVlvXn4+b/xOPhS3I2uHKRUzvjY7BQ== +mime-db@1.47.0, "mime-db@>= 1.43.0 < 2": + version "1.47.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.47.0.tgz#8cb313e59965d3c05cfbf898915a267af46a335c" + integrity sha512-QBmA/G2y+IfeS4oktet3qRZ+P5kPhCKRXxXnQEudYqUaEioAU1/Lq2us3D/t1Jfo4hE9REQPrbB7K5sOczJVIw== mime-types@^2.1.12, mime-types@^2.1.27, mime-types@^2.1.28, mime-types@~2.1.17, mime-types@~2.1.19, mime-types@~2.1.24: - version "2.1.28" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.28.tgz#1160c4757eab2c5363888e005273ecf79d2a0ecd" - integrity sha512-0TO2yJ5YHYr7M2zzT7gDU1tbwHxEUWBCLt0lscSNpcdAfFyJOVEpRYNS7EXVcTLNj/25QO8gulHC5JtTzSE2UQ== + version "2.1.30" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.30.tgz#6e7be8b4c479825f85ed6326695db73f9305d62d" + integrity sha512-crmjA4bLtR8m9qLpHvgxSChT+XoSlZi8J4n/aIdn3z92e/U47Z0V/yl+Wh9W046GgFVAmoNR/fmdbZYcSSIUeg== dependencies: - mime-db "1.45.0" + mime-db "1.47.0" mime@1.6.0, mime@^1.4.1: version "1.6.0" resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== -mime@2.4.6: - version "2.4.6" - resolved "https://registry.yarnpkg.com/mime/-/mime-2.4.6.tgz#e5b407c90db442f2beb5b162373d07b69affa4d1" - integrity sha512-RZKhC3EmpBchfTGBVb8fb+RL2cWyw/32lshnsETttkBAyAUXSGHxbEJWWRXc751DrIxG1q04b8QwMbAwkRPpUA== - -mime@2.5.2: +mime@2.5.2, mime@^2.4.4, mime@^2.4.5, mime@~2.5.2: version "2.5.2" resolved "https://registry.yarnpkg.com/mime/-/mime-2.5.2.tgz#6e3dc6cc2b9510643830e5f19d5cb753da5eeabe" integrity sha512-tqkh47FzKeCPD2PUiPB6pkbMzsCasjxAfC62/Wap5qrUWcb+sFasXUC5I3gYM5iBM8v/Qpn4UK0x+j0iHyFPDg== -mime@^2.4.4, mime@^2.4.5: - version "2.5.0" - resolved "https://registry.yarnpkg.com/mime/-/mime-2.5.0.tgz#2b4af934401779806ee98026bb42e8c1ae1876b1" - integrity sha512-ft3WayFSFUVBuJj7BMLKAQcSlItKtfjsKDDsii3rqFDAZ7t11zRe8ASw/GlmivGwVUYtwkQrxiGGpL6gFvB0ag== - mimic-fn@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" @@ -7815,7 +7201,7 @@ minimalistic-assert@^1.0.0: resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A== -"minimatch@2 || 3", minimatch@3.0.4, minimatch@^3.0.4: +"minimatch@2 || 3", minimatch@3.0.4, minimatch@^3.0.4, minimatch@~3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== @@ -7991,11 +7377,6 @@ nan@^2.12.1: resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.2.tgz#f5376400695168f4cc694ac9393d0c9585eeea19" integrity sha512-M2ufzIiINKCuDfBSAUr1vWQ+vuVcA9kqx8JJUsbQi6yf1uGRyb7HfpdfUr5qLXf3B/t8dPvcjhKMmlfnP47EzQ== -nanoid@^3.1.20: - version "3.1.20" - resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.20.tgz#badc263c6b1dcf14b71efaa85f6ab4c1d6cfc788" - integrity sha512-a1cQNyczgKbLX9jwbS/+d7W8fX/RfgYR7lVWwWOGIPNgK2m0MWvrGF6/m4kk6U3QcFMnZf3RIhL0v2Jgh/0Uxw== - nanoid@^3.1.22: version "3.1.22" resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.22.tgz#b35f8fb7d151990a8aebd5aa5015c03cf726f844" @@ -8053,26 +7434,27 @@ next-tick@~1.0.0: integrity sha1-yobR/ogoFpsBICCOPchCS524NCw= ng-packagr@~12.0.0-next.0: - version "12.0.0-next.1" - resolved "https://registry.yarnpkg.com/ng-packagr/-/ng-packagr-12.0.0-next.1.tgz#ce5e20113f589822c3d2c4cdf9bf062a8cd91847" - integrity sha512-z6rlmsrZaLsMhkXyA5EM2SFvsxw0sS1ASunRkdv3yNLcisu5UOJpZ4u5AKWk5V3Z1jgUx4+RQDZ68RwfzBK82A== + version "12.0.0-next.9" + resolved "https://registry.yarnpkg.com/ng-packagr/-/ng-packagr-12.0.0-next.9.tgz#25d42b40b970796e01e9518efa05d786e6c5a879" + integrity sha512-m0NcN5RwfWqQ9WtEbJKVIJu72bQNjfvgVq15xxYgI2bjevQlsv+QzcaGajXhzGcSCmhvFurxhKP6nI2q5erJoA== dependencies: - "@rollup/plugin-commonjs" "^17.0.0" + "@rollup/plugin-commonjs" "^18.0.0" "@rollup/plugin-json" "^4.1.0" "@rollup/plugin-node-resolve" "^11.1.0" - ajv "^7.0.3" + ajv "^8.0.0" ansi-colors "^4.1.1" - autoprefixer "^10.2.4" browserslist "^4.16.1" chokidar "^3.5.1" commander "^7.0.0" - cssnano "^4.1.10" + cssnano "^5.0.0" glob "^7.1.6" injection-js "^2.4.0" + jsonc-parser "^3.0.0" less "^4.1.0" node-sass-tilde-importer "^1.0.2" ora "^5.1.0" postcss "^8.2.4" + postcss-preset-env "^6.7.0" postcss-url "^10.1.1" rimraf "^3.0.0" rollup "^2.37.0" @@ -8080,8 +7462,6 @@ ng-packagr@~12.0.0-next.0: rxjs "^6.5.0" sass "^1.32.5" stylus "^0.54.8" - sync-rpc "^1.3.6" - terser "^5.5.1" nice-try@^1.0.4: version "1.0.5" @@ -8122,10 +7502,10 @@ node-gyp@^7.1.0: tar "^6.0.2" which "^2.0.2" -node-releases@^1.1.70: - version "1.1.70" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.70.tgz#66e0ed0273aa65666d7fe78febe7634875426a08" - integrity sha512-Slf2s69+2/uAD79pVVQo8uSiC34+g8GWY8UH2Qtqv34ZfhYrxpYpfzs9Js9d6O0mbDmALuxaTlplnBTnSELcrw== +node-releases@^1.1.71: + version "1.1.71" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.71.tgz#cb1334b179896b1c89ecfdd4b725fb7bbdfc7dbb" + integrity sha512-zR6HoT6LrLCRBwukmrVbHv0EpEQjksO6GmFcZQQuCAy139BEsoVKPYnf3jongYW83fAa1torLGYwxxky/p28sg== node-sass-tilde-importer@^1.0.2: version "1.0.2" @@ -8165,13 +7545,13 @@ normalize-package-data@^2.0.0, normalize-package-data@^2.3.0, normalize-package- validate-npm-package-license "^3.0.1" normalize-package-data@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-3.0.0.tgz#1f8a7c423b3d2e85eb36985eaf81de381d01301a" - integrity sha512-6lUjEI0d3v6kFrtgA/lOx4zHCWULXsFNIjHolnZCKCTLA6m/G625cdn3O7eNmT0iD3jfo6HZ9cdImGZwf21prw== - dependencies: - hosted-git-info "^3.0.6" - resolve "^1.17.0" - semver "^7.3.2" + version "3.0.2" + resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-3.0.2.tgz#cae5c410ae2434f9a6c1baa65d5bc3b9366c8699" + integrity sha512-6CdZocmfGaKnIHPVFhJJZ3GuR8SsLKvDANFp47Jmy51aKIr8akjAWTSxtpI+MBgBFdSMRyo4hMpDlT6dTffgZg== + dependencies: + hosted-git-info "^4.0.1" + resolve "^1.20.0" + semver "^7.3.4" validate-npm-package-license "^3.0.1" normalize-path@^2.1.1: @@ -8191,11 +7571,6 @@ normalize-range@^0.1.2: resolved "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942" integrity sha1-LRDAa9/TEuqXd2laTShDlFa3WUI= -normalize-url@^3.0.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-3.3.0.tgz#b2e1c4dc4f7c6d57743df733a4f5978d18650559" - integrity sha512-U+JJi7duF1o+u2pynbp2zXDW2/PADgC30f0GsHZtRh+HOcXHnw137TrNlyxxRvWW5fjKd3bcLHPxofWuCjaeZg== - normalize-url@^4.1.0, normalize-url@^4.5.0: version "4.5.0" resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.5.0.tgz#453354087e6ca96957bd8f5baf753f5982142129" @@ -8220,7 +7595,7 @@ npm-normalize-package-bin@^1.0.0, npm-normalize-package-bin@^1.0.1: resolved "https://registry.yarnpkg.com/npm-normalize-package-bin/-/npm-normalize-package-bin-1.0.1.tgz#6e79a41f23fd235c0623218228da7d9c23b8f6e2" integrity sha512-EPfafl6JL5/rU+ot6P3gRSCpPDW5VmIzX959Ob1+ySFUuuYHWHekXpwdUZcKP5C+DS4GEtdJluwBjnsNDl+fSA== -npm-package-arg@8.1.2, npm-package-arg@^8.1.2: +npm-package-arg@8.1.2, npm-package-arg@^8.0.0, npm-package-arg@^8.0.1, npm-package-arg@^8.1.2: version "8.1.2" resolved "https://registry.yarnpkg.com/npm-package-arg/-/npm-package-arg-8.1.2.tgz#b868016ae7de5619e729993fbd8d11dc3c52ab62" integrity sha512-6Eem455JsSMJY6Kpd3EyWE+n5hC+g9bSyHr9K9U2zqZb7+02+hObQ2c0+8iDk/mNF+8r1MhY44WypKJAkySIYA== @@ -8239,26 +7614,17 @@ npm-package-arg@8.1.2, npm-package-arg@^8.1.2: semver "^5.6.0" validate-npm-package-name "^3.0.0" -npm-package-arg@^8.0.0, npm-package-arg@^8.0.1: - version "8.1.0" - resolved "https://registry.yarnpkg.com/npm-package-arg/-/npm-package-arg-8.1.0.tgz#b5f6319418c3246a1c38e1a8fbaa06231bc5308f" - integrity sha512-/ep6QDxBkm9HvOhOg0heitSd7JHA1U7y1qhhlRlteYYAi9Pdb/ZV7FW5aHpkrpM8+P+4p/jjR8zCyKPBMBjSig== - dependencies: - hosted-git-info "^3.0.6" - semver "^7.0.0" - validate-npm-package-name "^3.0.0" - npm-packlist@^2.1.4: - version "2.1.4" - resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-2.1.4.tgz#40e96b2b43787d0546a574542d01e066640d09da" - integrity sha512-Qzg2pvXC9U4I4fLnUrBmcIT4x0woLtUgxUi9eC+Zrcv1Xx5eamytGAfbDWQ67j7xOcQ2VW1I3su9smVTIdu7Hw== + version "2.1.5" + resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-2.1.5.tgz#43ef5bbb9f59b7c0ef91e0905f1dd707b4cfb33c" + integrity sha512-KCfK3Vi2F+PH1klYauoQzg81GQ8/GGjQRKYY6tRnpQUPKTs/1gBZSRWtTEd7jGdSn1LZL7gpAmJT+BcS55k2XQ== dependencies: glob "^7.1.6" ignore-walk "^3.0.3" npm-bundled "^1.1.1" npm-normalize-package-bin "^1.0.1" -npm-pick-manifest@6.1.1: +npm-pick-manifest@6.1.1, npm-pick-manifest@^6.0.0, npm-pick-manifest@^6.1.1: version "6.1.1" resolved "https://registry.yarnpkg.com/npm-pick-manifest/-/npm-pick-manifest-6.1.1.tgz#7b5484ca2c908565f43b7f27644f36bb816f5148" integrity sha512-dBsdBtORT84S8V8UTad1WlUyKIY9iMsAmqxHbLdeEeBNMLQDlDWWra3wYUx9EBEIiG/YwAy0XyNHDd2goAsfuA== @@ -8268,15 +7634,6 @@ npm-pick-manifest@6.1.1: npm-package-arg "^8.1.2" semver "^7.3.4" -npm-pick-manifest@^6.0.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/npm-pick-manifest/-/npm-pick-manifest-6.1.0.tgz#2befed87b0fce956790f62d32afb56d7539c022a" - integrity sha512-ygs4k6f54ZxJXrzT0x34NybRlLeZ4+6nECAIbr2i0foTnijtS1TJiyzpqtuUAJOps/hO0tNDr8fRV5g+BtRlTw== - dependencies: - npm-install-checks "^4.0.0" - npm-package-arg "^8.0.0" - semver "^7.0.0" - npm-registry-client@8.6.0: version "8.6.0" resolved "https://registry.yarnpkg.com/npm-registry-client/-/npm-registry-client-8.6.0.tgz#7f1529f91450732e89f8518e0f21459deea3e4c4" @@ -8327,13 +7684,6 @@ npm-run-path@^2.0.0: gauge "~2.7.3" set-blocking "~2.0.0" -nth-check@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-1.0.2.tgz#b2bd295c37e3dd58a3bf0700376663ba4d9cf05c" - integrity sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg== - dependencies: - boolbase "~1.0.0" - nth-check@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-2.0.0.tgz#1bb4f6dac70072fc313e8c9cd1417b5074c0a125" @@ -8375,22 +7725,17 @@ object-copy@^0.1.0: define-property "^0.2.5" kind-of "^3.0.3" -object-inspect@^1.8.0, object-inspect@^1.9.0: - version "1.9.0" - resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.9.0.tgz#c90521d74e1127b67266ded3394ad6116986533a" - integrity sha512-i3Bp9iTqwhaLZBxGkRfo5ZbE07BQRT7MGu8+nNgwW9ItGp1TzCTw2DLEoWwjClxBjOFI/hWljTAmYGCEwmtnOw== - object-inspect@~1.4.0: version "1.4.1" resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.4.1.tgz#37ffb10e71adaf3748d05f713b4c9452f402cbc4" integrity sha512-wqdhLpfCUbEsoEwl3FXwGyv8ief1k/1aUdIPCqVnupM6e8l63BEJdiF/0swtn04/8p05tG/T0FrpTlfwvljOdw== object-is@^1.0.1: - version "1.1.4" - resolved "https://registry.yarnpkg.com/object-is/-/object-is-1.1.4.tgz#63d6c83c00a43f4cbc9434eb9757c8a5b8565068" - integrity sha512-1ZvAZ4wlF7IyPVOcE1Omikt7UpaFlOQq0HlSti+ZvDH3UiD2brwGMwDbyV43jao2bKJ+4+WdPJHSd7kgzKYVqg== + version "1.1.5" + resolved "https://registry.yarnpkg.com/object-is/-/object-is-1.1.5.tgz#b9deeaa5fc7f1846a0faecdceec138e5778f53ac" + integrity sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw== dependencies: - call-bind "^1.0.0" + call-bind "^1.0.2" define-properties "^1.1.3" object-keys@^1.0.12, object-keys@^1.0.6, object-keys@^1.1.1: @@ -8405,7 +7750,7 @@ object-visit@^1.0.0: dependencies: isobject "^3.0.0" -object.assign@^4.1.0, object.assign@^4.1.1, object.assign@^4.1.2: +object.assign@^4.1.0: version "4.1.2" resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.2.tgz#0ed54a342eceb37b38ff76eb831a0e788cb63940" integrity sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ== @@ -8415,15 +7760,6 @@ object.assign@^4.1.0, object.assign@^4.1.1, object.assign@^4.1.2: has-symbols "^1.0.1" object-keys "^1.1.1" -object.getownpropertydescriptors@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.1.tgz#0dfda8d108074d9c563e80490c883b6661091544" - integrity sha512-6DtXgZ/lIZ9hqx4GtZETobXLR/ZLaa0aqV0kzbn80Rf8Z2e/XFnhA0I7p07N2wH8bBBltr2xQPi6sbKWAY2Eng== - dependencies: - call-bind "^1.0.0" - define-properties "^1.1.3" - es-abstract "^1.18.0-next.1" - object.pick@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" @@ -8431,16 +7767,6 @@ object.pick@^1.3.0: dependencies: isobject "^3.0.1" -object.values@^1.1.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.2.tgz#7a2015e06fcb0f546bd652486ce8583a4731c731" - integrity sha512-MYC0jvJopr8EK6dPBiO8Nb9mvjdypOachO5REGk6MXzujbBrAisKo3HmdEI6kZDL6fC31Mwee/5YbtMebixeag== - dependencies: - call-bind "^1.0.0" - define-properties "^1.1.3" - es-abstract "^1.18.0-next.1" - has "^1.0.3" - obuf@^1.0.0, obuf@^1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/obuf/-/obuf-1.1.2.tgz#09bea3343d41859ebd446292d11c9d4db619084e" @@ -8505,7 +7831,7 @@ optionator@^0.8.1: type-check "~0.3.2" word-wrap "~1.2.3" -ora@5.4.0: +ora@5.4.0, ora@^5.0.0, ora@^5.1.0: version "5.4.0" resolved "https://registry.yarnpkg.com/ora/-/ora-5.4.0.tgz#42eda4855835b9cd14d33864c97a3c95a3f56bf4" integrity sha512-1StwyXQGoU6gdjYkyVcqOLnVlbKj+6yPNNOxJVgpt9t4eksKjiriiHuxktLYkgllwk+D6MbC4ihH84L1udRXPg== @@ -8520,20 +7846,6 @@ ora@5.4.0: strip-ansi "^6.0.0" wcwidth "^1.0.1" -ora@^5.0.0, ora@^5.1.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/ora/-/ora-5.3.0.tgz#fb832899d3a1372fe71c8b2c534bbfe74961bb6f" - integrity sha512-zAKMgGXUim0Jyd6CXK9lraBnD3H5yPGBPPOkC23a2BG6hsm4Zu6OQSjQuEtV0BHDf4aKHcUFvJiGRrFuW3MG8g== - dependencies: - bl "^4.0.3" - chalk "^4.1.0" - cli-cursor "^3.1.0" - cli-spinners "^2.5.0" - is-interactive "^1.0.0" - log-symbols "^4.0.0" - strip-ansi "^6.0.0" - wcwidth "^1.0.1" - original@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/original/-/original-1.0.2.tgz#e442a61cffe1c5fd20a65f3261c26663b303f25f" @@ -8568,9 +7880,9 @@ osenv@^0.1.4, osenv@^0.1.5: os-tmpdir "^1.0.0" p-cancelable@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-2.0.0.tgz#4a3740f5bdaf5ed5d7c3e34882c6fb5d6b266a6e" - integrity sha512-wvPXDmbMmu2ksjkB4Z3nZWTSkJEb9lqVdMaCKpZUGJG9TMiNp9XcbG3fn9fPKjem04fJMJnXoyFPk2FmgiaiNg== + version "2.1.0" + resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-2.1.0.tgz#4d51c3b91f483d02a0d300765321fca393d758dd" + integrity sha512-HAZyB3ZodPo+BDpb4/Iu7Jv4P6cSazBz9ZM0ChhEXp70scx834aWCEjQRwgt41UzzejUAPdbqqONfRWTPYrPAQ== p-defer@^1.0.0: version "1.0.0" @@ -8886,10 +8198,10 @@ performance-now@^2.1.0: resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns= -picomatch@^2.0.4, picomatch@^2.0.5, picomatch@^2.2.1, picomatch@^2.2.2: - version "2.2.2" - resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.2.tgz#21f333e9b6b8eaff02468f5146ea406d345f4dad" - integrity sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg== +picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.2.3: + version "2.2.3" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.3.tgz#465547f359ccc206d3c48e46a1bcb89bf7ee619d" + integrity sha512-KpELjfwcCDUb9PeigTs2mBJzXUPzAuP2oPcA989He8Rte0+YUAjw1JVedDhuTKPkHjSYzMN3npC9luThGYEKdg== pidtree@0.5.0, pidtree@^0.5.0: version "0.5.0" @@ -9003,15 +8315,6 @@ postcss-attribute-case-insensitive@^4.0.1: postcss "^7.0.2" postcss-selector-parser "^6.0.2" -postcss-calc@^7.0.1: - version "7.0.5" - resolved "https://registry.yarnpkg.com/postcss-calc/-/postcss-calc-7.0.5.tgz#f8a6e99f12e619c2ebc23cf6c486fdc15860933e" - integrity sha512-1tKHutbGtLtEZF6PT4JSihCHfIVldU72mZ8SdZHIYriIZ9fh9k9aWSppaT8rHsyI3dX+KSR+W+Ix9BMY3AODrg== - dependencies: - postcss "^7.0.27" - postcss-selector-parser "^6.0.2" - postcss-value-parser "^4.0.2" - postcss-calc@^8.0.0: version "8.0.0" resolved "https://registry.yarnpkg.com/postcss-calc/-/postcss-calc-8.0.0.tgz#a05b87aacd132740a5db09462a3612453e5df90a" @@ -9062,17 +8365,6 @@ postcss-color-rebeccapurple@^4.0.1: postcss "^7.0.2" postcss-values-parser "^2.0.0" -postcss-colormin@^4.0.3: - version "4.0.3" - resolved "https://registry.yarnpkg.com/postcss-colormin/-/postcss-colormin-4.0.3.tgz#ae060bce93ed794ac71264f08132d550956bd381" - integrity sha512-WyQFAdDZpExQh32j0U0feWisZ0dmOtPl44qYmJKkq9xFWY3p+4qnRzCHeNrkeRhwPHz9bQ3mo0/yVkaply0MNw== - dependencies: - browserslist "^4.0.0" - color "^3.0.0" - has "^1.0.0" - postcss "^7.0.0" - postcss-value-parser "^3.0.0" - postcss-colormin@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/postcss-colormin/-/postcss-colormin-5.0.0.tgz#283b8934c8bdbc531e7648aeb0970107f6d06d0e" @@ -9082,14 +8374,6 @@ postcss-colormin@^5.0.0: color "^3.1.1" postcss-value-parser "^4.1.0" -postcss-convert-values@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/postcss-convert-values/-/postcss-convert-values-4.0.1.tgz#ca3813ed4da0f812f9d43703584e449ebe189a7f" - integrity sha512-Kisdo1y77KUC0Jmn0OXU/COOJbzM8cImvw1ZFsBgBgMgb1iL23Zs/LXRe3r+EZqM3vGYKdQ2YJVQ5VkJI+zEJQ== - dependencies: - postcss "^7.0.0" - postcss-value-parser "^3.0.0" - postcss-convert-values@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/postcss-convert-values/-/postcss-convert-values-5.0.0.tgz#cd77e1d23ebe8fcf508640551eed08e232784cba" @@ -9128,49 +8412,21 @@ postcss-dir-pseudo-class@^5.0.0: postcss "^7.0.2" postcss-selector-parser "^5.0.0-rc.3" -postcss-discard-comments@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/postcss-discard-comments/-/postcss-discard-comments-4.0.2.tgz#1fbabd2c246bff6aaad7997b2b0918f4d7af4033" - integrity sha512-RJutN259iuRf3IW7GZyLM5Sw4GLTOH8FmsXBnv8Ab/Tc2k4SR4qbV4DNbyyY4+Sjo362SyDmW2DQ7lBSChrpkg== - dependencies: - postcss "^7.0.0" - postcss-discard-comments@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/postcss-discard-comments/-/postcss-discard-comments-5.0.0.tgz#6c27310e0657c0b9e38a6175ad001b5aa28964bc" integrity sha512-Umig6Gxs8m20RihiXY6QkePd6mp4FxkA1Dg+f/Kd6uw0gEMfKRjDeQOyFkLibexbJJGHpE3lrN/Q0R9SMrUMbQ== -postcss-discard-duplicates@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/postcss-discard-duplicates/-/postcss-discard-duplicates-4.0.2.tgz#3fe133cd3c82282e550fc9b239176a9207b784eb" - integrity sha512-ZNQfR1gPNAiXZhgENFfEglF93pciw0WxMkJeVmw8eF+JZBbMD7jp6C67GqJAXVZP2BWbOztKfbsdmMp/k8c6oQ== - dependencies: - postcss "^7.0.0" - postcss-discard-duplicates@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/postcss-discard-duplicates/-/postcss-discard-duplicates-5.0.0.tgz#6a2c4f779e8d20da6781e90730f234f9e650c51c" integrity sha512-vEJJ+Y3pFUnO1FyCBA6PSisGjHtnphL3V6GsNvkASq/VkP3OX5/No5RYXXLxHa2QegStNzg6HYrYdo71uR4caQ== -postcss-discard-empty@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/postcss-discard-empty/-/postcss-discard-empty-4.0.1.tgz#c8c951e9f73ed9428019458444a02ad90bb9f765" - integrity sha512-B9miTzbznhDjTfjvipfHoqbWKwd0Mj+/fL5s1QOz06wufguil+Xheo4XpOnc4NqKYBCNqqEzgPv2aPBIJLox0w== - dependencies: - postcss "^7.0.0" - postcss-discard-empty@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/postcss-discard-empty/-/postcss-discard-empty-5.0.0.tgz#0f0a9baee415f5f7be4ae046ba235e98626ba821" integrity sha512-+wigy099Y1xZxG36WG5L1f2zeH1oicntkJEW4TDIqKKDO2g9XVB3OhoiHTu08rDEjLnbcab4rw0BAccwi2VjiQ== -postcss-discard-overridden@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/postcss-discard-overridden/-/postcss-discard-overridden-4.0.1.tgz#652aef8a96726f029f5e3e00146ee7a4e755ff57" - integrity sha512-IYY2bEDD7g1XM1IDEsUT4//iEYCxAmP5oDSFMVU/JVvT7gh+l4fmjciLqGgwjdWpQIdb0Che2VX00QObS5+cTg== - dependencies: - postcss "^7.0.0" - postcss-discard-overridden@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/postcss-discard-overridden/-/postcss-discard-overridden-5.0.0.tgz#ac00f695a60001eda52135a11fac87376b8da9ee" @@ -9238,11 +8494,10 @@ postcss-import@14.0.1: resolve "^1.1.7" postcss-initial@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/postcss-initial/-/postcss-initial-3.0.2.tgz#f018563694b3c16ae8eaabe3c585ac6319637b2d" - integrity sha512-ugA2wKonC0xeNHgirR4D3VWHs2JcU08WAi1KFLVcnb7IN89phID6Qtg2RIctWbnvp1TM2BOmDtX8GGLCKdR8YA== + version "3.0.4" + resolved "https://registry.yarnpkg.com/postcss-initial/-/postcss-initial-3.0.4.tgz#9d32069a10531fe2ecafa0b6ac750ee0bc7efc53" + integrity sha512-3RLn6DIpMsK1l5UUy9jxQvoDeUN4gP939tDcKUHD/kM8SGSKbFAnvkpFpj3Bhtz3HGk1jWY5ZNWX6mPta5M9fg== dependencies: - lodash.template "^4.5.0" postcss "^7.0.2" postcss-lab-function@^2.0.1: @@ -9277,16 +8532,6 @@ postcss-media-minmax@^4.0.0: dependencies: postcss "^7.0.2" -postcss-merge-longhand@^4.0.11: - version "4.0.11" - resolved "https://registry.yarnpkg.com/postcss-merge-longhand/-/postcss-merge-longhand-4.0.11.tgz#62f49a13e4a0ee04e7b98f42bb16062ca2549e24" - integrity sha512-alx/zmoeXvJjp7L4mxEMjh8lxVlDFX1gqWHzaaQewwMZiVhLo42TEClKaeHbRf6J7j82ZOdTJ808RtN0ZOZwvw== - dependencies: - css-color-names "0.0.4" - postcss "^7.0.0" - postcss-value-parser "^3.0.0" - stylehacks "^4.0.0" - postcss-merge-longhand@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/postcss-merge-longhand/-/postcss-merge-longhand-5.0.0.tgz#103dee28c55491df727f17d7b8e91e93e7a472ee" @@ -9296,18 +8541,6 @@ postcss-merge-longhand@^5.0.0: postcss-value-parser "^4.1.0" stylehacks "^5.0.0" -postcss-merge-rules@^4.0.3: - version "4.0.3" - resolved "https://registry.yarnpkg.com/postcss-merge-rules/-/postcss-merge-rules-4.0.3.tgz#362bea4ff5a1f98e4075a713c6cb25aefef9a650" - integrity sha512-U7e3r1SbvYzO0Jr3UT/zKBVgYYyhAz0aitvGIYOYK5CPmkNih+WDSsS5tvPrJ8YMQYlEMvsZIiqmn7HdFUaeEQ== - dependencies: - browserslist "^4.0.0" - caniuse-api "^3.0.0" - cssnano-util-same-parent "^4.0.0" - postcss "^7.0.0" - postcss-selector-parser "^3.0.0" - vendors "^1.0.0" - postcss-merge-rules@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/postcss-merge-rules/-/postcss-merge-rules-5.0.0.tgz#e0d0c0d45c98376f4adb49eb1f1dfe2aebfd7048" @@ -9319,14 +8552,6 @@ postcss-merge-rules@^5.0.0: postcss-selector-parser "^6.0.4" vendors "^1.0.3" -postcss-minify-font-values@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/postcss-minify-font-values/-/postcss-minify-font-values-4.0.2.tgz#cd4c344cce474343fac5d82206ab2cbcb8afd5a6" - integrity sha512-j85oO6OnRU9zPf04+PZv1LYIYOprWm6IA6zkXkrJXyRveDEuQggG6tvoy8ir8ZwjLxLuGfNkCZEQG7zan+Hbtg== - dependencies: - postcss "^7.0.0" - postcss-value-parser "^3.0.0" - postcss-minify-font-values@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/postcss-minify-font-values/-/postcss-minify-font-values-5.0.0.tgz#fee5d0fa192fae8757cb744870a0ad02be5f402e" @@ -9334,16 +8559,6 @@ postcss-minify-font-values@^5.0.0: dependencies: postcss-value-parser "^4.1.0" -postcss-minify-gradients@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/postcss-minify-gradients/-/postcss-minify-gradients-4.0.2.tgz#93b29c2ff5099c535eecda56c4aa6e665a663471" - integrity sha512-qKPfwlONdcf/AndP1U8SJ/uzIJtowHlMaSioKzebAXSG4iJthlWC9iSWznQcX4f66gIWX44RSA841HTHj3wK+Q== - dependencies: - cssnano-util-get-arguments "^4.0.0" - is-color-stop "^1.0.0" - postcss "^7.0.0" - postcss-value-parser "^3.0.0" - postcss-minify-gradients@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/postcss-minify-gradients/-/postcss-minify-gradients-5.0.0.tgz#95dbe61567a45c0cd7ab897d78fb65d5096844ed" @@ -9353,18 +8568,6 @@ postcss-minify-gradients@^5.0.0: is-color-stop "^1.1.0" postcss-value-parser "^4.1.0" -postcss-minify-params@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/postcss-minify-params/-/postcss-minify-params-4.0.2.tgz#6b9cef030c11e35261f95f618c90036d680db874" - integrity sha512-G7eWyzEx0xL4/wiBBJxJOz48zAKV2WG3iZOqVhPet/9geefm/Px5uo1fzlHu+DOjT+m0Mmiz3jkQzVHe6wxAWg== - dependencies: - alphanum-sort "^1.0.0" - browserslist "^4.0.0" - cssnano-util-get-arguments "^4.0.0" - postcss "^7.0.0" - postcss-value-parser "^3.0.0" - uniqs "^2.0.0" - postcss-minify-params@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/postcss-minify-params/-/postcss-minify-params-5.0.0.tgz#12c7f75d69b0b4827fafbd6649970a53784a9c24" @@ -9376,16 +8579,6 @@ postcss-minify-params@^5.0.0: postcss-value-parser "^4.1.0" uniqs "^2.0.0" -postcss-minify-selectors@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/postcss-minify-selectors/-/postcss-minify-selectors-4.0.2.tgz#e2e5eb40bfee500d0cd9243500f5f8ea4262fbd8" - integrity sha512-D5S1iViljXBj9kflQo4YutWnJmwm8VvIsU1GeXJGiG9j8CIg9zs4voPMdQDUmIxetUOh60VilsNzCiAFTOqu3g== - dependencies: - alphanum-sort "^1.0.0" - has "^1.0.0" - postcss "^7.0.0" - postcss-selector-parser "^3.0.0" - postcss-minify-selectors@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/postcss-minify-selectors/-/postcss-minify-selectors-5.0.0.tgz#d3e43d97fd0ba83ba0010950fc5acfa420f7caa9" @@ -9429,27 +8622,11 @@ postcss-nesting@^7.0.0: dependencies: postcss "^7.0.2" -postcss-normalize-charset@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/postcss-normalize-charset/-/postcss-normalize-charset-4.0.1.tgz#8b35add3aee83a136b0471e0d59be58a50285dd4" - integrity sha512-gMXCrrlWh6G27U0hF3vNvR3w8I1s2wOBILvA87iNXaPvSNo5uZAMYsZG7XjCUf1eVxuPfyL4TJ7++SGZLc9A3g== - dependencies: - postcss "^7.0.0" - postcss-normalize-charset@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/postcss-normalize-charset/-/postcss-normalize-charset-5.0.0.tgz#59e1fe2094fb2e3371cc5b054cbc39828a41a710" integrity sha512-pqsCkgo9KmQP0ew6DqSA+uP9YN6EfsW20pQ3JU5JoQge09Z6Too4qU0TNDsTNWuEaP8SWsMp+19l15210MsDZQ== -postcss-normalize-display-values@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/postcss-normalize-display-values/-/postcss-normalize-display-values-4.0.2.tgz#0dbe04a4ce9063d4667ed2be476bb830c825935a" - integrity sha512-3F2jcsaMW7+VtRMAqf/3m4cPFhPD3EFRgNs18u+k3lTJJlVe7d0YPO+bnwqo2xg8YiRpDXJI2u8A0wqJxMsQuQ== - dependencies: - cssnano-util-get-match "^4.0.0" - postcss "^7.0.0" - postcss-value-parser "^3.0.0" - postcss-normalize-display-values@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/postcss-normalize-display-values/-/postcss-normalize-display-values-5.0.0.tgz#4ff2d3b3b5146a366de28ec9e24131a1868f1933" @@ -9458,16 +8635,6 @@ postcss-normalize-display-values@^5.0.0: cssnano-utils "^2.0.0" postcss-value-parser "^4.1.0" -postcss-normalize-positions@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/postcss-normalize-positions/-/postcss-normalize-positions-4.0.2.tgz#05f757f84f260437378368a91f8932d4b102917f" - integrity sha512-Dlf3/9AxpxE+NF1fJxYDeggi5WwV35MXGFnnoccP/9qDtFrTArZ0D0R+iKcg5WsUd8nUYMIl8yXDCtcrT8JrdA== - dependencies: - cssnano-util-get-arguments "^4.0.0" - has "^1.0.0" - postcss "^7.0.0" - postcss-value-parser "^3.0.0" - postcss-normalize-positions@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/postcss-normalize-positions/-/postcss-normalize-positions-5.0.0.tgz#fe1d9a8122dd385b9c6908bd2008140dea17750d" @@ -9475,16 +8642,6 @@ postcss-normalize-positions@^5.0.0: dependencies: postcss-value-parser "^4.1.0" -postcss-normalize-repeat-style@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-4.0.2.tgz#c4ebbc289f3991a028d44751cbdd11918b17910c" - integrity sha512-qvigdYYMpSuoFs3Is/f5nHdRLJN/ITA7huIoCyqqENJe9PvPmLhNLMu7QTjPdtnVf6OcYYO5SHonx4+fbJE1+Q== - dependencies: - cssnano-util-get-arguments "^4.0.0" - cssnano-util-get-match "^4.0.0" - postcss "^7.0.0" - postcss-value-parser "^3.0.0" - postcss-normalize-repeat-style@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.0.0.tgz#e11d88fbf63f89179c6a7391853b2fe7f46e589d" @@ -9493,15 +8650,6 @@ postcss-normalize-repeat-style@^5.0.0: cssnano-utils "^2.0.0" postcss-value-parser "^4.1.0" -postcss-normalize-string@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/postcss-normalize-string/-/postcss-normalize-string-4.0.2.tgz#cd44c40ab07a0c7a36dc5e99aace1eca4ec2690c" - integrity sha512-RrERod97Dnwqq49WNz8qo66ps0swYZDSb6rM57kN2J+aoyEAJfZ6bMx0sx/F9TIEX0xthPGCmeyiam/jXif0eA== - dependencies: - has "^1.0.0" - postcss "^7.0.0" - postcss-value-parser "^3.0.0" - postcss-normalize-string@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/postcss-normalize-string/-/postcss-normalize-string-5.0.0.tgz#2ea08ff4cb8817ce160755e9fdc7e6ef6d495002" @@ -9509,15 +8657,6 @@ postcss-normalize-string@^5.0.0: dependencies: postcss-value-parser "^4.1.0" -postcss-normalize-timing-functions@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-4.0.2.tgz#8e009ca2a3949cdaf8ad23e6b6ab99cb5e7d28d9" - integrity sha512-acwJY95edP762e++00Ehq9L4sZCEcOPyaHwoaFOhIwWCDfik6YvqsYNxckee65JHLKzuNSSmAdxwD2Cud1Z54A== - dependencies: - cssnano-util-get-match "^4.0.0" - postcss "^7.0.0" - postcss-value-parser "^3.0.0" - postcss-normalize-timing-functions@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.0.0.tgz#380eb1c9b179f96efc307c659a8049116f16f381" @@ -9526,15 +8665,6 @@ postcss-normalize-timing-functions@^5.0.0: cssnano-utils "^2.0.0" postcss-value-parser "^4.1.0" -postcss-normalize-unicode@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/postcss-normalize-unicode/-/postcss-normalize-unicode-4.0.1.tgz#841bd48fdcf3019ad4baa7493a3d363b52ae1cfb" - integrity sha512-od18Uq2wCYn+vZ/qCOeutvHjB5jm57ToxRaMeNuf0nWVHaP9Hua56QyMF6fs/4FSUnVIw0CBPsU0K4LnBPwYwg== - dependencies: - browserslist "^4.0.0" - postcss "^7.0.0" - postcss-value-parser "^3.0.0" - postcss-normalize-unicode@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/postcss-normalize-unicode/-/postcss-normalize-unicode-5.0.0.tgz#aa46a89c86ae51a01cbca13e73c1ed7b0b38807e" @@ -9543,16 +8673,6 @@ postcss-normalize-unicode@^5.0.0: browserslist "^4.16.0" postcss-value-parser "^4.1.0" -postcss-normalize-url@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/postcss-normalize-url/-/postcss-normalize-url-4.0.1.tgz#10e437f86bc7c7e58f7b9652ed878daaa95faae1" - integrity sha512-p5oVaF4+IHwu7VpMan/SSpmpYxcJMtkGppYf0VbdH5B6hN8YNmVyJLuY9FmLQTzY3fag5ESUUHDqM+heid0UVA== - dependencies: - is-absolute-url "^2.0.0" - normalize-url "^3.0.0" - postcss "^7.0.0" - postcss-value-parser "^3.0.0" - postcss-normalize-url@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/postcss-normalize-url/-/postcss-normalize-url-5.0.0.tgz#626a4c7d30007f94466cdf245e7ed9f253f1dbd9" @@ -9562,14 +8682,6 @@ postcss-normalize-url@^5.0.0: normalize-url "^4.5.0" postcss-value-parser "^4.1.0" -postcss-normalize-whitespace@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/postcss-normalize-whitespace/-/postcss-normalize-whitespace-4.0.2.tgz#bf1d4070fe4fcea87d1348e825d8cc0c5faa7d82" - integrity sha512-tO8QIgrsI3p95r8fyqKV+ufKlSHh9hMJqACqbv2XknufqEDhDvbguXGBBqxw9nsQoXWf0qOqppziKJKHMD4GtA== - dependencies: - postcss "^7.0.0" - postcss-value-parser "^3.0.0" - postcss-normalize-whitespace@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.0.0.tgz#1faf147a4f8d3d93a3c75109d120b4eefa00589b" @@ -9577,15 +8689,6 @@ postcss-normalize-whitespace@^5.0.0: dependencies: postcss-value-parser "^4.1.0" -postcss-ordered-values@^4.1.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/postcss-ordered-values/-/postcss-ordered-values-4.1.2.tgz#0cf75c820ec7d5c4d280189559e0b571ebac0eee" - integrity sha512-2fCObh5UanxvSxeXrtLtlwVThBvHn6MQcu4ksNT2tsaV2Fg76R2CV98W7wNSlX+5/pFwEyaDwKLLoEV7uRybAw== - dependencies: - cssnano-util-get-arguments "^4.0.0" - postcss "^7.0.0" - postcss-value-parser "^3.0.0" - postcss-ordered-values@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/postcss-ordered-values/-/postcss-ordered-values-5.0.0.tgz#a50f224c5f40c566b338b0663655478737dcebee" @@ -9616,7 +8719,7 @@ postcss-place@^4.0.1: postcss "^7.0.2" postcss-values-parser "^2.0.0" -postcss-preset-env@6.7.0: +postcss-preset-env@6.7.0, postcss-preset-env@^6.7.0: version "6.7.0" resolved "https://registry.yarnpkg.com/postcss-preset-env/-/postcss-preset-env-6.7.0.tgz#c34ddacf8f902383b35ad1e030f178f4cdf118a5" integrity sha512-eU4/K5xzSFwUFJ8hTdTQzo2RBLbDVt83QZrAvI07TULOkmyQlnYlpwep+2yIK+K+0KlZO4BvFcleOCCcUtwchg== @@ -9667,16 +8770,6 @@ postcss-pseudo-class-any-link@^6.0.0: postcss "^7.0.2" postcss-selector-parser "^5.0.0-rc.3" -postcss-reduce-initial@^4.0.3: - version "4.0.3" - resolved "https://registry.yarnpkg.com/postcss-reduce-initial/-/postcss-reduce-initial-4.0.3.tgz#7fd42ebea5e9c814609639e2c2e84ae270ba48df" - integrity sha512-gKWmR5aUulSjbzOfD9AlJiHCGH6AEVLaM0AV+aSioxUDd16qXP1PCh8d1/BGVvpdWn8k/HiK7n6TjeoXN1F7DA== - dependencies: - browserslist "^4.0.0" - caniuse-api "^3.0.0" - has "^1.0.0" - postcss "^7.0.0" - postcss-reduce-initial@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/postcss-reduce-initial/-/postcss-reduce-initial-5.0.0.tgz#c724e5513b0ae7f3d7bff16f0fc82133fb2f820a" @@ -9685,16 +8778,6 @@ postcss-reduce-initial@^5.0.0: browserslist "^4.16.0" caniuse-api "^3.0.0" -postcss-reduce-transforms@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/postcss-reduce-transforms/-/postcss-reduce-transforms-4.0.2.tgz#17efa405eacc6e07be3414a5ca2d1074681d4e29" - integrity sha512-EEVig1Q2QJ4ELpJXMZR8Vt5DQx8/mo+dGWSR7vWXqcob2gQLyQGsionYcGKATXvQzMPn6DSN1vTN7yFximdIAg== - dependencies: - cssnano-util-get-match "^4.0.0" - has "^1.0.0" - postcss "^7.0.0" - postcss-value-parser "^3.0.0" - postcss-reduce-transforms@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/postcss-reduce-transforms/-/postcss-reduce-transforms-5.0.0.tgz#5c820f71fbd4eec82b323523642b7b2d1c7d29ef" @@ -9726,7 +8809,7 @@ postcss-selector-not@^4.0.0: balanced-match "^1.0.0" postcss "^7.0.2" -postcss-selector-parser@^3.0.0, postcss-selector-parser@^3.1.2: +postcss-selector-parser@^3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-3.1.2.tgz#b310f5c4c0fdaf76f94902bbaa30db6aa84f5270" integrity sha512-h7fJ/5uWuRVyOtkO45pnt1Ih40CEleeyCHzipqAZO2e5H20g25Y48uYnFUiShvY4rZWNJ/Bib/KVPmanaCtOhA== @@ -9745,25 +8828,13 @@ postcss-selector-parser@^5.0.0-rc.3, postcss-selector-parser@^5.0.0-rc.4: uniq "^1.0.1" postcss-selector-parser@^6.0.2, postcss-selector-parser@^6.0.4: - version "6.0.4" - resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.0.4.tgz#56075a1380a04604c38b063ea7767a129af5c2b3" - integrity sha512-gjMeXBempyInaBqpp8gODmwZ52WaYsVOsfr4L4lDQ7n3ncD6mEyySiDtgzCT+NYC0mmeOLvtsF8iaEf0YT6dBw== + version "6.0.5" + resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.0.5.tgz#042d74e137db83e6f294712096cb413f5aa612c4" + integrity sha512-aFYPoYmXbZ1V6HZaSvat08M97A8HqO6Pjz+PiNpw/DhuRrC72XWAdp3hL6wusDCN31sSmcZyMGa2hZEuX+Xfhg== dependencies: cssesc "^3.0.0" - indexes-of "^1.0.1" - uniq "^1.0.1" util-deprecate "^1.0.2" -postcss-svgo@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/postcss-svgo/-/postcss-svgo-4.0.2.tgz#17b997bc711b333bab143aaed3b8d3d6e3d38258" - integrity sha512-C6wyjo3VwFm0QgBy+Fu7gCYOkCmgmClghO+pjcxvrcBKtiKt0uCF+hvbMO1fyv5BMImRK90SMb+dwUnfbGd+jw== - dependencies: - is-svg "^3.0.0" - postcss "^7.0.0" - postcss-value-parser "^3.0.0" - svgo "^1.0.0" - postcss-svgo@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/postcss-svgo/-/postcss-svgo-5.0.0.tgz#c8d806e573394ab24f1e233cac5be4c199e9f1b2" @@ -9772,15 +8843,6 @@ postcss-svgo@^5.0.0: postcss-value-parser "^4.1.0" svgo "^2.3.0" -postcss-unique-selectors@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/postcss-unique-selectors/-/postcss-unique-selectors-4.0.1.tgz#9446911f3289bfd64c6d680f073c03b1f9ee4bac" - integrity sha512-+JanVaryLo9QwZjKrmJgkI4Fn8SBgRO6WXQBJi7KiAVPlmxikB5Jzc4EvXMT2H0/m0RjrVVm9rGNhZddm/8Spg== - dependencies: - alphanum-sort "^1.0.0" - postcss "^7.0.0" - uniqs "^2.0.0" - postcss-unique-selectors@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/postcss-unique-selectors/-/postcss-unique-selectors-5.0.0.tgz#17856278f6c38d024defc9694d568bb09dd7f771" @@ -9791,19 +8853,14 @@ postcss-unique-selectors@^5.0.0: uniqs "^2.0.0" postcss-url@^10.1.1: - version "10.1.1" - resolved "https://registry.yarnpkg.com/postcss-url/-/postcss-url-10.1.1.tgz#f58b4ec684a7b662c170357150eddcbc04cefa24" - integrity sha512-cYeRNcXUMiM1sr3UgHkY+zMuqhSmJaLeP3VOZWWqShBDMB10DlrK5KfciLK0LGr7xKDPP5nH7Q2odvDHQSrP9A== + version "10.1.3" + resolved "https://registry.yarnpkg.com/postcss-url/-/postcss-url-10.1.3.tgz#54120cc910309e2475ec05c2cfa8f8a2deafdf1e" + integrity sha512-FUzyxfI5l2tKmXdYc6VTu3TWZsInayEKPbiyW+P6vmmIrrb4I6CGX0BFoewgYHLK+oIL5FECEK02REYRpBvUCw== dependencies: - make-dir "3.1.0" - mime "2.4.6" - minimatch "3.0.4" - xxhashjs "0.2.2" - -postcss-value-parser@^3.0.0: - version "3.3.1" - resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz#9ff822547e2893213cf1c30efa51ac5fd1ba8281" - integrity sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ== + make-dir "~3.1.0" + mime "~2.5.2" + minimatch "~3.0.4" + xxhashjs "~0.2.2" postcss-value-parser@^4.0.0, postcss-value-parser@^4.0.2, postcss-value-parser@^4.1.0: version "4.1.0" @@ -9819,7 +8876,7 @@ postcss-values-parser@^2.0.0, postcss-values-parser@^2.0.1: indexes-of "^1.0.1" uniq "^1.0.1" -"postcss@5 - 7", postcss@7.x.x, postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.14, postcss@^7.0.17, postcss@^7.0.2, postcss@^7.0.27, postcss@^7.0.32, postcss@^7.0.5, postcss@^7.0.6: +"postcss@5 - 7", postcss@7.x.x, postcss@^7.0.14, postcss@^7.0.17, postcss@^7.0.2, postcss@^7.0.32, postcss@^7.0.5, postcss@^7.0.6: version "7.0.35" resolved "https://registry.yarnpkg.com/postcss/-/postcss-7.0.35.tgz#d2be00b998f7f211d8a276974079f2e92b970e24" integrity sha512-3QT8bBJeX/S5zKTTjTCIjRF3If4avAT6kqxcASlTWEtAFCb9NH0OUxNDfgZSWdP5fJnBYCMEWkIFfWeugjzYMg== @@ -9837,7 +8894,7 @@ postcss@7.0.21: source-map "^0.6.1" supports-color "^6.1.0" -postcss@8.2.10, postcss@^8.2.10: +postcss@8.2.10, postcss@^8.2.10, postcss@^8.2.4: version "8.2.10" resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.2.10.tgz#ca7a042aa8aff494b334d0ff3e9e77079f6f702b" integrity sha512-b/h7CPV7QEdrqIxtAf2j31U5ef05uBDuvoXv6L51Q4rcS1jdlXAVKJv+atCFdUXYl9dyTHGyoMzIepwowRJjFw== @@ -9846,15 +8903,6 @@ postcss@8.2.10, postcss@^8.2.10: nanoid "^3.1.22" source-map "^0.6.1" -postcss@^8.2.4: - version "8.2.6" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.2.6.tgz#5d69a974543b45f87e464bc4c3e392a97d6be9fe" - integrity sha512-xpB8qYxgPuly166AGlpRjUdEYtmOWx2iCwGmrv4vqZL9YPVviDVPZPRXxnXr6xPZOdxQ9lp3ZBFCRgWJ7LE3Sg== - dependencies: - colorette "^1.2.1" - nanoid "^3.1.20" - source-map "^0.6.1" - prelude-ls@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" @@ -9871,9 +8919,9 @@ prettier@^2.0.0: integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q== pretty-bytes@^5.3.0: - version "5.5.0" - resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-5.5.0.tgz#0cecda50a74a941589498011cf23275aa82b339e" - integrity sha512-p+T744ZyjjiaFlMUZZv6YPC5JrkNj8maRmPaQCWFJFplUAzpIUTRaTcS+7wmZtUoFXHtESJb23ISliaWyz3SHA== + version "5.6.0" + resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-5.6.0.tgz#356256f643804773c82f64723fe78c92c62beaeb" + integrity sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg== pretty-ms@^5.0.0: version "5.1.0" @@ -9973,11 +9021,6 @@ psl@^1.1.24, psl@^1.1.28: resolved "https://registry.yarnpkg.com/psl/-/psl-1.8.0.tgz#9326f8bcfb013adcc005fdff056acce020e51c24" integrity sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ== -puka@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/puka/-/puka-1.0.1.tgz#a2df782b7eb4cf9564e4c93a5da422de0dfacc02" - integrity sha512-ssjRZxBd7BT3dte1RR3VoeT2cT/ODH8x+h0rUF1rMqB0srHYf48stSDWfiYakTp5UBZMxroZhB2+ExLDHm7W3g== - pump@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64" @@ -10024,7 +9067,7 @@ q@1.4.1: resolved "https://registry.yarnpkg.com/q/-/q-1.4.1.tgz#55705bcd93c5f3673530c2c2cbc0c2b3addc286e" integrity sha1-VXBbzZPF82c1MMLCy8DCs63cKG4= -q@^1.1.2, q@^1.4.1, q@^1.5.1: +q@^1.4.1, q@^1.5.1: version "1.5.1" resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7" integrity sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc= @@ -10055,9 +9098,9 @@ querystringify@^2.1.1: integrity sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ== queue-microtask@^1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.2.tgz#abf64491e6ecf0f38a6502403d4cda04f372dfd3" - integrity sha512-dB15eXv3p2jDlbOiNLyMabYg1/sXvppd8DP2J3EOCQ0AkuSXCW2tP7mnVouVLJKgUMY6yP0kcQDVpLCN13h4Xg== + version "1.2.3" + resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" + integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== quick-format-unescaped@4.0.1: version "4.0.1" @@ -10148,9 +9191,9 @@ read-installed@~4.0.3: graceful-fs "^4.1.2" read-package-json-fast@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/read-package-json-fast/-/read-package-json-fast-2.0.1.tgz#c767f6c634873ffb6bb73788191b65559734f555" - integrity sha512-bp6z0tdgLy9KzdfENDIw/53HWAolOVoQTRWXv7PUiqAo3YvvoUVeLr7RWPWq+mu7KUOu9kiT4DvxhUgNUBsvug== + version "2.0.2" + resolved "https://registry.yarnpkg.com/read-package-json-fast/-/read-package-json-fast-2.0.2.tgz#2dcb24d9e8dd50fb322042c8c35a954e6cc7ac9e" + integrity sha512-5fyFUyO9B799foVk4n6ylcoAktG/FbE3jwRKxvwaeSrIunaoMc0u81dzXxjeAFKOce7O5KncdfwpGvvs6r5PsQ== dependencies: json-parse-even-better-errors "^2.3.0" npm-normalize-package-bin "^1.0.1" @@ -10370,9 +9413,9 @@ regjsgen@^0.5.1: integrity sha512-OFFT3MfrH90xIW8OOSyUrk6QHD5E9JOTeGodiJeBS3J6IwlgzJMNE/1bZklWz5oTg+9dCMyEetclvCVXOPoN3A== regjsparser@^0.6.4: - version "0.6.7" - resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.6.7.tgz#c00164e1e6713c2e3ee641f1701c4b7aa0a7f86c" - integrity sha512-ib77G0uxsA2ovgiYbCVGx4Pv3PSttAx2vIwidqQzbL2U5S4Q+j00HdSAneSBuyVcMvEnTXMjiGgB+DlXozVhpQ== + version "0.6.9" + resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.6.9.tgz#b489eef7c9a2ce43727627011429cf833a7183e6" + integrity sha512-ZqbNRz1SNjLAiYuwY0zoXW8Ne675IX5q+YHioAGbCw4X96Mjl2+dcX9B2ciaeyYjViDAfvIjFpQjJgLttTEERQ== dependencies: jsesc "~0.5.0" @@ -10382,9 +9425,9 @@ remove-trailing-separator@^1.0.1: integrity sha1-wkvOKig62tW8P1jg1IJJuSN52O8= repeat-element@^1.1.2: - version "1.1.3" - resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.3.tgz#782e0d825c0c5a3bb39731f84efee6b742e6b1ce" - integrity sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g== + version "1.1.4" + resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.4.tgz#be681520847ab58c7568ac75fbfad28ed42d39e9" + integrity sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ== repeat-string@^1.6.1: version "1.6.1" @@ -10524,7 +9567,7 @@ resolve-url@^0.2.1: resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo= -resolve@1.20.0, resolve@^1.1.5, resolve@^1.1.6, resolve@^1.1.7, resolve@^1.10.0, resolve@^1.14.2, resolve@^1.17.0, resolve@^1.19.0, resolve@^1.3.2: +resolve@1.20.0, resolve@^1.1.5, resolve@^1.1.6, resolve@^1.1.7, resolve@^1.10.0, resolve@^1.14.2, resolve@^1.17.0, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.3.2: version "1.20.0" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975" integrity sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A== @@ -10581,9 +9624,9 @@ rework@1.0.1: css "^2.0.0" rfdc@^1.1.4: - version "1.2.0" - resolved "https://registry.yarnpkg.com/rfdc/-/rfdc-1.2.0.tgz#9e9894258f48f284b43c3143c68070a4f373b949" - integrity sha512-ijLyszTMmUrXvjSooucVQwimGUk84eRcmCuLV8Xghe3UO85mjUtRAHRyoMM6XtyqbECaXuBWx18La3523sXINA== + version "1.3.0" + resolved "https://registry.yarnpkg.com/rfdc/-/rfdc-1.3.0.tgz#d0b7c441ab2720d05dc4cf26e01c89631d9da08b" + integrity sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA== rgb-regex@^1.0.1: version "1.0.1" @@ -10632,9 +9675,9 @@ rollup-plugin-sourcemaps@^0.6.3: source-map-resolve "^0.6.0" rollup@^2.37.0: - version "2.39.0" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.39.0.tgz#be4f98c9e421793a8fec82c854fb567c35e22ab6" - integrity sha512-+WR3bttcq7zE+BntH09UxaW3bQo3vItuYeLsyk4dL2tuwbeSKJuvwiawyhEnvRdRgrII0Uzk00FpctHO/zB1kw== + version "2.45.2" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.45.2.tgz#8fb85917c9f35605720e92328f3ccbfba6f78b48" + integrity sha512-kRRU7wXzFHUzBIv0GfoFFIN3m9oteY4uAsKllIpQDId5cfnkWF2J130l+27dzDju0E6MScKiV0ZM5Bw8m4blYQ== optionalDependencies: fsevents "~2.3.1" @@ -10650,27 +9693,13 @@ run-parallel@^1.1.9: dependencies: queue-microtask "^1.2.2" -rxjs@6.6.7: +rxjs@6.6.7, rxjs@^6.4.0, rxjs@^6.5.0, rxjs@^6.5.3, rxjs@^6.6.6: version "6.6.7" resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9" integrity sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ== dependencies: tslib "^1.9.0" -rxjs@^6.4.0, rxjs@^6.5.0, rxjs@^6.5.3: - version "6.6.3" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.3.tgz#8ca84635c4daa900c0d3967a6ee7ac60271ee552" - integrity sha512-trsQc+xYYXZ3urjOiJOuCOa5N3jAZ3eiSpQB5hIT8zGlL2QfnHLJ2r7GMkBGuIausdJN1OneaI6gQlsqNHHmZQ== - dependencies: - tslib "^1.9.0" - -rxjs@^6.6.6: - version "6.6.6" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.6.tgz#14d8417aa5a07c5e633995b525e1e3c0dec03b70" - integrity sha512-/oTwee4N4iWzAMAL9xdGKjkEHmIwupR3oXbQjCKywF1BeFohswF3vZdogbmEF6pZkOsXTzWkrZszrWpQTByYVg== - dependencies: - tslib "^1.9.0" - safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: version "5.1.2" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" @@ -10709,14 +9738,15 @@ sass@1.32.10: chokidar ">=3.0.0 <4.0.0" sass@^1.32.5: - version "1.32.7" - resolved "https://registry.yarnpkg.com/sass/-/sass-1.32.7.tgz#632a9df2b85dc4b346977fcaf2d5e6f2b7039fd8" - integrity sha512-C8Z4bjqGWnsYa11o8hpKAuoyFdRhrSHcYjCr+XAWVPSIQqC8mp2f5Dx4em0dKYehPzg5XSekmCjqJnEZbIls9A== + version "1.32.11" + resolved "https://registry.yarnpkg.com/sass/-/sass-1.32.11.tgz#b236b3ea55c76602c2ef2bd0445f0db581baa218" + integrity sha512-O9tRcob/fegUVSIV1ihLLZcftIOh0AF1VpKgusUfLqnb2jQ0GLDwI5ivv1FYWivGv8eZ/AwntTyTzjcHu0c/qw== dependencies: - chokidar ">=2.0.0 <4.0.0" + chokidar ">=3.0.0 <4.0.0" "sauce-connect-proxy@https://saucelabs.com/downloads/sc-4.6.4-linux.tar.gz": version "0.0.0" + uid "992e2cb0d91e54b27a4f5bbd2049f3b774718115" resolved "https://saucelabs.com/downloads/sc-4.6.4-linux.tar.gz#992e2cb0d91e54b27a4f5bbd2049f3b774718115" saucelabs@^1.5.0: @@ -10824,14 +9854,14 @@ semver@7.0.0: resolved "https://registry.yarnpkg.com/semver/-/semver-7.0.0.tgz#5f3ca35761e47e05b206c6daff2cf814f0316b8e" integrity sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A== -semver@7.3.4, semver@^7.0.0, semver@^7.1.1, semver@^7.3.2, semver@^7.3.4: +semver@7.3.4: version "7.3.4" resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.4.tgz#27aaa7d2e4ca76452f98d3add093a72c943edc97" integrity sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw== dependencies: lru-cache "^6.0.0" -semver@7.3.5, semver@^7.3.5: +semver@7.3.5, semver@^7.1.1, semver@^7.3.2, semver@^7.3.4, semver@^7.3.5: version "7.3.5" resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.5.tgz#0b621c879348d8998e4b0e4be94b3f12e6018ef7" integrity sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ== @@ -11044,13 +10074,13 @@ socket.io-parser@~4.0.3: debug "~4.3.1" socket.io@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/socket.io/-/socket.io-3.1.1.tgz#905e3d4a3b37d8e7970e67a4a6eb81110a5778ba" - integrity sha512-7cBWdsDC7bbyEF6WbBqffjizc/H4YF1wLdZoOzuYfo2uMNSFjJKuQ36t0H40o9B20DO6p+mSytEd92oP4S15bA== + version "3.1.2" + resolved "https://registry.yarnpkg.com/socket.io/-/socket.io-3.1.2.tgz#06e27caa1c4fc9617547acfbb5da9bc1747da39a" + integrity sha512-JubKZnTQ4Z8G4IZWtaAZSiRP3I/inpy8c/Bsx2jrwGrTbKeVU5xd6qkKMHpChYeM3dWZSO0QACiGK+obhBNwYw== dependencies: "@types/cookie" "^0.4.0" "@types/cors" "^2.8.8" - "@types/node" "^14.14.10" + "@types/node" ">=10.0.0" accepts "~1.3.4" base64id "~2.0.0" debug "~4.3.1" @@ -11059,16 +10089,16 @@ socket.io@^3.1.0: socket.io-parser "~4.0.3" sockjs-client@^1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/sockjs-client/-/sockjs-client-1.5.0.tgz#2f8ff5d4b659e0d092f7aba0b7c386bd2aa20add" - integrity sha512-8Dt3BDi4FYNrCFGTL/HtwVzkARrENdwOUf1ZoW/9p3M8lZdFT35jVdrHza+qgxuG9H3/shR4cuX/X9umUrjP8Q== + version "1.5.1" + resolved "https://registry.yarnpkg.com/sockjs-client/-/sockjs-client-1.5.1.tgz#256908f6d5adfb94dabbdbd02c66362cca0f9ea6" + integrity sha512-VnVAb663fosipI/m6pqRXakEOw7nvd7TUgdr3PlR/8V2I95QIdwT8L4nMxhyU8SmDBHYXU1TOElaKOmKLfYzeQ== dependencies: debug "^3.2.6" eventsource "^1.0.7" faye-websocket "^0.11.3" inherits "^2.0.4" json3 "^3.3.3" - url-parse "^1.4.7" + url-parse "^1.5.1" sockjs@^0.3.21: version "0.3.21" @@ -11089,9 +10119,9 @@ socks-proxy-agent@^5.0.0: socks "^2.3.3" socks@^2.3.3: - version "2.5.1" - resolved "https://registry.yarnpkg.com/socks/-/socks-2.5.1.tgz#7720640b6b5ec9a07d556419203baa3f0596df5f" - integrity sha512-oZCsJJxapULAYJaEYBSzMcz8m3jqgGrHaGhkmU/o/PQfFWYWxkAaA0UMGImb6s6tEXfKi959X6VJjMMQ3P6TTQ== + version "2.6.1" + resolved "https://registry.yarnpkg.com/socks/-/socks-2.6.1.tgz#989e6534a07cf337deb1b1c94aaa44296520d30e" + integrity sha512-kLQ9N5ucj8uIcxrDwjm0Jsqk06xdpBjGNQtpXy4Q8/QY2k+fY7nZH8CARy+hkbG+SGAovmzzuauCpBlb8FrnBA== dependencies: ip "^1.1.5" smart-buffer "^4.1.0" @@ -11276,13 +10306,6 @@ split-string@^3.0.1, split-string@^3.0.2: dependencies: extend-shallow "^3.0.0" -split2@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/split2/-/split2-2.2.0.tgz#186b2575bcf83e85b7d18465756238ee4ee42493" - integrity sha512-RAb22TG39LhI31MbreBgIuKiIKhVsawfTgEGqKHTK87aG+ul/PB8Sqoi3I7kVdRWiCfrKxK3uo4/YUkpNvhPbw== - dependencies: - through2 "^2.0.2" - split2@^3.0.0: version "3.2.2" resolved "https://registry.yarnpkg.com/split2/-/split2-3.2.2.tgz#bf2cf2a37d838312c249c89206fd7a17dd12365f" @@ -11429,30 +10452,14 @@ string-width@^3.0.0, string-width@^3.1.0: strip-ansi "^5.1.0" string-width@^4.1.0, string-width@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.0.tgz#952182c46cc7b2c313d1596e623992bd163b72b5" - integrity sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg== + version "4.2.2" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.2.tgz#dafd4f9559a7585cfba529c6a0a4f73488ebd4c5" + integrity sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA== dependencies: emoji-regex "^8.0.0" is-fullwidth-code-point "^3.0.0" strip-ansi "^6.0.0" -string.prototype.trimend@^1.0.1, string.prototype.trimend@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.3.tgz#a22bd53cca5c7cf44d7c9d5c732118873d6cd18b" - integrity sha512-ayH0pB+uf0U28CtjlLvL7NaohvR1amUvVZk+y3DYb0Ey2PUV5zPkkKy9+U1ndVEIXO8hNg18eIv9Jntbii+dKw== - dependencies: - call-bind "^1.0.0" - define-properties "^1.1.3" - -string.prototype.trimstart@^1.0.1, string.prototype.trimstart@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.3.tgz#9b4cb590e123bb36564401d59824298de50fd5aa" - integrity sha512-oBIBUy5lea5tt0ovtOFiEQaBkoBBkyJhZXzJYrSmDo5IUUqbOPvVezuRs/agBIdZ2p2Eo1FD6bD9USyBLfl3xg== - dependencies: - call-bind "^1.0.0" - define-properties "^1.1.3" - string_decoder@^1.1.1: version "1.3.0" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" @@ -11541,15 +10548,6 @@ style-loader@2.0.0: loader-utils "^2.0.0" schema-utils "^3.0.0" -stylehacks@^4.0.0: - version "4.0.3" - resolved "https://registry.yarnpkg.com/stylehacks/-/stylehacks-4.0.3.tgz#6718fcaf4d1e07d8a1318690881e8d96726a71d5" - integrity sha512-7GlLk9JwlElY4Y6a/rmbH2MhVlTyVmiJd1PfTCqFaIBEGMYNsrO/v3SeGTdhBThLg4Z+NbOk/qFMwCa+J+3p/g== - dependencies: - browserslist "^4.0.0" - postcss "^7.0.0" - postcss-selector-parser "^3.0.0" - stylehacks@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/stylehacks/-/stylehacks-5.0.0.tgz#c49b0b2cf9917fe37dc030b96a4c34698b932933" @@ -11609,25 +10607,6 @@ supports-color@^7.0.0, supports-color@^7.1.0: dependencies: has-flag "^4.0.0" -svgo@^1.0.0: - version "1.3.2" - resolved "https://registry.yarnpkg.com/svgo/-/svgo-1.3.2.tgz#b6dc511c063346c9e415b81e43401145b96d4167" - integrity sha512-yhy/sQYxR5BkC98CY7o31VGsg014AKLEPxdfhora76l36hD9Rdy5NZA/Ocn6yayNPgSamYdtX2rFJdcv07AYVw== - dependencies: - chalk "^2.4.1" - coa "^2.0.2" - css-select "^2.0.0" - css-select-base-adapter "^0.1.1" - css-tree "1.0.0-alpha.37" - csso "^4.0.2" - js-yaml "^3.13.1" - mkdirp "~0.5.1" - object.values "^1.1.0" - sax "~1.2.4" - stable "^0.1.8" - unquote "~1.1.1" - util.promisify "~1.0.0" - svgo@^2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/svgo/-/svgo-2.3.0.tgz#6b3af81d0cbd1e19c83f5f63cec2cb98c70b5373" @@ -11651,13 +10630,6 @@ symbol-tree@^3.2.2: resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== -sync-rpc@^1.3.6: - version "1.3.6" - resolved "https://registry.yarnpkg.com/sync-rpc/-/sync-rpc-1.3.6.tgz#b2e8b2550a12ccbc71df8644810529deb68665a7" - integrity sha512-J8jTXuZzRlvU7HemDgHi3pGnh/rkoqR/OZSjhTyyZrEkkYQbk7Z33AXp37mkPfPpfdOuj7Ex3H/TJM1z48uPQw== - dependencies: - get-port "^3.1.0" - tapable@^2.1.1, tapable@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.0.tgz#5c373d281d9c672848213d0e037d1c4165ab426b" @@ -11731,7 +10703,7 @@ terser-webpack-plugin@^5.1.1: source-map "^0.6.1" terser "^5.5.1" -terser@5.6.1: +terser@5.6.1, terser@^5.3.4, terser@^5.5.1: version "5.6.1" resolved "https://registry.yarnpkg.com/terser/-/terser-5.6.1.tgz#a48eeac5300c0a09b36854bf90d9c26fb201973c" integrity sha512-yv9YLFQQ+3ZqgWCUk+pvNJwgUTdlIxUk1WTN+RnaFJe2L7ipG2csPT0ra2XRm7Cs8cxN7QXmK1rFzEwYEQkzXw== @@ -11740,15 +10712,6 @@ terser@5.6.1: source-map "~0.7.2" source-map-support "~0.5.19" -terser@^5.3.4, terser@^5.5.1: - version "5.6.0" - resolved "https://registry.yarnpkg.com/terser/-/terser-5.6.0.tgz#138cdf21c5e3100b1b3ddfddf720962f88badcd2" - integrity sha512-vyqLMoqadC1uR0vywqOZzriDYzgEkNJFK4q9GeyOBHIbiECHiWLKcWfbQWAUaPfxkjDhapSlZB9f7fkMrvkVjA== - dependencies: - commander "^2.20.0" - source-map "~0.7.2" - source-map-support "~0.5.19" - test-exclude@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e" @@ -11768,7 +10731,7 @@ text-table@0.2.0: resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" integrity sha1-f17oI66AUgfACvLfSoTsP8+lcLQ= -through2@^2.0.0, through2@^2.0.2, through2@~2.0.3: +through2@^2.0.0, through2@~2.0.3: version "2.0.5" resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd" integrity sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ== @@ -11957,7 +10920,7 @@ ts-node@^9.0.0, ts-node@^9.1.1: source-map-support "^0.5.17" yn "3.1.1" -tslib@2.2.0: +tslib@2.2.0, tslib@^2.0.0, tslib@^2.1.0: version "2.2.0" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.2.0.tgz#fb2c475977e35e241311ede2693cee1ec6698f5c" integrity sha512-gS9GVHRU+RGn5KQM2rllAlR3dU6m7AcpJKdtH8gFvQiC4Otgk98XnmMU+nZenHt/+VhnBPWwgrJsyrdcw6i23w== @@ -11967,11 +10930,6 @@ tslib@^1.10.0, tslib@^1.13.0, tslib@^1.8.1, tslib@^1.9.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -tslib@^2.0.0, tslib@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.1.0.tgz#da60860f1c2ecaa5703ab7d39bc05b6bf988b97a" - integrity sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A== - tslint-no-circular-imports@^0.7.0: version "0.7.0" resolved "https://registry.yarnpkg.com/tslint-no-circular-imports/-/tslint-no-circular-imports-0.7.0.tgz#9df0a15654d66b172e0b7843eed073fa5ae99b5f" @@ -12051,16 +11009,16 @@ type-fest@^0.10.0: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.10.0.tgz#7f06b2b9fbfc581068d1341ffabd0349ceafc642" integrity sha512-EUV9jo4sffrwlg8s0zDhP0T2WD3pru5Xi0+HTE3zTUmBaZNhfkite9PdSJwdXLwPVW0jnAHT56pZHIOYckPEiw== -type-fest@^0.11.0: - version "0.11.0" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.11.0.tgz#97abf0872310fed88a5c466b25681576145e33f1" - integrity sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ== - type-fest@^0.18.0: version "0.18.1" resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.18.1.tgz#db4bc151a4a2cf4eebf9add5db75508db6cc841f" integrity sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw== +type-fest@^0.21.3: + version "0.21.3" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" + integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== + type-fest@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.6.0.tgz#8d2a2370d3df886eb5c90ada1c5bf6188acf838b" @@ -12085,9 +11043,9 @@ type@^1.0.1: integrity sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg== type@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/type/-/type-2.2.0.tgz#3edd448793f517d8b9dd108b486a043f5befd91f" - integrity sha512-M/u37b4oSGlusaU8ZB96BfFPWQ8MbsZYXB+kXGMiDj6IKinkcNaQvmirBuWj8mAXqP6LYn1rQvbTYum3yPhaOA== + version "2.5.0" + resolved "https://registry.yarnpkg.com/type/-/type-2.5.0.tgz#0a2e78c2e77907b252abe5f298c1b01c63f0db3d" + integrity sha512-180WMDQaIMm3+7hGXWf12GtdniDEy7nYcyFMKJn/eZz/6tSLXrUN9V0wKSbMjej0I1WHWbpREDEKHtqPQa9NNw== typed-graphqlify@^2.3.0: version "2.4.5" @@ -12105,14 +11063,14 @@ typescript@4.2.4, typescript@~4.2.4: integrity sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg== ua-parser-js@^0.7.23: - version "0.7.24" - resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.24.tgz#8d3ecea46ed4f1f1d63ec25f17d8568105dc027c" - integrity sha512-yo+miGzQx5gakzVK3QFfN0/L9uVhosXBBO7qmnk7c2iw1IhL212wfA3zbnI54B0obGwC/5NWub/iT9sReMx+Fw== + version "0.7.28" + resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.28.tgz#8ba04e653f35ce210239c64661685bf9121dec31" + integrity sha512-6Gurc1n//gjp9eQNXjD9O3M/sMwVtN5S8Lv9bvOYBfKfDNiIIhqiyi01vMBO45u4zkDE420w/e0se7Vs+sIg+g== uglify-js@^3.1.4: - version "3.12.8" - resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.12.8.tgz#a82e6e53c9be14f7382de3d068ef1e26e7d4aaf8" - integrity sha512-fvBeuXOsvqjecUtF/l1dwsrrf5y2BCUk9AOJGzGcm6tE7vegku5u/YvqjyDaAGr422PLoLnrxg3EnRvTqsdC1w== + version "3.13.4" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.13.4.tgz#592588bb9f47ae03b24916e2471218d914955574" + integrity sha512-kv7fCkIXyQIilD5/yQy8O+uagsYIOt5cZvs890W40/e/rvjMSzJw81o9Bg0tkURxzZBROtDQhW2LFjOGoK3RZw== unbzip2-stream@^1.3.3: version "1.4.3" @@ -12214,11 +11172,6 @@ unpipe@1.0.0, unpipe@~1.0.0: resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" integrity sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw= -unquote@~1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/unquote/-/unquote-1.1.1.tgz#8fded7324ec6e88a0ff8b905e7c098cdc086d544" - integrity sha1-j97XMk7G6IoP+LkF58CYzcCG1UQ= - unset-value@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" @@ -12249,10 +11202,10 @@ urix@^0.1.0: resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI= -url-parse@^1.4.3, url-parse@^1.4.7: - version "1.4.7" - resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.4.7.tgz#a8a83535e8c00a316e403a5db4ac1b9b853ae278" - integrity sha512-d3uaVyzDB9tQoSXFvuSUNFibTd9zxd2bkVrDRvF5TmvWWQwqE4lgYJ5m+x1DbecWkw+LK4RNl2CU1hHuOKPVlg== +url-parse@^1.4.3, url-parse@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.5.1.tgz#d5fa9890af8a5e1f274a2c98376510f6425f6e3b" + integrity sha512-HOfCOUJt7iSYzEx/UqgtwKRMC6EU91NFhsCHMv9oM03VJcVo2Qrp8T8kI9D7amFf1cu+/3CEhgb3rF9zL7k85Q== dependencies: querystringify "^2.1.1" requires-port "^1.0.0" @@ -12285,16 +11238,6 @@ util-extend@^1.0.1: resolved "https://registry.yarnpkg.com/util-extend/-/util-extend-1.0.3.tgz#a7c216d267545169637b3b6edc6ca9119e2ff93f" integrity sha1-p8IW0mdUUWljeztu3GypEZ4v+T8= -util.promisify@~1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/util.promisify/-/util.promisify-1.0.1.tgz#6baf7774b80eeb0f7520d8b81d07982a59abbaee" - integrity sha512-g9JpC/3He3bm38zsLupWryXHoEcS22YHthuPQSJdMy6KNrzIRzWqcsHzD/WUnqe45whVou4VIsPew37DoXWNrA== - dependencies: - define-properties "^1.1.3" - es-abstract "^1.17.2" - has-symbols "^1.0.1" - object.getownpropertydescriptors "^2.1.0" - utils-merge@1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" @@ -12311,9 +11254,9 @@ uuid@^3.3.2, uuid@^3.4.0: integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== v8-to-istanbul@^7.1.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-7.1.0.tgz#5b95cef45c0f83217ec79f8fc7ee1c8b486aee07" - integrity sha512-uXUVqNUCLa0AH1vuVxzi+MI4RfxEOKt9pBgKwHbgH7st8Kv2P1m+jvWNnektzBh5QShF3ODgKmUFCf38LnVz1g== + version "7.1.1" + resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-7.1.1.tgz#04bfd1026ba4577de5472df4f5e89af49de5edda" + integrity sha512-p0BB09E5FRjx0ELN6RgusIPsSPhtgexSRcKETybEs6IGOTXJSZqfwxp7r//55nnu0f1AxltY5VvdVqy2vZf9AA== dependencies: "@types/istanbul-lib-coverage" "^2.0.1" convert-source-map "^1.6.0" @@ -12344,7 +11287,7 @@ vary@^1, vary@~1.1.2: resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw= -vendors@^1.0.0, vendors@^1.0.3: +vendors@^1.0.3: version "1.0.4" resolved "https://registry.yarnpkg.com/vendors/-/vendors-1.0.4.tgz#e2b800a53e7a29b93506c3cf41100d16c4c4ad8e" integrity sha512-/juG65kTL4Cy2su4P8HjtkTxk6VmJDiOPBufWniqQ6wknac6jNiXS9vU+hO3wgusiyqWlzTbVHi0dyJqRONg3w== @@ -12638,35 +11581,6 @@ webpack@5.34.0: watchpack "^2.0.0" webpack-sources "^2.1.1" -webpack@^5: - version "5.31.0" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.31.0.tgz#fab61d0be896feca4af87bdad5c18815c0d63455" - integrity sha512-3fUfZT/FUuThWSSyL32Fsh7weUUfYP/Fjc/cGSbla5KiSo0GtI1JMssCRUopJTvmLjrw05R2q7rlLtiKdSzkzQ== - dependencies: - "@types/eslint-scope" "^3.7.0" - "@types/estree" "^0.0.46" - "@webassemblyjs/ast" "1.11.0" - "@webassemblyjs/wasm-edit" "1.11.0" - "@webassemblyjs/wasm-parser" "1.11.0" - acorn "^8.0.4" - browserslist "^4.14.5" - chrome-trace-event "^1.0.2" - enhanced-resolve "^5.7.0" - es-module-lexer "^0.4.0" - eslint-scope "^5.1.1" - events "^3.2.0" - glob-to-regexp "^0.4.1" - graceful-fs "^4.2.4" - json-parse-better-errors "^1.0.2" - loader-runner "^4.2.0" - mime-types "^2.1.27" - neo-async "^2.6.2" - schema-utils "^3.0.0" - tapable "^2.1.1" - terser-webpack-plugin "^5.1.1" - watchpack "^2.0.0" - webpack-sources "^2.1.1" - websocket-driver@>=0.5.1, websocket-driver@^0.7.4: version "0.7.4" resolved "https://registry.yarnpkg.com/websocket-driver/-/websocket-driver-0.7.4.tgz#89ad5295bbf64b480abcba31e4953aca706f5760" @@ -12689,9 +11603,9 @@ whatwg-encoding@^1.0.1, whatwg-encoding@^1.0.5: iconv-lite "0.4.24" whatwg-fetch@>=0.10.0: - version "3.5.0" - resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.5.0.tgz#605a2cd0a7146e5db141e29d1c62ab84c0c4c868" - integrity sha512-jXkLtsR42xhXg7akoDKvKWE40eJeI+2KZqcp2h3NsOrRnDvtWX36KcKl30dy+hxECivdk2BVUHVNrPtoMBUx6A== + version "3.6.2" + resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz#dced24f37f2624ed0281725d51d0e2e3fe677f8c" + integrity sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA== whatwg-mimetype@^2.2.0, whatwg-mimetype@^2.3.0: version "2.3.0" @@ -12795,9 +11709,9 @@ ws@^6.2.1: async-limiter "~1.0.0" ws@^7.0.0, ws@^7.2.3, ws@~7.4.2: - version "7.4.3" - resolved "https://registry.yarnpkg.com/ws/-/ws-7.4.3.tgz#1f9643de34a543b8edb124bdcbc457ae55a6e5cd" - integrity sha512-hr6vCR76GsossIRsr8OLR9acVVm1jyfEWvhbNjtgPOrfvAlKzvyeg/P6r8RuDjRyrcQoPQT7K0DGEPc7Ae6jzA== + version "7.4.5" + resolved "https://registry.yarnpkg.com/ws/-/ws-7.4.5.tgz#a484dd851e9beb6fdb420027e3885e8ce48986c1" + integrity sha512-xzyu3hFvomRfXKH8vOFMU3OguG6oOvhXMo3xsGy3xWExqaM2dxBbVxuD99O7m3ZUFMvvscsZDqxfgMaRr/Nr1g== xhr2@^0.2.0: version "0.2.1" @@ -12837,7 +11751,7 @@ xtend@~4.0.1: resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54" integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== -xxhashjs@0.2.2: +xxhashjs@~0.2.2: version "0.2.2" resolved "https://registry.yarnpkg.com/xxhashjs/-/xxhashjs-0.2.2.tgz#8a6251567621a1c46a5ae204da0249c7f8caa9d8" integrity sha512-AkTuIuVTET12tpsVIQo+ZU6f/qDmKuRUcjaqR+OIvm+aCBsZ95i7UVY5WJ9TMsSaZ0DA2WxoZ4acu0sPH+OKAw== @@ -12845,14 +11759,14 @@ xxhashjs@0.2.2: cuint "^0.2.2" y18n@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.1.tgz#8db2b83c31c5d75099bb890b23f3094891e247d4" - integrity sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ== + version "4.0.3" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.3.tgz#b5f259c82cd6e336921efd7bfd8bf560de9eeedf" + integrity sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ== y18n@^5.0.5: - version "5.0.5" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.5.tgz#8769ec08d03b1ea2df2500acef561743bbb9ab18" - integrity sha512-hsRUr4FFrvhhRH12wOdfs38Gy7k2FFzB9qgN9v3aLykRq0dRcdcpz5C9FxdS2NuhOrI/628b/KSTJ3rwHysYSg== + version "5.0.8" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" + integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== yallist@^4.0.0: version "4.0.0" @@ -12860,9 +11774,9 @@ yallist@^4.0.0: integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== yaml@^1.10.0, yaml@^1.5.0: - version "1.10.0" - resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.0.tgz#3b593add944876077d4d683fee01081bd9fff31e" - integrity sha512-yr2icI4glYaNG+KWONODapy2/jDdMSDnrONSjblABjD9B4Z5LgiircSt8m8sRZFNi08kG9Sm0uSHtEmP3zaEGg== + version "1.10.2" + resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b" + integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg== yargs-parser@^13.1.2: version "13.1.2" @@ -12880,15 +11794,10 @@ yargs-parser@^18.1.2: camelcase "^5.0.0" decamelize "^1.2.0" -yargs-parser@^20.0.0: - version "20.2.6" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.6.tgz#69f920addf61aafc0b8b89002f5d66e28f2d8b20" - integrity sha512-AP1+fQIWSM/sMiET8fyayjx/J+JmTPt2Mr0FkrgqB4todtfa53sOsrSAcIrJRD5XS20bKUwaDIuMkWKCEiQLKA== - -yargs-parser@^20.2.2, yargs-parser@^20.2.3: - version "20.2.5" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.5.tgz#5d37729146d3f894f39fc94b6796f5b239513186" - integrity sha512-jYRGS3zWy20NtDtK2kBgo/TlAoy5YUuhD9/LZ7z7W4j1Fdw2cqD0xEEclf8fxc8xjD6X5Qr+qQQwCEsP8iRiYg== +yargs-parser@^20.0.0, yargs-parser@^20.2.2, yargs-parser@^20.2.3: + version "20.2.7" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.7.tgz#61df85c113edfb5a7a4e36eb8aa60ef423cbc90a" + integrity sha512-FiNkvbeHzB/syOjIUxFDCnhSfzAL8R5vs40MgLFBorXACCOAEaWu0gRZl14vG8MR9AOJIZbmkjhusqBYZ3HTHw== yargs@^13.3.2: version "13.3.2" @@ -12955,9 +11864,9 @@ yocto-queue@^0.1.0: integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== zone.js@^0.11.3: - version "0.11.3" - resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.11.3.tgz#255a6313174731cc014d63233ef04fd9858da375" - integrity sha512-Y4hTHoh4VcxU5BDGAqEoOnOiyT254w6CiHtpQxAJUSMZPyVgdbKf+5R7Mwz6xsPhMIeBXk5rTopRZDpjssTCUg== + version "0.11.4" + resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.11.4.tgz#0f70dcf6aba80f698af5735cbb257969396e8025" + integrity sha512-DDh2Ab+A/B+9mJyajPjHFPWfYU1H+pdun4wnnk0OcQTNjem1XQSZ2CDW+rfZEUDjv5M19SBqAkjZi0x5wuB5Qw== dependencies: tslib "^2.0.0" From a8ff9d408b82ff73b79ae2d3441510a3286bca82 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Wed, 21 Apr 2021 08:18:34 +0200 Subject: [PATCH 042/577] test(@angular-devkit/build-angular): add `debounceTime` to stabilize FS --- .../angular_devkit/build_angular/src/ng-packagr/works_spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/angular_devkit/build_angular/src/ng-packagr/works_spec.ts b/packages/angular_devkit/build_angular/src/ng-packagr/works_spec.ts index 52eea6f67a10..81fea70bba00 100644 --- a/packages/angular_devkit/build_angular/src/ng-packagr/works_spec.ts +++ b/packages/angular_devkit/build_angular/src/ng-packagr/works_spec.ts @@ -16,7 +16,7 @@ import { virtualFs, workspaces, } from '@angular-devkit/core'; -import { map, take, tap } from 'rxjs/operators'; +import { debounceTime, map, take, tap } from 'rxjs/operators'; // Default timeout for large specs is 2.5 minutes. jasmine.DEFAULT_TIMEOUT_INTERVAL = 150000; @@ -87,6 +87,7 @@ describe('NgPackagr Builder', () => { await run.output.pipe( tap((buildEvent) => expect(buildEvent.success).toBe(true)), + debounceTime(1000), map(() => { const fileName = './dist/lib/fesm2015/lib.js'; const content = virtualFs.fileBufferToString( From 49ba5e20aa3604dcb96c2cca80892270c0ae7aee Mon Sep 17 00:00:00 2001 From: Keen Yee Liau Date: Mon, 12 Apr 2021 13:33:27 -0700 Subject: [PATCH 043/577] refactor(@schematics/angular): Do not include Protractor test in new project Do not include Protractor for new projects since we do not have a concrete plan for Protractor yet. --- packages/angular/cli/commands/e2e-impl.ts | 16 ++++++++++++++-- packages/schematics/angular/application/index.ts | 7 ------- packages/schematics/angular/e2e/index.ts | 6 ++++++ packages/schematics/angular/ng-new/index_spec.ts | 4 ---- .../angular/workspace/files/README.md.template | 2 +- .../workspace/files/package.json.template | 1 - tests/legacy-cli/e2e/utils/project.ts | 2 ++ 7 files changed, 23 insertions(+), 15 deletions(-) diff --git a/packages/angular/cli/commands/e2e-impl.ts b/packages/angular/cli/commands/e2e-impl.ts index f24a44ca4122..db680ca7dd44 100644 --- a/packages/angular/cli/commands/e2e-impl.ts +++ b/packages/angular/cli/commands/e2e-impl.ts @@ -14,8 +14,20 @@ import { Schema as E2eCommandSchema } from './e2e'; export class E2eCommand extends ArchitectCommand { public readonly target = 'e2e'; public readonly multiTarget = true; + public readonly missingTargetError = ` +Cannot find "e2e" target for the specified project. - public async run(options: E2eCommandSchema & Arguments) { - return this.runArchitectTarget(options); +You should add a package that implements end-to-end testing capabilities. + +For example: + WebdriverIO: ng add @wdio/schematics + +More options will be added to the list as they become available. +`; + + async initialize(options: E2eCommandSchema & Arguments) { + if (!options.help) { + return super.initialize(options); + } } } diff --git a/packages/schematics/angular/application/index.ts b/packages/schematics/angular/application/index.ts index dbc4ee700f03..b8b4da6f7bfa 100644 --- a/packages/schematics/angular/application/index.ts +++ b/packages/schematics/angular/application/index.ts @@ -29,7 +29,6 @@ import { } from '@angular-devkit/schematics'; import { NodePackageInstallTask } from '@angular-devkit/schematics/tasks'; import { Schema as ComponentOptions } from '../component/schema'; -import { Schema as E2eOptions } from '../e2e/schema'; import { NodeDependencyType, addPackageJsonDependency } from '../utility/dependencies'; import { latestVersions } from '../utility/latest-versions'; import { applyLintFix } from '../utility/lint-fix'; @@ -282,11 +281,6 @@ export default function (options: ApplicationOptions): Rule { : join(normalize(newProjectRoot), strings.dasherize(options.name)); const sourceDir = `${appDir}/src/app`; - const e2eOptions: E2eOptions = { - relatedAppName: options.name, - rootSelector: appRootSelector, - }; - return chain([ addAppToWorkspaceFile(options, appDir), mergeWith( @@ -338,7 +332,6 @@ export default function (options: ApplicationOptions): Rule { }), move(sourceDir), ]), MergeStrategy.Overwrite), - options.minimal ? noop() : schematic('e2e', e2eOptions), options.skipPackageJson ? noop() : addDependenciesToPackageJson(options), options.lintFix ? applyLintFix(appDir) : noop(), ]); diff --git a/packages/schematics/angular/e2e/index.ts b/packages/schematics/angular/e2e/index.ts index 292c918a9119..a4fc7d1cd603 100644 --- a/packages/schematics/angular/e2e/index.ts +++ b/packages/schematics/angular/e2e/index.ts @@ -17,6 +17,7 @@ import { move, url, } from '@angular-devkit/schematics'; +import { NodeDependencyType, addPackageJsonDependency } from '../utility/dependencies'; import { JSONFile } from '../utility/json-file'; import { relativePathToWorkspaceRoot } from '../utility/paths'; import { getWorkspace, updateWorkspace } from '../utility/workspace'; @@ -73,6 +74,11 @@ export default function (options: E2eOptions): Rule { }), move(root), ])), + host => addPackageJsonDependency(host, { + type: NodeDependencyType.Dev, + name: 'protractor', + version: '~7.0.0', + }), addScriptsToPackageJson(), ]); }; diff --git a/packages/schematics/angular/ng-new/index_spec.ts b/packages/schematics/angular/ng-new/index_spec.ts index f5bb57985542..45f443ab8635 100644 --- a/packages/schematics/angular/ng-new/index_spec.ts +++ b/packages/schematics/angular/ng-new/index_spec.ts @@ -37,10 +37,6 @@ describe('Ng New Schematic', () => { '/bar/tsconfig.app.json', '/bar/src/main.ts', '/bar/src/app/app.module.ts', - '/bar/e2e/src/app.po.ts', - '/bar/e2e/src/app.e2e-spec.ts', - '/bar/e2e/tsconfig.json', - '/bar/e2e/protractor.conf.js', ])); }); diff --git a/packages/schematics/angular/workspace/files/README.md.template b/packages/schematics/angular/workspace/files/README.md.template index 25d6cf773051..cfdba89f5fec 100644 --- a/packages/schematics/angular/workspace/files/README.md.template +++ b/packages/schematics/angular/workspace/files/README.md.template @@ -20,7 +20,7 @@ Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github. ## Running end-to-end tests -Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/). +Run `ng e2e` to execute the end-to-end tests via a platform of your choice. ## Further help diff --git a/packages/schematics/angular/workspace/files/package.json.template b/packages/schematics/angular/workspace/files/package.json.template index c231d77881b3..a1ae065373bc 100644 --- a/packages/schematics/angular/workspace/files/package.json.template +++ b/packages/schematics/angular/workspace/files/package.json.template @@ -35,7 +35,6 @@ "karma-coverage": "~2.0.3", "karma-jasmine": "~4.0.0", "karma-jasmine-html-reporter": "^1.5.0", - "protractor": "~7.0.0", "ts-node": "~9.1.1",<% } %> "typescript": "<%= latestVersions.TypeScript %>" } diff --git a/tests/legacy-cli/e2e/utils/project.ts b/tests/legacy-cli/e2e/utils/project.ts index e53158b69cb2..661e58a322f5 100644 --- a/tests/legacy-cli/e2e/utils/project.ts +++ b/tests/legacy-cli/e2e/utils/project.ts @@ -53,6 +53,8 @@ export async function prepareProjectForE2e(name) { 'false', ); + await ng('generate', '@schematics/angular:e2e', '--related-app-name', name); + await useCIChrome( 'e2e', ); From 0a74d0d28daf68510459ed73ef048c91bfcabbbc Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Wed, 21 Apr 2021 07:41:57 +0200 Subject: [PATCH 044/577] 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 | --- .../build_angular/src/browser/schema.json | 14 ++--- .../src/browser/specs/works_spec.ts | 15 ++--- .../tests/behavior/rebuild-errors_spec.ts | 1 + .../tests/behavior/typescript-target_spec.ts | 3 + .../tests/options/extract-licenses_spec.ts | 4 +- .../src/browser/tests/options/main_spec.ts | 3 - .../tests/options/named-chunks_spec.ts | 4 +- .../tests/options/output-hashing_spec.ts | 7 +++ .../build_angular/src/browser/tests/setup.ts | 4 ++ .../src/dev-server/tests/setup.ts | 2 +- .../build_angular/src/extract-i18n/index.ts | 5 +- .../build_angular/src/karma/index.ts | 15 ++++- .../build_angular/src/server/schema.json | 6 +- .../src/utils/normalize-optimization.ts | 2 +- .../test/hello-world-app/angular.json | 12 +++- .../schematics/angular/application/index.ts | 12 ++-- .../update-12/update-angular-config.ts | 56 ++++++++++++++++++- .../update-12/update-angular-config_spec.ts | 51 +++++++++++------ 18 files changed, 160 insertions(+), 56 deletions(-) diff --git a/packages/angular_devkit/build_angular/src/browser/schema.json b/packages/angular_devkit/build_angular/src/browser/schema.json index b229e7b5627f..65d4542c030e 100644 --- a/packages/angular_devkit/build_angular/src/browser/schema.json +++ b/packages/angular_devkit/build_angular/src/browser/schema.json @@ -69,7 +69,7 @@ "optimization": { "description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking, dead-code elimination, inlining of critical CSS and fonts inlining. For more information, see https://angular.io/guide/workspace-config#optimization-configuration.", "x-user-analytics": 16, - "default": false, + "default": true, "oneOf": [ { "type": "object", @@ -153,11 +153,11 @@ "type": "boolean", "description": "Build using Ahead of Time compilation.", "x-user-analytics": 13, - "default": false + "default": true }, "sourceMap": { "description": "Output source maps for scripts and styles. For more information, see https://angular.io/guide/workspace-config#source-map-configuration.", - "default": true, + "default": false, "oneOf": [ { "type": "object", @@ -193,7 +193,7 @@ "vendorChunk": { "type": "boolean", "description": "Generate a seperate bundle containing only vendor libraries. This option should only used for development.", - "default": true + "default": false }, "commonChunk": { "type": "boolean", @@ -280,7 +280,7 @@ "extractLicenses": { "type": "boolean", "description": "Extract all licenses in a separate file.", - "default": false + "default": true }, "showCircularDependencies": { "type": "boolean", @@ -291,12 +291,12 @@ "buildOptimizer": { "type": "boolean", "description": "Enables '@angular-devkit/build-optimizer' optimizations when using the 'aot' option.", - "default": false + "default": true }, "namedChunks": { "type": "boolean", "description": "Use file name for lazy loaded chunks.", - "default": true + "default": false }, "subresourceIntegrity": { "type": "boolean", diff --git a/packages/angular_devkit/build_angular/src/browser/specs/works_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/works_spec.ts index 8de151c2ca8c..e8a0f633f4a4 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/works_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/works_spec.ts @@ -24,6 +24,7 @@ describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => { polyfills: 'src/polyfills.ts', tsConfig: 'src/tsconfig.app.json', progress: false, + vendorChunk: true, assets: ['src/favicon.ico', 'src/assets'], styles: ['src/styles.css'], scripts: [], @@ -33,13 +34,13 @@ describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => { await harness.executeOnce(); // Default files should be in outputPath. - expect(harness.hasFile('dist/runtime.js')).toBe(true); - expect(harness.hasFile('dist/main.js')).toBe(true); - expect(harness.hasFile('dist/polyfills.js')).toBe(true); - expect(harness.hasFile('dist/vendor.js')).toBe(true); - expect(harness.hasFile('dist/favicon.ico')).toBe(true); - expect(harness.hasFile('dist/styles.css')).toBe(true); - expect(harness.hasFile('dist/index.html')).toBe(true); + expect(harness.hasFile('dist/runtime.js')).toBeTrue(); + expect(harness.hasFile('dist/main.js')).toBeTrue(); + expect(harness.hasFile('dist/polyfills.js')).toBeTrue(); + expect(harness.hasFile('dist/vendor.js')).toBeTrue(); + expect(harness.hasFile('dist/favicon.ico')).toBeTrue(); + expect(harness.hasFile('dist/styles.css')).toBeTrue(); + expect(harness.hasFile('dist/index.html')).toBeTrue(); }); }); }); diff --git a/packages/angular_devkit/build_angular/src/browser/tests/behavior/rebuild-errors_spec.ts b/packages/angular_devkit/build_angular/src/browser/tests/behavior/rebuild-errors_spec.ts index 06d766cd23fa..116942a78444 100644 --- a/packages/angular_devkit/build_angular/src/browser/tests/behavior/rebuild-errors_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/tests/behavior/rebuild-errors_spec.ts @@ -281,6 +281,7 @@ describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => { harness.useTarget('build', { ...BASE_OPTIONS, watch: true, + aot: false, }); const buildCount = await harness diff --git a/packages/angular_devkit/build_angular/src/browser/tests/behavior/typescript-target_spec.ts b/packages/angular_devkit/build_angular/src/browser/tests/behavior/typescript-target_spec.ts index 8ebb5f784d66..c7b28159fa4d 100644 --- a/packages/angular_devkit/build_angular/src/browser/tests/behavior/typescript-target_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/tests/behavior/typescript-target_spec.ts @@ -39,6 +39,7 @@ describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => { harness.useTarget('build', { ...BASE_OPTIONS, + vendorChunk: true, }); const { result, logs } = await harness.executeOnce(); @@ -87,6 +88,7 @@ describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => { harness.useTarget('build', { ...BASE_OPTIONS, + vendorChunk: true, sourceMap: { scripts: true, }, @@ -119,6 +121,7 @@ describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => { harness.useTarget('build', { ...BASE_OPTIONS, + vendorChunk: true, }); const { result, logs } = await harness.executeOnce(); diff --git a/packages/angular_devkit/build_angular/src/browser/tests/options/extract-licenses_spec.ts b/packages/angular_devkit/build_angular/src/browser/tests/options/extract-licenses_spec.ts index 50b29d23ee1b..0210fdd8ab2f 100644 --- a/packages/angular_devkit/build_angular/src/browser/tests/options/extract-licenses_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/tests/options/extract-licenses_spec.ts @@ -32,14 +32,14 @@ describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => { harness.expectFile('dist/3rdpartylicenses.txt').toNotExist(); }); - it(`should not generate '3rdpartylicenses.txt' when 'extractLicenses' is not set`, async () => { + it(`should generate '3rdpartylicenses.txt' when 'extractLicenses' is not set`, async () => { harness.useTarget('build', { ...BASE_OPTIONS, }); const { result } = await harness.executeOnce(); expect(result?.success).toBe(true); - harness.expectFile('dist/3rdpartylicenses.txt').toNotExist(); + harness.expectFile('dist/3rdpartylicenses.txt').content.toContain('MIT'); }); }); }); diff --git a/packages/angular_devkit/build_angular/src/browser/tests/options/main_spec.ts b/packages/angular_devkit/build_angular/src/browser/tests/options/main_spec.ts index 021039529a92..dfd79cc0f16a 100644 --- a/packages/angular_devkit/build_angular/src/browser/tests/options/main_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/tests/options/main_spec.ts @@ -22,7 +22,6 @@ describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => { harness.expectFile('dist/runtime.js').toExist(); harness.expectFile('dist/main.js').toExist(); - harness.expectFile('dist/vendor.js').toExist(); harness.expectFile('dist/index.html').toExist(); }); @@ -40,7 +39,6 @@ describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => { harness.expectFile('dist/runtime.js').toExist(); harness.expectFile('dist/main.js').toExist(); - harness.expectFile('dist/vendor.js').toNotExist(); harness.expectFile('dist/index.html').toExist(); harness.expectFile('dist/main.js').content.toContain(`console.log('main')`); @@ -61,7 +59,6 @@ describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => { harness.expectFile('dist/runtime.js').toNotExist(); harness.expectFile('dist/main.js').toNotExist(); - harness.expectFile('dist/vendor.js').toNotExist(); harness.expectFile('dist/index.html').toNotExist(); }); }); diff --git a/packages/angular_devkit/build_angular/src/browser/tests/options/named-chunks_spec.ts b/packages/angular_devkit/build_angular/src/browser/tests/options/named-chunks_spec.ts index 85fcb4796240..1bace45fcfb1 100644 --- a/packages/angular_devkit/build_angular/src/browser/tests/options/named-chunks_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/tests/options/named-chunks_spec.ts @@ -62,8 +62,8 @@ describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => { expect(result?.success).toBe(true); harness.expectFile(MAIN_OUTPUT).toExist(); - harness.expectFile(NAMED_LAZY_OUTPUT).toExist(); - harness.expectFile(UNNAMED_LAZY_OUTPUT).toNotExist(); + harness.expectFile(NAMED_LAZY_OUTPUT).toNotExist(); + harness.expectFile(UNNAMED_LAZY_OUTPUT).toExist(); }); }); }); diff --git a/packages/angular_devkit/build_angular/src/browser/tests/options/output-hashing_spec.ts b/packages/angular_devkit/build_angular/src/browser/tests/options/output-hashing_spec.ts index 6f046fcede67..e43d462f7c00 100644 --- a/packages/angular_devkit/build_angular/src/browser/tests/options/output-hashing_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/tests/options/output-hashing_spec.ts @@ -16,6 +16,7 @@ describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => { beforeEach(async () => { // Application code is not needed for asset tests await harness.writeFile('src/main.ts', ''); + await harness.writeFile('src/polyfills.ts', ''); }); it('hashes all filenames when set to "all"', async () => { @@ -27,6 +28,7 @@ describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => { harness.useTarget('build', { ...BASE_OPTIONS, styles: ['src/styles.css'], + polyfills: 'src/polyfills.ts', outputHashing: OutputHashing.All, }); @@ -48,6 +50,7 @@ describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => { harness.useTarget('build', { ...BASE_OPTIONS, + polyfills: 'src/polyfills.ts', styles: ['src/styles.css'], }); @@ -70,6 +73,7 @@ describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => { harness.useTarget('build', { ...BASE_OPTIONS, styles: ['src/styles.css'], + polyfills: 'src/polyfills.ts', outputHashing: OutputHashing.None, }); @@ -92,6 +96,7 @@ describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => { harness.useTarget('build', { ...BASE_OPTIONS, styles: ['src/styles.css'], + polyfills: 'src/polyfills.ts', outputHashing: OutputHashing.Media, }); @@ -114,6 +119,7 @@ describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => { harness.useTarget('build', { ...BASE_OPTIONS, styles: ['src/styles.css'], + polyfills: 'src/polyfills.ts', outputHashing: OutputHashing.Bundles, }); @@ -131,6 +137,7 @@ describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => { harness.useTarget('build', { ...BASE_OPTIONS, outputHashing: OutputHashing.All, + sourceMap: true, styles: [{ input: 'src/styles.css', inject: false, diff --git a/packages/angular_devkit/build_angular/src/browser/tests/setup.ts b/packages/angular_devkit/build_angular/src/browser/tests/setup.ts index 6c44764e064f..0dcece4f7734 100644 --- a/packages/angular_devkit/build_angular/src/browser/tests/setup.ts +++ b/packages/angular_devkit/build_angular/src/browser/tests/setup.ts @@ -24,4 +24,8 @@ export const BASE_OPTIONS = Object.freeze({ outputPath: 'dist', tsConfig: 'src/tsconfig.app.json', progress: false, + + // Disable optimizations + optimization: false, + buildOptimizer: false, }); diff --git a/packages/angular_devkit/build_angular/src/dev-server/tests/setup.ts b/packages/angular_devkit/build_angular/src/dev-server/tests/setup.ts index cc864a9922a6..c1d513833191 100644 --- a/packages/angular_devkit/build_angular/src/dev-server/tests/setup.ts +++ b/packages/angular_devkit/build_angular/src/dev-server/tests/setup.ts @@ -24,7 +24,7 @@ export const DEV_SERVER_BUILDER_INFO = Object.freeze({ }); /** - * Contains all required extract-i18n builder fields. + * Contains all required dev-server builder fields. * The port is also set to zero to ensure a free port is used for each test which * supports parallel test execution. */ diff --git a/packages/angular_devkit/build_angular/src/extract-i18n/index.ts b/packages/angular_devkit/build_angular/src/extract-i18n/index.ts index bb7fdbdb7587..f300335a30e6 100644 --- a/packages/angular_devkit/build_angular/src/extract-i18n/index.ts +++ b/packages/angular_devkit/build_angular/src/extract-i18n/index.ts @@ -17,7 +17,7 @@ import type { Diagnostics } from '@angular/localize/src/tools/src/diagnostics'; import * as fs from 'fs'; import * as path from 'path'; import * as webpack from 'webpack'; -import { Schema as BrowserBuilderOptions } from '../browser/schema'; +import { OutputHashing, Schema as BrowserBuilderOptions } from '../browser/schema'; import { ExecutionTransformer } from '../transforms'; import { createI18nOptions } from '../utils/i18n-options'; import { assertCompatibleAngularVersion } from '../utils/version'; @@ -177,12 +177,15 @@ export async function execute( buildOptimizer: false, aot: true, progress: options.progress, + budgets: [], assets: [], scripts: [], styles: [], deleteOutputPath: false, extractLicenses: false, subresourceIntegrity: false, + outputHashing: OutputHashing.None, + namedChunks: true, }, context, (wco) => { diff --git a/packages/angular_devkit/build_angular/src/karma/index.ts b/packages/angular_devkit/build_angular/src/karma/index.ts index 542a8d435870..a2f7c557e3a7 100644 --- a/packages/angular_devkit/build_angular/src/karma/index.ts +++ b/packages/angular_devkit/build_angular/src/karma/index.ts @@ -12,7 +12,7 @@ import { dirname, resolve } from 'path'; import { Observable, from } from 'rxjs'; import { defaultIfEmpty, switchMap } from 'rxjs/operators'; import * as webpack from 'webpack'; -import { Schema as BrowserBuilderOptions } from '../browser/schema'; +import { OutputHashing, Schema as BrowserBuilderOptions } from '../browser/schema'; import { ExecutionTransformer } from '../transforms'; import { assertCompatibleAngularVersion } from '../utils/version'; import { generateBrowserWebpackConfigFromContext } from '../utils/webpack-browser-config'; @@ -41,7 +41,18 @@ async function initialize( // only two properties are missing: // * `outputPath` which is fixed for tests // * `budgets` which might be incorrect due to extra dev libs - { ...((options as unknown) as BrowserBuilderOptions), outputPath: '', budgets: undefined }, + { + ...((options as unknown) as BrowserBuilderOptions), + outputPath: '', + budgets: undefined, + optimization: false, + buildOptimizer: false, + aot: false, + vendorChunk: true, + namedChunks: true, + extractLicenses: false, + outputHashing: OutputHashing.None, + }, context, wco => [ getCommonConfig(wco), diff --git a/packages/angular_devkit/build_angular/src/server/schema.json b/packages/angular_devkit/build_angular/src/server/schema.json index aa4c01521026..4a9b7b6f9d11 100644 --- a/packages/angular_devkit/build_angular/src/server/schema.json +++ b/packages/angular_devkit/build_angular/src/server/schema.json @@ -42,7 +42,7 @@ "optimization": { "description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking and dead-code elimination. For more information, see https://angular.io/guide/workspace-config#optimization-configuration.", "x-user-analytics": 16, - "default": false, + "default": true, "oneOf": [ { "type": "object", @@ -84,7 +84,7 @@ }, "sourceMap": { "description": "Output source maps for scripts and styles. For more information, see https://angular.io/guide/workspace-config#source-map-configuration.", - "default": true, + "default": false, "oneOf": [ { "type": "object", @@ -189,7 +189,7 @@ "namedChunks": { "type": "boolean", "description": "Use file name for lazy loaded chunks.", - "default": true + "default": false }, "bundleDependencies": { "description": "Which external dependencies to bundle into the bundle. By default, all of node_modules will be bundled.", diff --git a/packages/angular_devkit/build_angular/src/utils/normalize-optimization.ts b/packages/angular_devkit/build_angular/src/utils/normalize-optimization.ts index 6946a3039f1a..8f72b05b1c9c 100644 --- a/packages/angular_devkit/build_angular/src/utils/normalize-optimization.ts +++ b/packages/angular_devkit/build_angular/src/utils/normalize-optimization.ts @@ -13,7 +13,7 @@ export type NormalizedOptimizationOptions = Required; + +const BrowserBuilderOptions: BuilderOptionsType = [ + ['aot', false, true], + ['vendorChunk', true, false], + ['extractLicenses', true, false], + ['buildOptimizer', false, true], + ['sourceMap', true, false], + ['optimization', false, true], + ['namedChunks', false, true], +]; + +const ServerBuilderOptions: BuilderOptionsType = [ + ['sourceMap', true, false], + ['optimization', false, true], +]; + export default function (): Rule { return updateWorkspace(workspace => { for (const [, target] of allWorkspaceTargets(workspace)) { - if (!target.builder.startsWith('@angular-devkit/build-angular')) { + if (!target?.builder.startsWith('@angular-devkit/build-angular')) { continue; } + // Only interested in Angular Devkit browser and server builders + switch (target.builder) { + case '@angular-devkit/build-angular:server': + updateOptions(target, ServerBuilderOptions); + break; + case '@angular-devkit/build-angular:browser': + updateOptions(target, BrowserBuilderOptions); + break; + } + for (const [, options] of allTargetOptions(target)) { delete options.experimentalRollupPass; delete options.lazyModules; @@ -23,3 +51,29 @@ export default function (): Rule { } }); } + +function updateOptions( + target: workspaces.TargetDefinition, optionsToUpdate: typeof ServerBuilderOptions | typeof BrowserBuilderOptions, +): void { + if (!target.options) { + target.options = {}; + } + + const configurationOptions = target.configurations && Object.values(target.configurations); + + for (const [optionName, oldDefault, newDefault] of optionsToUpdate) { + let value = target.options[optionName]; + if (value === newDefault) { + // Value is same as new default + delete target.options[optionName]; + } else if (value === undefined) { + // Value is not defined, hence the default in the builder was used. + target.options[optionName] = oldDefault; + value = oldDefault; + } + + // Remove overrides in configurations which are no longer needed. + configurationOptions?.filter(o => o && o[optionName] === value) + .forEach(o => o && delete o[optionName]); + } +} diff --git a/packages/schematics/angular/migrations/update-12/update-angular-config_spec.ts b/packages/schematics/angular/migrations/update-12/update-angular-config_spec.ts index b3cc6f6c3374..3f35fddd6c9e 100644 --- a/packages/schematics/angular/migrations/update-12/update-angular-config_spec.ts +++ b/packages/schematics/angular/migrations/update-12/update-angular-config_spec.ts @@ -27,33 +27,20 @@ function createWorkSpaceConfig(tree: UnitTestTree) { build: { builder: Builders.Browser, options: { - scripts: [ - { lazy: true, name: 'bundle-1.js' }, - ], + aot: true, + optimization: true, experimentalRollupPass: false, - sourceMaps: true, buildOptimizer: false, // tslint:disable-next-line:no-any } as any, configurations: { one: { aot: true, - scripts: [ - { lazy: true, name: 'bundle-1.js' }, - { lazy: false, name: 'bundle-2.js' }, - { inject: true, name: 'bundle-3.js' }, - 'bundle-4.js', - ], - styles: [ - { lazy: true, name: 'bundle-1.css' }, - { lazy: false, name: 'bundle-2.css' }, - { inject: true, name: 'bundle-3.css' }, - 'bundle-3.css', - ], }, two: { experimentalRollupPass: true, - aot: true, + aot: false, + optimization: false, }, // tslint:disable-next-line:no-any } as any, @@ -85,9 +72,37 @@ describe(`Migration to update 'angular.json'. ${schematicName}`, () => { const { options, configurations } = getBuildTarget(newTree); expect(options.experimentalRollupPass).toBeUndefined(); - expect(options.sourceMaps).toBeTrue(); + expect(options.buildOptimizer).toBeFalse(); expect(configurations).toBeDefined(); expect(configurations?.one.experimentalRollupPass).toBeUndefined(); expect(configurations?.two.experimentalRollupPass).toBeUndefined(); }); + + it(`should remove value from "options" section which value is now the new default`, async () => { + const newTree = await schematicRunner.runSchematicAsync(schematicName, {}, tree).toPromise(); + const { options, configurations } = getBuildTarget(newTree); + + expect(options.aot).toBeUndefined(); + expect(configurations?.one.aot).toBeUndefined(); + expect(configurations?.two.aot).toBeFalse(); + }); + + it(`should remove value from "configuration" section when value is the same as that of "options"`, async () => { + const newTree = await schematicRunner.runSchematicAsync(schematicName, {}, tree).toPromise(); + const { options, configurations } = getBuildTarget(newTree); + + expect(options.aot).toBeUndefined(); + expect(configurations?.one.aot).toBeUndefined(); + expect(configurations?.two.aot).toBeFalse(); + }); + + it(`should add value in "options" section when option was not defined`, async () => { + const newTree = await schematicRunner.runSchematicAsync(schematicName, {}, tree).toPromise(); + const { options, configurations } = getBuildTarget(newTree); + + expect(options.sourceMap).toBeTrue(); + expect(configurations?.one.sourceMap).toBeUndefined(); + expect(configurations?.two.sourceMap).toBeUndefined(); + expect(configurations?.two.optimization).toBeFalse(); + }); }); From 0272fc55b67d1a3f986b996c8eb21aea31eedf51 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Tue, 20 Apr 2021 11:25:08 +0200 Subject: [PATCH 045/577] refactor(@schematics/angular): remove `stylus` from `style` options BREAKING CHANGE: `styl` (Stylus) is no longer a supported value as `style` in `application`, `component`, `ng-new` schematics. Stylus is not actively maintained and only 0.3% of the Angular CLI users use it. --- packages/schematics/angular/application/index.ts | 3 +-- .../schematics/angular/application/index_spec.ts | 15 --------------- .../schematics/angular/application/schema.json | 6 ++---- packages/schematics/angular/component/schema.json | 3 +-- packages/schematics/angular/ng-new/schema.json | 2 +- 5 files changed, 5 insertions(+), 24 deletions(-) diff --git a/packages/schematics/angular/application/index.ts b/packages/schematics/angular/application/index.ts index d79f1044b8d5..d46d508b0596 100644 --- a/packages/schematics/angular/application/index.ts +++ b/packages/schematics/angular/application/index.ts @@ -139,8 +139,7 @@ function addAppToWorkspaceFile(options: ApplicationOptions, appDir: string): Rul ]; } - const inlineStyleLanguage = - options.style && options.style !== Style.Css && options.style !== Style.Styl + const inlineStyleLanguage = options?.style !== Style.Css ? options.style : undefined; diff --git a/packages/schematics/angular/application/index_spec.ts b/packages/schematics/angular/application/index_spec.ts index b14ebfd5c020..f0c141c700d8 100644 --- a/packages/schematics/angular/application/index_spec.ts +++ b/packages/schematics/angular/application/index_spec.ts @@ -444,21 +444,6 @@ describe('Application Schematic', () => { expect(testOpt.inlineStyleLanguage).toBeUndefined(); }); - it('does not set "inlineStyleLanguage" in angular.json when using Stylus styles', async () => { - const options = { ...defaultOptions, projectRoot: '', style: Style.Styl }; - const tree = await schematicRunner - .runSchematicAsync('application', options, workspaceTree) - .toPromise(); - const config = JSON.parse(tree.readContent('/angular.json')); - const prj = config.projects.foo; - - const buildOpt = prj.architect.build.options; - expect(buildOpt.inlineStyleLanguage).toBeUndefined(); - - const testOpt = prj.architect.test.options; - expect(testOpt.inlineStyleLanguage).toBeUndefined(); - }); - it('should set the relative tsconfig paths', async () => { const options = { ...defaultOptions, projectRoot: '' }; const tree = await schematicRunner.runSchematicAsync('application', options, workspaceTree) diff --git a/packages/schematics/angular/application/schema.json b/packages/schematics/angular/application/schema.json index f5ad1e57dbd1..aa599f0e9ad1 100644 --- a/packages/schematics/angular/application/schema.json +++ b/packages/schematics/angular/application/schema.json @@ -60,8 +60,7 @@ "css", "scss", "sass", - "less", - "styl" + "less" ], "x-prompt": { "message": "Which stylesheet format would you like to use?", @@ -70,8 +69,7 @@ { "value": "css", "label": "CSS" }, { "value": "scss", "label": "SCSS [ https://sass-lang.com/documentation/syntax#scss ]" }, { "value": "sass", "label": "Sass [ https://sass-lang.com/documentation/syntax#the-indented-syntax ]" }, - { "value": "less", "label": "Less [ http://lesscss.org ]" }, - { "value": "styl", "label": "Stylus [ https://stylus-lang.com ]" } + { "value": "less", "label": "Less [ http://lesscss.org ]" } ] }, "x-user-analytics": 5 diff --git a/packages/schematics/angular/component/schema.json b/packages/schematics/angular/component/schema.json index 5771134a840e..39bb7b1baf99 100644 --- a/packages/schematics/angular/component/schema.json +++ b/packages/schematics/angular/component/schema.json @@ -84,8 +84,7 @@ "css", "scss", "sass", - "less", - "styl" + "less" ], "x-user-analytics": 5 }, diff --git a/packages/schematics/angular/ng-new/schema.json b/packages/schematics/angular/ng-new/schema.json index 1ea1ce692990..33cac6a11bf3 100644 --- a/packages/schematics/angular/ng-new/schema.json +++ b/packages/schematics/angular/ng-new/schema.json @@ -107,7 +107,7 @@ "style": { "description": "The file extension or preprocessor to use for style files.", "type": "string", - "enum": ["css", "scss", "sass", "less", "styl"], + "enum": ["css", "scss", "sass", "less"], "x-user-analytics": 5 }, "skipTests": { From 82ca7d08523aa5d937ebd5e9dc08f792b3801ddd Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Wed, 21 Apr 2021 07:43:36 +0200 Subject: [PATCH 046/577] fix(@angular-devkit/build-angular): show warning when using stylus Stylus is not actively maintained and only 0.3% of the Angular CLI users use it. --- .../build_angular/src/webpack/configs/styles.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/angular_devkit/build_angular/src/webpack/configs/styles.ts b/packages/angular_devkit/build_angular/src/webpack/configs/styles.ts index 288653c610a5..c789d5505df8 100644 --- a/packages/angular_devkit/build_angular/src/webpack/configs/styles.ts +++ b/packages/angular_devkit/build_angular/src/webpack/configs/styles.ts @@ -98,6 +98,13 @@ export function getStylesConfig(wco: WebpackConfigOptions): webpack.Configuratio extraPlugins.push(new RemoveHashPlugin({ chunkNames: noInjectNames, hashFormat })); } + if (globalStylePaths.some(p => p.endsWith('.styl'))) { + wco.logger.warn( + 'Stylus usage is deprecated and will be removed in a future major version. ' + + 'To opt-out of the deprecated behaviour, please migrate to another stylesheet language.', + ); + } + let sassImplementation: {} | undefined; try { // tslint:disable-next-line:no-implicit-dependencies From 2ac73c75e7c88aa26736423e5b26c69a426c5394 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Tue, 20 Apr 2021 09:56:15 -0400 Subject: [PATCH 047/577] fix(@angular-devkit/build-angular): set Tailwind CSS mode when using Tailwind Tailwind now suppports an environment variable named `TAILWIND_MODE` with possible values of `build` and `watch`. If the variable has not been set, the tooling will now set the variable based on the builder's `watch` option. --- .../angular_devkit/build_angular/src/webpack/configs/styles.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/angular_devkit/build_angular/src/webpack/configs/styles.ts b/packages/angular_devkit/build_angular/src/webpack/configs/styles.ts index c789d5505df8..1af53b2b913a 100644 --- a/packages/angular_devkit/build_angular/src/webpack/configs/styles.ts +++ b/packages/angular_devkit/build_angular/src/webpack/configs/styles.ts @@ -148,6 +148,9 @@ export function getStylesConfig(wco: WebpackConfigOptions): webpack.Configuratio ); } if (tailwindPackagePath) { + if (process.env['TAILWIND_MODE'] === undefined) { + process.env['TAILWIND_MODE'] = buildOptions.watch ? 'watch' : 'build'; + } extraPostcssPlugins.push(require(tailwindPackagePath)({ config: tailwindConfigPath })); } } From e8f22ab36dd1bc0390ff7d792eb8b097171f4c76 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Tue, 20 Apr 2021 13:33:18 -0400 Subject: [PATCH 048/577] refactor(@ngtools/webpack): remove Webpack 4 specific type casting Webpack 5 contains improved types and exports that reduce the need to perform additional type casting throughout the Angular Webpack Plugin. --- packages/ngtools/webpack/src/ivy/plugin.ts | 31 +++++++++++----------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/packages/ngtools/webpack/src/ivy/plugin.ts b/packages/ngtools/webpack/src/ivy/plugin.ts index 5b5b4f5695be..b35ea5edda74 100644 --- a/packages/ngtools/webpack/src/ivy/plugin.ts +++ b/packages/ngtools/webpack/src/ivy/plugin.ts @@ -9,7 +9,14 @@ import { CompilerHost, CompilerOptions, readConfiguration } from '@angular/compi import { NgtscProgram } from '@angular/compiler-cli/src/ngtsc/program'; import { createHash } from 'crypto'; import * as ts from 'typescript'; -import { Compilation, Compiler, Module, NormalModuleReplacementPlugin, util } from 'webpack'; +import { + Compilation, + Compiler, + Module, + NormalModule, + NormalModuleReplacementPlugin, + util, +} from 'webpack'; import { NgccProcessor } from '../ngcc_processor'; import { TypeScriptPathsPlugin } from '../paths-plugin'; import { WebpackResourceLoader } from '../resource_loader'; @@ -59,7 +66,7 @@ function initializeNgccProcessor( tsconfig: string, ): { processor: NgccProcessor; errors: string[]; warnings: string[] } { const { inputFileSystem, options: webpackOptions } = compiler; - const mainFields = ([] as string[]).concat(...(webpackOptions.resolve?.mainFields || [])); + const mainFields = webpackOptions.resolve?.mainFields?.flat() ?? []; const errors: string[] = []; const warnings: string[] = []; @@ -111,8 +118,7 @@ export class AngularWebpackPlugin { return this.pluginOptions; } - apply(webpackCompiler: Compiler): void { - const compiler = webpackCompiler as Compiler & { watchMode?: boolean }; + apply(compiler: Compiler): void { // Setup file replacements with webpack for (const [key, value] of Object.entries(this.pluginOptions.fileReplacements)) { new NormalModuleReplacementPlugin( @@ -124,28 +130,21 @@ export class AngularWebpackPlugin { // Set resolver options const pathsPlugin = new TypeScriptPathsPlugin(); compiler.hooks.afterResolvers.tap('angular-compiler', (compiler) => { - // 'resolverFactory' is not present in the Webpack typings - // tslint:disable-next-line: no-any - const resolverFactoryHooks = (compiler as any).resolverFactory.hooks; - // When Ivy is enabled we need to add the fields added by NGCC // to take precedence over the provided mainFields. // NGCC adds fields in package.json suffixed with '_ivy_ngcc' // Example: module -> module__ivy_ngcc - resolverFactoryHooks.resolveOptions + compiler.resolverFactory.hooks.resolveOptions .for('normal') - .tap(PLUGIN_NAME, (resolveOptions: { mainFields: string[]; plugins: unknown[] }) => { + .tap(PLUGIN_NAME, (resolveOptions) => { const originalMainFields = resolveOptions.mainFields; - const ivyMainFields = originalMainFields.map((f) => `${f}_ivy_ngcc`); + const ivyMainFields = originalMainFields?.flat().map((f) => `${f}_ivy_ngcc`) ?? []; - if (!resolveOptions.plugins) { - resolveOptions.plugins = []; - } + resolveOptions.plugins ??= []; resolveOptions.plugins.push(pathsPlugin); // https://github.com/webpack/webpack/issues/11635#issuecomment-707016779 return util.cleverMerge(resolveOptions, { mainFields: [...ivyMainFields, '...'] }); - }); }); @@ -356,7 +355,7 @@ export class AngularWebpackPlugin { if (filesToRebuild.size > 0) { for (const webpackModule of [...modules]) { - const resource = (webpackModule as Module & { resource?: string }).resource; + const resource = (webpackModule as NormalModule).resource; if (resource && filesToRebuild.has(normalizePath(resource))) { await rebuild(webpackModule); } From 86754e4750bedcad1e51a607e09804d0183b074f Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Tue, 20 Apr 2021 21:21:29 -0400 Subject: [PATCH 049/577] refactor(@ngtools/webpack): use Webpack 5 modified/removed file sets for changed list Webpack 5 directly provides the set of modified and removed files. This feature allows for the removal of the file timestamp logic within the plugin that was previously used to generated the set of changed files on a rebuild. --- packages/ngtools/webpack/src/ivy/cache.ts | 34 ++++------------------ packages/ngtools/webpack/src/ivy/plugin.ts | 17 ++++++----- 2 files changed, 14 insertions(+), 37 deletions(-) diff --git a/packages/ngtools/webpack/src/ivy/cache.ts b/packages/ngtools/webpack/src/ivy/cache.ts index 1b3856b238c0..b6363a0351d8 100644 --- a/packages/ngtools/webpack/src/ivy/cache.ts +++ b/packages/ngtools/webpack/src/ivy/cache.ts @@ -11,36 +11,12 @@ import { normalizePath } from './paths'; export class SourceFileCache extends Map { private readonly angularDiagnostics = new Map(); - invalidate( - fileTimestamps: Map, - buildTimestamp: number, - ): Set { - const changedFiles = new Set(); - for (const [file, timeOrEntry] of fileTimestamps) { - if (timeOrEntry === 'ignore') { - continue; - } - - let time; - if (typeof timeOrEntry === 'number') { - time = timeOrEntry; - } else if (timeOrEntry) { - time = timeOrEntry.safeTime; - } - - if (!time || time >= buildTimestamp) { - // Cache stores paths using the POSIX directory separator - const normalizedFile = normalizePath(file); - const sourceFile = this.get(normalizedFile); - if (sourceFile) { - this.delete(normalizedFile); - this.angularDiagnostics.delete(sourceFile); - } - changedFiles.add(normalizedFile); - } + invalidate(file: string): void { + const sourceFile = this.get(file); + if (sourceFile) { + this.delete(file); + this.angularDiagnostics.delete(sourceFile); } - - return changedFiles; } updateAngularDiagnostics(sourceFile: ts.SourceFile, diagnostics: ts.Diagnostic[]): void { diff --git a/packages/ngtools/webpack/src/ivy/plugin.ts b/packages/ngtools/webpack/src/ivy/plugin.ts index b35ea5edda74..970d826b2eee 100644 --- a/packages/ngtools/webpack/src/ivy/plugin.ts +++ b/packages/ngtools/webpack/src/ivy/plugin.ts @@ -95,7 +95,6 @@ export class AngularWebpackPlugin { private ngtscNextProgram?: NgtscProgram; private builder?: ts.EmitAndSemanticDiagnosticsBuilderProgram; private sourceFileCache?: SourceFileCache; - private buildTimestamp!: number; private readonly fileDependencies = new Map>(); private readonly requiredFilesToEmit = new Set(); private readonly requiredFilesToEmitCache = new Map(); @@ -204,12 +203,15 @@ export class AngularWebpackPlugin { let cache = this.sourceFileCache; let changedFiles; if (cache) { - // Invalidate existing cache based on compiler file timestamps - changedFiles = cache.invalidate(compiler.fileTimestamps, this.buildTimestamp); - - // Invalidate file dependencies of changed files - for (const changedFile of changedFiles) { - this.fileDependencies.delete(normalizePath(changedFile)); + changedFiles = new Set(); + for (const changedFile of [...compiler.modifiedFiles, ...compiler.removedFiles]) { + const normalizedChangedFile = normalizePath(changedFile); + // Invalidate file dependencies + this.fileDependencies.delete(normalizedChangedFile); + // Invalidate existing cache + cache.invalidate(normalizedChangedFile); + + changedFiles.add(normalizedChangedFile); } } else { // Initialize a new cache @@ -219,7 +221,6 @@ export class AngularWebpackPlugin { this.sourceFileCache = cache; } } - this.buildTimestamp = Date.now(); augmentHostWithCaching(host, cache); const moduleResolutionCache = ts.createModuleResolutionCache( From eed56ab839b6b9b5281f2405c6096073ff4d9103 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Wed, 21 Apr 2021 10:11:17 +0200 Subject: [PATCH 050/577] fix(@angular-devkit/build-angular): avoid triggering file change after file build When using the `ContextReplacementPlugin` https://github.com/angular/angular-cli/blob/master/packages/angular_devkit/build_angular/src/webpack/configs/common.ts#L496 the new resource path will be watched by Webpack file watcher. This causes a redundant file remove event after the first build, which causes another partial rebuild right way. Note: changing the call to ` new ContextReplacementPlugin(/\@angular(\\|\/)core(\\|\/)/);` doesn't address the problem. --- .../angular_devkit/build_angular/src/webpack/utils/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular_devkit/build_angular/src/webpack/utils/helpers.ts b/packages/angular_devkit/build_angular/src/webpack/utils/helpers.ts index 832a2bc15a49..e133a495dd91 100644 --- a/packages/angular_devkit/build_angular/src/webpack/utils/helpers.ts +++ b/packages/angular_devkit/build_angular/src/webpack/utils/helpers.ts @@ -121,7 +121,7 @@ export function isPolyfillsEntry(name: string): boolean { export function getWatchOptions(poll: number | undefined): Configuration['watchOptions'] { return { poll, - ignored: poll === undefined ? undefined : 'node_modules/**', + ignored: poll === undefined ? '**/$_lazy_route_resources' : 'node_modules/**', }; } From 3d30e89c6164c1663a5fc6de7cb8187e8b6cb27d Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Tue, 20 Apr 2021 19:18:34 +0200 Subject: [PATCH 051/577] docs(@schematics/angular): remove hidden schematics from readme Universal and E2E schematics are hidden/private. --- packages/schematics/angular/README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/schematics/angular/README.md b/packages/schematics/angular/README.md index 2d6059c3866e..69d403c240e0 100644 --- a/packages/schematics/angular/README.md +++ b/packages/schematics/angular/README.md @@ -12,7 +12,6 @@ application | Generates a new basic app definition in the "projects" subfolder o class | Creates a new, generic class definition in the given or default project component | Creates a new, generic component definition in the given or default project directive | Creates a new, generic directive definition in the given or default project -e2e | Generates a new, generic end-to-end test definition for the given or default project enum | Generates a new, generic enum definition for the given or default project guard | Generates a new, generic route guard definition in the given or default project interceptor | Creates a new, generic interceptor definition in the given or default project @@ -24,10 +23,9 @@ pipe | Creates a new, generic pipe definition in the given or default project resolver | Creates a new, generic resolver definition in the given or default project service | Creates a new, generic service definition in the given or default project service-worker | Pass this schematic to the "run" command to create a service worker -universal | Pass this schematic to the "run" command to set up server-side rendering for an app web-worker | Creates a new, generic web worker definition in the given or default project workspace | Initializes an empty workspace and adds the necessary dependencies required by an Angular application ## Disclaimer -While the schematics when executed via the Angular CLI and their associated options are considered stable, the programmatic APIs are not considered officially supported and are not subject to the breaking change guarantees of SemVer. \ No newline at end of file +While the schematics when executed via the Angular CLI and their associated options are considered stable, the programmatic APIs are not considered officially supported and are not subject to the breaking change guarantees of SemVer. From 4c9cbecc8d8dea7d5b1d435688148c750708f174 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 20 Apr 2021 08:23:05 +0000 Subject: [PATCH 052/577] build: update sass to version 1.32.11 --- package.json | 2 +- packages/angular_devkit/build_angular/package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index a49437e6c996..47498525fc32 100644 --- a/package.json +++ b/package.json @@ -195,7 +195,7 @@ "resolve-url-loader": "3.1.2", "rimraf": "3.0.2", "rxjs": "6.6.7", - "sass": "1.32.10", + "sass": "1.32.11", "sass-loader": "11.0.1", "sauce-connect-proxy": "https://saucelabs.com/downloads/sc-4.6.4-linux.tar.gz", "semver": "7.3.5", diff --git a/packages/angular_devkit/build_angular/package.json b/packages/angular_devkit/build_angular/package.json index edb4981b33f3..2a5e9245cf47 100644 --- a/packages/angular_devkit/build_angular/package.json +++ b/packages/angular_devkit/build_angular/package.json @@ -55,7 +55,7 @@ "resolve-url-loader": "3.1.2", "rimraf": "3.0.2", "rxjs": "6.6.7", - "sass": "1.32.10", + "sass": "1.32.11", "sass-loader": "11.0.1", "semver": "7.3.5", "source-map": "0.7.3", diff --git a/yarn.lock b/yarn.lock index 88f1a51bde65..ac14e884c8a4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9730,10 +9730,10 @@ sass-loader@11.0.1: klona "^2.0.4" neo-async "^2.6.2" -sass@1.32.10: - version "1.32.10" - resolved "https://registry.yarnpkg.com/sass/-/sass-1.32.10.tgz#d40da4e20031b450359ee1c7e69bc8cc89569241" - integrity sha512-Nx0pcWoonAkn7CRp0aE/hket1UP97GiR1IFw3kcjV3pnenhWgZEWUf0ZcfPOV2fK52fnOcK3JdC/YYZ9E47DTQ== +sass@1.32.11: + version "1.32.11" + resolved "https://registry.yarnpkg.com/sass/-/sass-1.32.11.tgz#b236b3ea55c76602c2ef2bd0445f0db581baa218" + integrity sha512-O9tRcob/fegUVSIV1ihLLZcftIOh0AF1VpKgusUfLqnb2jQ0GLDwI5ivv1FYWivGv8eZ/AwntTyTzjcHu0c/qw== dependencies: chokidar ">=3.0.0 <4.0.0" From f96914f0d38338cac49939f4d85c0e029220e76a Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 21 Apr 2021 10:54:31 +0000 Subject: [PATCH 053/577] build: update webpack to version 5.35.0 --- package.json | 2 +- packages/angular_devkit/build_angular/package.json | 2 +- packages/angular_devkit/build_optimizer/package.json | 2 +- packages/angular_devkit/build_webpack/package.json | 2 +- packages/ngtools/webpack/package.json | 2 +- yarn.lock | 8 ++++---- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 47498525fc32..1eda5032a768 100644 --- a/package.json +++ b/package.json @@ -223,7 +223,7 @@ "typescript": "4.2.4", "verdaccio": "5.0.1", "verdaccio-auth-memory": "^10.0.0", - "webpack": "5.34.0", + "webpack": "5.35.0", "webpack-dev-middleware": "4.1.0", "webpack-dev-server": "3.11.2", "webpack-merge": "5.7.3", diff --git a/packages/angular_devkit/build_angular/package.json b/packages/angular_devkit/build_angular/package.json index 2a5e9245cf47..938f163279c1 100644 --- a/packages/angular_devkit/build_angular/package.json +++ b/packages/angular_devkit/build_angular/package.json @@ -68,7 +68,7 @@ "terser-webpack-plugin": "4.2.3", "text-table": "0.2.0", "tree-kill": "1.2.2", - "webpack": "5.34.0", + "webpack": "5.35.0", "webpack-dev-middleware": "4.1.0", "webpack-dev-server": "3.11.2", "webpack-merge": "5.7.3", diff --git a/packages/angular_devkit/build_optimizer/package.json b/packages/angular_devkit/build_optimizer/package.json index 78ae330b1db9..348cc63e7811 100644 --- a/packages/angular_devkit/build_optimizer/package.json +++ b/packages/angular_devkit/build_optimizer/package.json @@ -22,6 +22,6 @@ } }, "devDependencies": { - "webpack": "5.34.0" + "webpack": "5.35.0" } } diff --git a/packages/angular_devkit/build_webpack/package.json b/packages/angular_devkit/build_webpack/package.json index 6d199c8a2048..57c51ff3b3b1 100644 --- a/packages/angular_devkit/build_webpack/package.json +++ b/packages/angular_devkit/build_webpack/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@angular-devkit/core": "0.0.0", "node-fetch": "2.6.1", - "webpack": "5.34.0" + "webpack": "5.35.0" }, "peerDependencies": { "webpack": "^5.30.0", diff --git a/packages/ngtools/webpack/package.json b/packages/ngtools/webpack/package.json index 7252684b7d72..4ff48e745fa2 100644 --- a/packages/ngtools/webpack/package.json +++ b/packages/ngtools/webpack/package.json @@ -33,6 +33,6 @@ "@angular/compiler": "12.0.0-next.9", "@angular/compiler-cli": "12.0.0-next.9", "typescript": "4.2.4", - "webpack": "5.34.0" + "webpack": "5.35.0" } } diff --git a/yarn.lock b/yarn.lock index ac14e884c8a4..3f1bbf7667a6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11552,10 +11552,10 @@ webpack-subresource-integrity@1.5.2: dependencies: webpack-sources "^1.3.0" -webpack@5.34.0: - version "5.34.0" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.34.0.tgz#8f12bfd3474e7543232345b89294cfe8a5191c10" - integrity sha512-+WiFMgaZqhu7zKN64LQ7z0Ml4WWI+9RwG6zmS0wJDQXiCeg3hpN8fYFNJ+6WlosDT55yVxTfK7XHUAOVR4rLyA== +webpack@5.35.0: + version "5.35.0" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.35.0.tgz#4db23c2b96c4e53a90c5732d7cdb301a84a33576" + integrity sha512-au3gu55yYF/h6NXFr0KZPZAYxS6Nlc595BzYPke8n0CSff5WXcoixtjh5LC/8mXunkRKxhymhXmBY0+kEbR6jg== dependencies: "@types/eslint-scope" "^3.7.0" "@types/estree" "^0.0.47" From f28412c3e08e96765f90ff8e94f8260a745fe221 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Thu, 22 Apr 2021 05:55:10 +0000 Subject: [PATCH 054/577] build: update babel packages --- package.json | 10 +- .../angular_devkit/build_angular/package.json | 10 +- yarn.lock | 173 +++++++----------- 3 files changed, 74 insertions(+), 119 deletions(-) diff --git a/package.json b/package.json index 1eda5032a768..57961b0c1149 100644 --- a/package.json +++ b/package.json @@ -78,11 +78,11 @@ "@angular/platform-server": "12.0.0-next.9", "@angular/router": "12.0.0-next.9", "@angular/service-worker": "12.0.0-next.9", - "@babel/core": "7.13.13", - "@babel/generator": "7.13.9", - "@babel/plugin-transform-runtime": "7.13.10", - "@babel/preset-env": "7.13.12", - "@babel/runtime": "7.13.10", + "@babel/core": "7.13.16", + "@babel/generator": "7.13.16", + "@babel/plugin-transform-runtime": "7.13.15", + "@babel/preset-env": "7.13.15", + "@babel/runtime": "7.13.17", "@babel/template": "7.12.13", "@bazel/bazelisk": "1.7.5", "@bazel/buildifier": "4.0.1", diff --git a/packages/angular_devkit/build_angular/package.json b/packages/angular_devkit/build_angular/package.json index 938f163279c1..b54f00a26b3c 100644 --- a/packages/angular_devkit/build_angular/package.json +++ b/packages/angular_devkit/build_angular/package.json @@ -10,12 +10,12 @@ "@angular-devkit/build-optimizer": "0.0.0", "@angular-devkit/build-webpack": "0.0.0", "@angular-devkit/core": "0.0.0", - "@babel/core": "7.13.13", - "@babel/generator": "7.13.9", + "@babel/core": "7.13.16", + "@babel/generator": "7.13.16", "@babel/plugin-transform-async-to-generator": "7.13.0", - "@babel/plugin-transform-runtime": "7.13.10", - "@babel/preset-env": "7.13.12", - "@babel/runtime": "7.13.10", + "@babel/plugin-transform-runtime": "7.13.15", + "@babel/preset-env": "7.13.15", + "@babel/runtime": "7.13.17", "@babel/template": "7.12.13", "@discoveryjs/json-ext": "0.5.2", "@jsdevtools/coverage-istanbul-loader": "3.0.5", diff --git a/yarn.lock b/yarn.lock index 3f1bbf7667a6..2373b856dc9a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -186,30 +186,29 @@ dependencies: "@babel/highlight" "^7.12.13" -"@babel/compat-data@^7.13.0", "@babel/compat-data@^7.13.12", "@babel/compat-data@^7.13.15", "@babel/compat-data@^7.13.8": +"@babel/compat-data@^7.13.11", "@babel/compat-data@^7.13.15", "@babel/compat-data@^7.13.8": version "7.13.15" resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.13.15.tgz#7e8eea42d0b64fda2b375b22d06c605222e848f4" integrity sha512-ltnibHKR1VnrU4ymHyQ/CXtNXI6yZC0oJThyW78Hft8XndANwi+9H+UIklBDraIjFEJzw8wmcM427oDd9KS5wA== -"@babel/core@7.13.13": - version "7.13.13" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.13.13.tgz#bc44c4a2be2288ec4ddf56b66fc718019c76ac29" - integrity sha512-1xEs9jZAyKIouOoCmpsgk/I26PoKyvzQ2ixdRpRzfbcp1fL+ozw7TUgdDgwonbTovqRaTfRh50IXuw4QrWO0GA== +"@babel/core@7.13.16", "@babel/core@^7.7.5", "@babel/core@^7.8.6": + version "7.13.16" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.13.16.tgz#7756ab24396cc9675f1c3fcd5b79fcce192ea96a" + integrity sha512-sXHpixBiWWFti0AV2Zq7avpTasr6sIAu7Y396c608541qAU2ui4a193m0KSQmfPSKFZLnQ3cvlKDOm3XkuXm3Q== dependencies: "@babel/code-frame" "^7.12.13" - "@babel/generator" "^7.13.9" - "@babel/helper-compilation-targets" "^7.13.13" - "@babel/helper-module-transforms" "^7.13.12" - "@babel/helpers" "^7.13.10" - "@babel/parser" "^7.13.13" + "@babel/generator" "^7.13.16" + "@babel/helper-compilation-targets" "^7.13.16" + "@babel/helper-module-transforms" "^7.13.14" + "@babel/helpers" "^7.13.16" + "@babel/parser" "^7.13.16" "@babel/template" "^7.12.13" - "@babel/traverse" "^7.13.13" - "@babel/types" "^7.13.13" + "@babel/traverse" "^7.13.15" + "@babel/types" "^7.13.16" convert-source-map "^1.7.0" debug "^4.1.0" gensync "^1.0.0-beta.2" json5 "^2.1.2" - lodash "^4.17.19" semver "^6.3.0" source-map "^0.5.0" @@ -234,37 +233,7 @@ semver "^5.4.1" source-map "^0.5.0" -"@babel/core@^7.7.5", "@babel/core@^7.8.6": - version "7.13.16" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.13.16.tgz#7756ab24396cc9675f1c3fcd5b79fcce192ea96a" - integrity sha512-sXHpixBiWWFti0AV2Zq7avpTasr6sIAu7Y396c608541qAU2ui4a193m0KSQmfPSKFZLnQ3cvlKDOm3XkuXm3Q== - dependencies: - "@babel/code-frame" "^7.12.13" - "@babel/generator" "^7.13.16" - "@babel/helper-compilation-targets" "^7.13.16" - "@babel/helper-module-transforms" "^7.13.14" - "@babel/helpers" "^7.13.16" - "@babel/parser" "^7.13.16" - "@babel/template" "^7.12.13" - "@babel/traverse" "^7.13.15" - "@babel/types" "^7.13.16" - convert-source-map "^1.7.0" - debug "^4.1.0" - gensync "^1.0.0-beta.2" - json5 "^2.1.2" - semver "^6.3.0" - source-map "^0.5.0" - -"@babel/generator@7.13.9": - version "7.13.9" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.13.9.tgz#3a7aa96f9efb8e2be42d38d80e2ceb4c64d8de39" - integrity sha512-mHOOmY0Axl/JCTkxTU6Lf5sWOg/v8nUa+Xkt4zMTftX0wqmb6Sh7J8gvcehBw7q0AhrhAR+FDacKjCZ2X8K+Sw== - dependencies: - "@babel/types" "^7.13.0" - jsesc "^2.5.1" - source-map "^0.5.0" - -"@babel/generator@^7.13.16", "@babel/generator@^7.13.9", "@babel/generator@^7.8.3": +"@babel/generator@7.13.16", "@babel/generator@^7.13.16", "@babel/generator@^7.8.3": version "7.13.16" resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.13.16.tgz#0befc287031a201d84cdfc173b46b320ae472d14" integrity sha512-grBBR75UnKOcUWMp8WoDxNsWCFl//XCK6HWTrBQKTr5SV9f5g0pNOjdyzi/DTBv12S9GnYPInIXQBTky7OXEMg== @@ -288,7 +257,7 @@ "@babel/helper-explode-assignable-expression" "^7.12.13" "@babel/types" "^7.12.13" -"@babel/helper-compilation-targets@^7.13.0", "@babel/helper-compilation-targets@^7.13.10", "@babel/helper-compilation-targets@^7.13.13", "@babel/helper-compilation-targets@^7.13.16", "@babel/helper-compilation-targets@^7.13.8": +"@babel/helper-compilation-targets@^7.13.0", "@babel/helper-compilation-targets@^7.13.13", "@babel/helper-compilation-targets@^7.13.16", "@babel/helper-compilation-targets@^7.13.8": version "7.13.16" resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.13.16.tgz#6e91dccf15e3f43e5556dffe32d860109887563c" integrity sha512-3gmkYIrpqsLlieFwjkGgLaSHmhnvlAYzZLlYVjlW+QwI+1zE17kGxuJGmIqDQdYp56XdmGeD+Bswx0UTyG18xA== @@ -317,10 +286,10 @@ "@babel/helper-annotate-as-pure" "^7.12.13" regexpu-core "^4.7.1" -"@babel/helper-define-polyfill-provider@^0.1.5": - version "0.1.5" - resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.1.5.tgz#3c2f91b7971b9fc11fe779c945c014065dea340e" - integrity sha512-nXuzCSwlJ/WKr8qxzW816gwyT6VZgiJG17zR40fou70yfAcqjoNyTLl/DQ+FExw5Hx5KNqshmN8Ldl/r2N7cTg== +"@babel/helper-define-polyfill-provider@^0.2.0": + version "0.2.0" + resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.2.0.tgz#a640051772045fedaaecc6f0c6c69f02bdd34bf1" + integrity sha512-JT8tHuFjKBo8NnaUbblz7mIu1nnvUDiHVjXXkulZULyidvo/7P6TY7+YqpV37IfF+KUFxmlK04elKtGKXaiVgw== dependencies: "@babel/helper-compilation-targets" "^7.13.0" "@babel/helper-module-imports" "^7.12.13" @@ -376,7 +345,7 @@ dependencies: "@babel/types" "^7.13.12" -"@babel/helper-module-transforms@^7.13.0", "@babel/helper-module-transforms@^7.13.12", "@babel/helper-module-transforms@^7.13.14": +"@babel/helper-module-transforms@^7.13.0", "@babel/helper-module-transforms@^7.13.14": version "7.13.14" resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.13.14.tgz#e600652ba48ccb1641775413cb32cfa4e8b495ef" integrity sha512-QuU/OJ0iAOSIatyVZmfqB0lbkVP0kDRiKj34xy+QNsnVZi/PA6BoSoreeqnxxa9EHFAIL0R9XOaAR/G9WlIy5g== @@ -462,7 +431,7 @@ "@babel/traverse" "^7.13.0" "@babel/types" "^7.13.0" -"@babel/helpers@^7.13.10", "@babel/helpers@^7.13.16", "@babel/helpers@^7.8.3": +"@babel/helpers@^7.13.16", "@babel/helpers@^7.8.3": version "7.13.17" resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.13.17.tgz#b497c7a00e9719d5b613b8982bda6ed3ee94caf6" integrity sha512-Eal4Gce4kGijo1/TGJdqp3WuhllaMLSrW6XcL0ulyUAQOuxHcCafZE8KHg9857gcTehsm/v7RcOx2+jp0Ryjsg== @@ -480,7 +449,7 @@ chalk "^2.0.0" js-tokens "^4.0.0" -"@babel/parser@^7.1.0", "@babel/parser@^7.12.13", "@babel/parser@^7.13.13", "@babel/parser@^7.13.16", "@babel/parser@^7.8.3": +"@babel/parser@^7.1.0", "@babel/parser@^7.12.13", "@babel/parser@^7.13.16", "@babel/parser@^7.8.3": version "7.13.16" resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.13.16.tgz#0f18179b0448e6939b1f3f5c4c355a3a9bcdfd37" integrity sha512-6bAg36mCwuqLO0hbR+z7PHuqWiCeP7Dzg73OpQwsAB1Eb8HnGEz5xYBzCfbu+YjoaJsJs+qheDxVAuqbt3ILEw== @@ -494,7 +463,7 @@ "@babel/helper-skip-transparent-expression-wrappers" "^7.12.1" "@babel/plugin-proposal-optional-chaining" "^7.13.12" -"@babel/plugin-proposal-async-generator-functions@^7.13.8": +"@babel/plugin-proposal-async-generator-functions@^7.13.15": version "7.13.15" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.13.15.tgz#80e549df273a3b3050431b148c892491df1bcc5b" integrity sha512-VapibkWzFeoa6ubXy/NgV5U2U4MVnUlvnx6wo1XhlsaTrLYWE0UFpDQsVrmn22q5CzeloqJ8gEMHSKxuee6ZdA== @@ -870,7 +839,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.12.13" -"@babel/plugin-transform-regenerator@^7.12.13": +"@babel/plugin-transform-regenerator@^7.13.15": version "7.13.15" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.13.15.tgz#e5eb28945bf8b6563e7f818945f966a8d2997f39" integrity sha512-Bk9cOLSz8DiurcMETZ8E2YtIVJbFCPGW28DJWUakmyVWtQSm6Wsf0p4B4BfEr/eL2Nkhe/CICiUiMOCi1TPhuQ== @@ -884,16 +853,16 @@ dependencies: "@babel/helper-plugin-utils" "^7.12.13" -"@babel/plugin-transform-runtime@7.13.10": - version "7.13.10" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.13.10.tgz#a1e40d22e2bf570c591c9c7e5ab42d6bf1e419e1" - integrity sha512-Y5k8ipgfvz5d/76tx7JYbKQTcgFSU6VgJ3kKQv4zGTKr+a9T/KBvfRvGtSFgKDQGt/DBykQixV0vNWKIdzWErA== +"@babel/plugin-transform-runtime@7.13.15": + version "7.13.15" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.13.15.tgz#2eddf585dd066b84102517e10a577f24f76a9cd7" + integrity sha512-d+ezl76gx6Jal08XngJUkXM4lFXK/5Ikl9Mh4HKDxSfGJXmZ9xG64XT2oivBzfxb/eQ62VfvoMkaCZUKJMVrBA== dependencies: - "@babel/helper-module-imports" "^7.12.13" + "@babel/helper-module-imports" "^7.13.12" "@babel/helper-plugin-utils" "^7.13.0" - babel-plugin-polyfill-corejs2 "^0.1.4" - babel-plugin-polyfill-corejs3 "^0.1.3" - babel-plugin-polyfill-regenerator "^0.1.2" + babel-plugin-polyfill-corejs2 "^0.2.0" + babel-plugin-polyfill-corejs3 "^0.2.0" + babel-plugin-polyfill-regenerator "^0.2.0" semver "^6.3.0" "@babel/plugin-transform-shorthand-properties@^7.12.13": @@ -947,17 +916,17 @@ "@babel/helper-create-regexp-features-plugin" "^7.12.13" "@babel/helper-plugin-utils" "^7.12.13" -"@babel/preset-env@7.13.12": - version "7.13.12" - resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.13.12.tgz#6dff470478290582ac282fb77780eadf32480237" - integrity sha512-JzElc6jk3Ko6zuZgBtjOd01pf9yYDEIH8BcqVuYIuOkzOwDesoa/Nz4gIo4lBG6K861KTV9TvIgmFuT6ytOaAA== +"@babel/preset-env@7.13.15": + version "7.13.15" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.13.15.tgz#c8a6eb584f96ecba183d3d414a83553a599f478f" + integrity sha512-D4JAPMXcxk69PKe81jRJ21/fP/uYdcTZ3hJDF5QX2HSI9bBxxYw/dumdR6dGumhjxlprHPE4XWoPaqzZUVy2MA== dependencies: - "@babel/compat-data" "^7.13.12" - "@babel/helper-compilation-targets" "^7.13.10" + "@babel/compat-data" "^7.13.15" + "@babel/helper-compilation-targets" "^7.13.13" "@babel/helper-plugin-utils" "^7.13.0" "@babel/helper-validator-option" "^7.12.17" "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.13.12" - "@babel/plugin-proposal-async-generator-functions" "^7.13.8" + "@babel/plugin-proposal-async-generator-functions" "^7.13.15" "@babel/plugin-proposal-class-properties" "^7.13.0" "@babel/plugin-proposal-dynamic-import" "^7.13.8" "@babel/plugin-proposal-export-namespace-from" "^7.12.13" @@ -1005,7 +974,7 @@ "@babel/plugin-transform-object-super" "^7.12.13" "@babel/plugin-transform-parameters" "^7.13.0" "@babel/plugin-transform-property-literals" "^7.12.13" - "@babel/plugin-transform-regenerator" "^7.12.13" + "@babel/plugin-transform-regenerator" "^7.13.15" "@babel/plugin-transform-reserved-words" "^7.12.13" "@babel/plugin-transform-shorthand-properties" "^7.12.13" "@babel/plugin-transform-spread" "^7.13.0" @@ -1015,10 +984,10 @@ "@babel/plugin-transform-unicode-escapes" "^7.12.13" "@babel/plugin-transform-unicode-regex" "^7.12.13" "@babel/preset-modules" "^0.1.4" - "@babel/types" "^7.13.12" - babel-plugin-polyfill-corejs2 "^0.1.4" - babel-plugin-polyfill-corejs3 "^0.1.3" - babel-plugin-polyfill-regenerator "^0.1.2" + "@babel/types" "^7.13.14" + babel-plugin-polyfill-corejs2 "^0.2.0" + babel-plugin-polyfill-corejs3 "^0.2.0" + babel-plugin-polyfill-regenerator "^0.2.0" core-js-compat "^3.9.0" semver "^6.3.0" @@ -1033,14 +1002,7 @@ "@babel/types" "^7.4.4" esutils "^2.0.2" -"@babel/runtime@7.13.10": - version "7.13.10" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.13.10.tgz#47d42a57b6095f4468da440388fdbad8bebf0d7d" - integrity sha512-4QPkjJq6Ns3V/RgpEahRk+AGfL0eO6RHHtTWoNNr5mO49G6B5+X6d6THgWEAvTrznU5xYpbAlVKRYcsCgh/Akw== - dependencies: - regenerator-runtime "^0.13.4" - -"@babel/runtime@^7.8.4": +"@babel/runtime@7.13.17", "@babel/runtime@^7.8.4": version "7.13.17" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.13.17.tgz#8966d1fc9593bf848602f0662d6b4d0069e3a7ec" integrity sha512-NCdgJEelPTSh+FEFylhnP1ylq848l1z9t9N0j1Lfbcw0+KXGjsTvUmkxy+voLLXB5SOKMbLLx4jxYliGrYQseA== @@ -1070,7 +1032,7 @@ debug "^4.1.0" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.12.1", "@babel/types@^7.12.13", "@babel/types@^7.13.0", "@babel/types@^7.13.12", "@babel/types@^7.13.13", "@babel/types@^7.13.14", "@babel/types@^7.13.16", "@babel/types@^7.13.17", "@babel/types@^7.3.0", "@babel/types@^7.4.4", "@babel/types@^7.8.3", "@babel/types@^7.8.6": +"@babel/types@^7.0.0", "@babel/types@^7.12.1", "@babel/types@^7.12.13", "@babel/types@^7.13.0", "@babel/types@^7.13.12", "@babel/types@^7.13.14", "@babel/types@^7.13.16", "@babel/types@^7.13.17", "@babel/types@^7.3.0", "@babel/types@^7.4.4", "@babel/types@^7.8.3", "@babel/types@^7.8.6": version "7.13.17" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.13.17.tgz#48010a115c9fba7588b4437dd68c9469012b38b4" integrity sha512-RawydLgxbOPDlTLJNtoIypwdmAy//uQIzlKt2+iBiJaRlVuI6QLUxVAyWGNfOzp8Yu4L4lLIacoCyTNtpb4wiA== @@ -2581,29 +2543,29 @@ babel-plugin-dynamic-import-node@^2.3.3: dependencies: object.assign "^4.1.0" -babel-plugin-polyfill-corejs2@^0.1.4: - version "0.1.10" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.1.10.tgz#a2c5c245f56c0cac3dbddbf0726a46b24f0f81d1" - integrity sha512-DO95wD4g0A8KRaHKi0D51NdGXzvpqVLnLu5BTvDlpqUEpTmeEtypgC1xqesORaWmiUOQI14UHKlzNd9iZ2G3ZA== +babel-plugin-polyfill-corejs2@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.2.0.tgz#686775bf9a5aa757e10520903675e3889caeedc4" + integrity sha512-9bNwiR0dS881c5SHnzCmmGlMkJLl0OUZvxrxHo9w/iNoRuqaPjqlvBf4HrovXtQs/au5yKkpcdgfT1cC5PAZwg== dependencies: - "@babel/compat-data" "^7.13.0" - "@babel/helper-define-polyfill-provider" "^0.1.5" + "@babel/compat-data" "^7.13.11" + "@babel/helper-define-polyfill-provider" "^0.2.0" semver "^6.1.1" -babel-plugin-polyfill-corejs3@^0.1.3: - version "0.1.7" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.1.7.tgz#80449d9d6f2274912e05d9e182b54816904befd0" - integrity sha512-u+gbS9bbPhZWEeyy1oR/YaaSpod/KDT07arZHb80aTpl8H5ZBq+uN1nN9/xtX7jQyfLdPfoqI4Rue/MQSWJquw== +babel-plugin-polyfill-corejs3@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.2.0.tgz#f4b4bb7b19329827df36ff56f6e6d367026cb7a2" + integrity sha512-zZyi7p3BCUyzNxLx8KV61zTINkkV65zVkDAFNZmrTCRVhjo1jAS+YLvDJ9Jgd/w2tsAviCwFHReYfxO3Iql8Yg== dependencies: - "@babel/helper-define-polyfill-provider" "^0.1.5" - core-js-compat "^3.8.1" + "@babel/helper-define-polyfill-provider" "^0.2.0" + core-js-compat "^3.9.1" -babel-plugin-polyfill-regenerator@^0.1.2: - version "0.1.6" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.1.6.tgz#0fe06a026fe0faa628ccc8ba3302da0a6ce02f3f" - integrity sha512-OUrYG9iKPKz8NxswXbRAdSwF0GhRdIEMTloQATJi4bDuFqrXaXcCUT/VGNrr8pBcjMh1RxZ7Xt9cytVJTJfvMg== +babel-plugin-polyfill-regenerator@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.2.0.tgz#853f5f5716f4691d98c84f8069c7636ea8da7ab8" + integrity sha512-J7vKbCuD2Xi/eEHxquHN14bXAW9CXtecwuLrOIDJtcZzTaPzV1VdEfoUf9AzcRBMolKUQKM9/GVojeh0hFiqMg== dependencies: - "@babel/helper-define-polyfill-provider" "^0.1.5" + "@babel/helper-define-polyfill-provider" "^0.2.0" balanced-match@^1.0.0: version "1.0.2" @@ -3623,7 +3585,7 @@ copy-webpack-plugin@8.1.1: schema-utils "^3.0.0" serialize-javascript "^5.0.1" -core-js-compat@^3.8.1, core-js-compat@^3.9.0: +core-js-compat@^3.9.0, core-js-compat@^3.9.1: version "3.10.2" resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.10.2.tgz#0a675b4e1cde599616322a72c8886bcf696f3ec3" integrity sha512-IGHnpuaM1N++gLSPI1F1wu3WXICPxSyj/Q++clcwsIOnUVp5uKUIPl/+6h0TQ112KU3fMiSxqJuM+OrCyKj5+A== @@ -9730,14 +9692,7 @@ sass-loader@11.0.1: klona "^2.0.4" neo-async "^2.6.2" -sass@1.32.11: - version "1.32.11" - resolved "https://registry.yarnpkg.com/sass/-/sass-1.32.11.tgz#b236b3ea55c76602c2ef2bd0445f0db581baa218" - integrity sha512-O9tRcob/fegUVSIV1ihLLZcftIOh0AF1VpKgusUfLqnb2jQ0GLDwI5ivv1FYWivGv8eZ/AwntTyTzjcHu0c/qw== - dependencies: - chokidar ">=3.0.0 <4.0.0" - -sass@^1.32.5: +sass@1.32.11, sass@^1.32.5: version "1.32.11" resolved "https://registry.yarnpkg.com/sass/-/sass-1.32.11.tgz#b236b3ea55c76602c2ef2bd0445f0db581baa218" integrity sha512-O9tRcob/fegUVSIV1ihLLZcftIOh0AF1VpKgusUfLqnb2jQ0GLDwI5ivv1FYWivGv8eZ/AwntTyTzjcHu0c/qw== From 48701a9708f8bb4e93a251f99a64b9e05283a36c Mon Sep 17 00:00:00 2001 From: mzocateli Date: Mon, 19 Apr 2021 15:19:56 -0300 Subject: [PATCH 055/577] fix(@angular-devkit/schematics-cli): accept windows like paths for schematics correctly identify schematics paths like 'C:/dir/collection.json:schematic' that used to return 'C' as collection --- packages/angular_devkit/schematics_cli/bin/schematics.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/angular_devkit/schematics_cli/bin/schematics.ts b/packages/angular_devkit/schematics_cli/bin/schematics.ts index fb0d19bfb1a2..c509f2cf4e2b 100644 --- a/packages/angular_devkit/schematics_cli/bin/schematics.ts +++ b/packages/angular_devkit/schematics_cli/bin/schematics.ts @@ -38,7 +38,10 @@ function parseSchematicName(str: string | null): { collection: string, schematic let schematic = str; if (schematic && schematic.indexOf(':') != -1) { - [collection, schematic] = schematic.split(':', 2); + [collection, schematic] = [ + schematic.slice(0, schematic.lastIndexOf(':')), + schematic.substring(schematic.lastIndexOf(':') + 1), + ]; } return { collection, schematic }; From 29cf8125ca28f43596a24a2626f1221d0a33e73c Mon Sep 17 00:00:00 2001 From: cexbrayat Date: Thu, 22 Apr 2021 09:24:21 +0200 Subject: [PATCH 056/577] fix(@schematics/angular): remove jasmine-spec-reporter and ts-node from default workspace The dependencies are only needed for protractor tests, so they should only be added by the e2e schematics. --- packages/schematics/angular/e2e/index.ts | 12 ++++++++++-- .../angular/workspace/files/package.json.template | 4 +--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/packages/schematics/angular/e2e/index.ts b/packages/schematics/angular/e2e/index.ts index a4fc7d1cd603..56a05e94b807 100644 --- a/packages/schematics/angular/e2e/index.ts +++ b/packages/schematics/angular/e2e/index.ts @@ -74,11 +74,19 @@ export default function (options: E2eOptions): Rule { }), move(root), ])), - host => addPackageJsonDependency(host, { + host => [{ type: NodeDependencyType.Dev, name: 'protractor', version: '~7.0.0', - }), + }, { + type: NodeDependencyType.Dev, + name: 'jasmine-spec-reporter', + version: '~7.0.0', + }, { + type: NodeDependencyType.Dev, + name: 'ts-node', + version: '~9.1.1', + }].forEach(dep => addPackageJsonDependency(host, dep)), addScriptsToPackageJson(), ]); }; diff --git a/packages/schematics/angular/workspace/files/package.json.template b/packages/schematics/angular/workspace/files/package.json.template index a1ae065373bc..be076d6cc3e8 100644 --- a/packages/schematics/angular/workspace/files/package.json.template +++ b/packages/schematics/angular/workspace/files/package.json.template @@ -29,13 +29,11 @@ "@types/jasmine": "~3.6.0",<% } %> "@types/node": "^12.11.1",<% if (!minimal) { %> "jasmine-core": "~3.7.0", - "jasmine-spec-reporter": "~7.0.0", "karma": "~6.3.0", "karma-chrome-launcher": "~3.1.0", "karma-coverage": "~2.0.3", "karma-jasmine": "~4.0.0", - "karma-jasmine-html-reporter": "^1.5.0", - "ts-node": "~9.1.1",<% } %> + "karma-jasmine-html-reporter": "^1.5.0",<% } %> "typescript": "<%= latestVersions.TypeScript %>" } } From 26ec4772627e13f2f6720cb383afa2e8c9d7ae01 Mon Sep 17 00:00:00 2001 From: cexbrayat Date: Thu, 22 Apr 2021 09:27:11 +0200 Subject: [PATCH 057/577] fix(@schematics/angular): remove Protractor from home page --- .../other-files/app.component.html.template | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/packages/schematics/angular/application/other-files/app.component.html.template b/packages/schematics/angular/application/other-files/app.component.html.template index ad1a25a2782e..cc25a215cc16 100644 --- a/packages/schematics/angular/application/other-files/app.component.html.template +++ b/packages/schematics/angular/application/other-files/app.component.html.template @@ -461,17 +461,6 @@ - - - Angular Protractor Logo - - - - - - - - Meetup Logo From 81678e83a7a4b525eca98d76b6678fd4b0b20068 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Thu, 22 Apr 2021 07:50:52 +0000 Subject: [PATCH 058/577] build: update angular packages --- package.json | 30 ++-- packages/ngtools/webpack/package.json | 4 +- tests/legacy-cli/e2e/ng-snapshot/package.json | 30 ++-- yarn.lock | 158 ++++++++---------- 4 files changed, 105 insertions(+), 117 deletions(-) diff --git a/package.json b/package.json index 57961b0c1149..c6427f0a1777 100644 --- a/package.json +++ b/package.json @@ -63,21 +63,21 @@ ] }, "devDependencies": { - "@angular/animations": "12.0.0-next.9", - "@angular/cdk": "11.2.9", - "@angular/common": "12.0.0-next.9", - "@angular/compiler": "12.0.0-next.9", - "@angular/compiler-cli": "12.0.0-next.9", - "@angular/core": "12.0.0-next.9", - "@angular/dev-infra-private": "https://github.com/angular/dev-infra-private-builds.git#5b8b7a8b04e205eea784168a511c0258fb9995f3", - "@angular/forms": "12.0.0-next.9", - "@angular/localize": "12.0.0-next.9", - "@angular/material": "11.2.9", - "@angular/platform-browser": "12.0.0-next.9", - "@angular/platform-browser-dynamic": "12.0.0-next.9", - "@angular/platform-server": "12.0.0-next.9", - "@angular/router": "12.0.0-next.9", - "@angular/service-worker": "12.0.0-next.9", + "@angular/animations": "12.0.0-rc.0", + "@angular/cdk": "11.2.10", + "@angular/common": "12.0.0-rc.0", + "@angular/compiler": "12.0.0-rc.0", + "@angular/compiler-cli": "12.0.0-rc.0", + "@angular/core": "12.0.0-rc.0", + "@angular/dev-infra-private": "https://github.com/angular/dev-infra-private-builds.git#97eabea116da45d2a745c18e946a9c57c6c65800", + "@angular/forms": "12.0.0-rc.0", + "@angular/localize": "12.0.0-rc.0", + "@angular/material": "11.2.10", + "@angular/platform-browser": "12.0.0-rc.0", + "@angular/platform-browser-dynamic": "12.0.0-rc.0", + "@angular/platform-server": "12.0.0-rc.0", + "@angular/router": "12.0.0-rc.0", + "@angular/service-worker": "12.0.0-rc.0", "@babel/core": "7.13.16", "@babel/generator": "7.13.16", "@babel/plugin-transform-runtime": "7.13.15", diff --git a/packages/ngtools/webpack/package.json b/packages/ngtools/webpack/package.json index 4ff48e745fa2..92f37812c4e6 100644 --- a/packages/ngtools/webpack/package.json +++ b/packages/ngtools/webpack/package.json @@ -30,8 +30,8 @@ }, "devDependencies": { "@angular-devkit/core": "0.0.0", - "@angular/compiler": "12.0.0-next.9", - "@angular/compiler-cli": "12.0.0-next.9", + "@angular/compiler": "12.0.0-rc.0", + "@angular/compiler-cli": "12.0.0-rc.0", "typescript": "4.2.4", "webpack": "5.35.0" } diff --git a/tests/legacy-cli/e2e/ng-snapshot/package.json b/tests/legacy-cli/e2e/ng-snapshot/package.json index fff9c7a0c62f..aaa82d0ac4d6 100644 --- a/tests/legacy-cli/e2e/ng-snapshot/package.json +++ b/tests/legacy-cli/e2e/ng-snapshot/package.json @@ -2,20 +2,20 @@ "description": "snapshot versions of Angular for e2e testing", "private": true, "dependencies": { - "@angular/animations": "github:angular/animations-builds#3c189f5cbe03b7afdd2b1b62a9ba92fca1a7168b", - "@angular/cdk": "github:angular/cdk-builds#6bbff80d941dda4c591cfd65ddff139ae07f7a1b", - "@angular/common": "github:angular/common-builds#d2343d4a5d507e2d2fdce2da54cf75e45b289fe6", - "@angular/compiler": "github:angular/compiler-builds#a5a6693a08ef1d2c4c5f845d4fc8caa80594b8c0", - "@angular/compiler-cli": "github:angular/compiler-cli-builds#660fbecb3a03f7d1ab9d1a4df23ec62b32b526cd", - "@angular/core": "github:angular/core-builds#f7ad8e72fdaed142dc96ded7c41eee203528a931", - "@angular/forms": "github:angular/forms-builds#ebd9dde1b16f82e8fdc8da590a39848c5e7408dc", - "@angular/language-service": "github:angular/language-service-builds#931211e0ff389d9e61d39dd051cca59680cb2a3d", - "@angular/localize": "github:angular/localize-builds#53dca19c18fa34dea47ab8b5ef92b9fc45b0aec6", - "@angular/material": "github:angular/material2-builds#0b71b7b05c4724b40500d110d21c03dda17354b0", - "@angular/material-moment-adapter": "github:angular/material-moment-adapter-builds#2797a131e4115edc8187fbd449314f7f8e4a7382", - "@angular/platform-browser": "github:angular/platform-browser-builds#c450cd294c621839215083a17cc2fdb438da83db", - "@angular/platform-browser-dynamic": "github:angular/platform-browser-dynamic-builds#8ee4e2f0c0de82ced2d65520b51278f11a3da602", - "@angular/platform-server": "github:angular/platform-server-builds#544a3f553a48cc408159bfb498bf565c0e17e230", - "@angular/router": "github:angular/router-builds#f65a2f520f11318ab7be1e98c8a4a3566d7d3751" + "@angular/animations": "github:angular/animations-builds#b4e3dd38f623810ede6f52ff8a59fbb3c3e28c75", + "@angular/cdk": "github:angular/cdk-builds#b53ff9feaee0c80000b9d7e2576817a9f3b36a7c", + "@angular/common": "github:angular/common-builds#6abe368668027e39c36666dbd03400b66f2b1020", + "@angular/compiler": "github:angular/compiler-builds#5f57755f89458b42b0c9c35e2bcff2a966b59b23", + "@angular/compiler-cli": "github:angular/compiler-cli-builds#37246443164d59aaf3ab43d91abefac6468372d1", + "@angular/core": "github:angular/core-builds#f7df5af17d9aa40b75f0271276c8e3eca569ea27", + "@angular/forms": "github:angular/forms-builds#7412c383c635fbc780380ee9ad620b607915764d", + "@angular/language-service": "github:angular/language-service-builds#7ec6cfdd9cf547f1c162d68be8822078bb1aa36e", + "@angular/localize": "github:angular/localize-builds#26e243c5658332fc8af52d02867ea70c8d49cd85", + "@angular/material": "github:angular/material2-builds#d7acf786e3f4f6b632676139cbcd1a8055271908", + "@angular/material-moment-adapter": "github:angular/material-moment-adapter-builds#69ec9dfa5546d8f2135780a6c1276e6a8c2d29fb", + "@angular/platform-browser": "github:angular/platform-browser-builds#4555707d85ae586d29a5f9ed085e25ff3d39a61e", + "@angular/platform-browser-dynamic": "github:angular/platform-browser-dynamic-builds#ccc87fb1fc1136f041643fd17c34789125a2e973", + "@angular/platform-server": "github:angular/platform-server-builds#dfb9c043e24fbdf1889c22dd7cc297ed9becc1a9", + "@angular/router": "github:angular/router-builds#63cf6e9eb0e593e0bfefff34e18c1424c7532883" } } diff --git a/yarn.lock b/yarn.lock index 2373b856dc9a..417eba1e6d30 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,10 +2,10 @@ # yarn lockfile v1 -"@angular/animations@12.0.0-next.9": - version "12.0.0-next.9" - resolved "https://registry.yarnpkg.com/@angular/animations/-/animations-12.0.0-next.9.tgz#88e96a5a43af9ff61384f5a9ce77878af7eaa11a" - integrity sha512-fETykFqIqaVfdsodIxa5XGd5qUuqP4T3nUpBtTyZoPJZEATee2X7zzV+/WocPIH2EwBWcE4lbxblKUWAJm2LuA== +"@angular/animations@12.0.0-rc.0": + version "12.0.0-rc.0" + resolved "https://registry.yarnpkg.com/@angular/animations/-/animations-12.0.0-rc.0.tgz#e1dc56a3821356d73b019d44b1af6c4d460de172" + integrity sha512-UT/9+LOuRh9LKTwoCB0yA6f1QJtGbQWUmjCUJfyd2DqKlN49CMLVwSJ3QkXbP+7AlHVrUP3pjJv1XxX1BcC10w== dependencies: tslib "^2.1.0" @@ -17,46 +17,46 @@ "@angular/core" "^10.0.0-0 || ^11.0.0" reflect-metadata "^0.1.13" -"@angular/cdk@11.2.9": - version "11.2.9" - resolved "https://registry.yarnpkg.com/@angular/cdk/-/cdk-11.2.9.tgz#30ba78a323a6dd19c03972ebf091056d75ba0ade" - integrity sha512-3gHobkgCQIJ4kJFkqexaKramI6k4OZ0/Vw5qvabGhpwWtICvrrfZyRejJzhecYKOcw+hiJNoDqP9TVNfkLme9g== +"@angular/cdk@11.2.10": + version "11.2.10" + resolved "https://registry.yarnpkg.com/@angular/cdk/-/cdk-11.2.10.tgz#0ebf2c44f97f4f123988e8f829756cf893e803a1" + integrity sha512-Cq1dTQDGcqfB2ks8q3q4HPf7kEXU3FCB/OC5XYGMhs8tUyFTabhmXAcfkiBA4YO8YPWRc8FKrJsE1q4nV8vPKQ== dependencies: tslib "^2.0.0" optionalDependencies: parse5 "^5.0.0" -"@angular/common@12.0.0-next.9": - version "12.0.0-next.9" - resolved "https://registry.yarnpkg.com/@angular/common/-/common-12.0.0-next.9.tgz#f4143b37a608ba87124cf0f0678a7cd49736d0ad" - integrity sha512-JHNBObCHpDUVeg9pXOMDmbBf43Guo5vN7dOEjpwhqIYPTyFEhxWHZ7AP56I9KcgDcuuEoRmw3YGEtEysLOtpAQ== +"@angular/common@12.0.0-rc.0": + version "12.0.0-rc.0" + resolved "https://registry.yarnpkg.com/@angular/common/-/common-12.0.0-rc.0.tgz#ab39c34c741cda304304e49a1be4121cecc3f725" + integrity sha512-K5PO7iKXTCFS9dqMy1aedpW7pe7XqEBkhGjvjz9JHETqZYVoTlAyil3l4rMcWopk8uRSp2QUQWrdD5DFXWWPIw== dependencies: tslib "^2.1.0" -"@angular/compiler-cli@12.0.0-next.9": - version "12.0.0-next.9" - resolved "https://registry.yarnpkg.com/@angular/compiler-cli/-/compiler-cli-12.0.0-next.9.tgz#ed4636a7453e4854ce87fb44b97550ad161abad7" - integrity sha512-f4VPl2EcX6DwBGJd69FF/BoJeVx1UDsX4l6CGNXcXut/fPKr1078zjd9kKCJ58PspT+/9lez7j0REkGkTtOkFQ== +"@angular/compiler-cli@12.0.0-rc.0": + version "12.0.0-rc.0" + resolved "https://registry.yarnpkg.com/@angular/compiler-cli/-/compiler-cli-12.0.0-rc.0.tgz#5192b4483f0328ea4d946da0d35cd03bfadeadab" + integrity sha512-WF3BKvPdWq4PtUw1kPXiDDrXjv2pL4z9hylXYugR6mn5ZbEiUqQWOj96OHci7eZiQR5PPgwvfkgeiVNXFImCxA== dependencies: "@babel/core" "^7.8.6" "@babel/types" "^7.8.6" canonical-path "1.0.0" chokidar "^3.0.0" convert-source-map "^1.5.1" - dependency-graph "^0.7.2" + dependency-graph "^0.11.0" magic-string "^0.25.0" minimist "^1.2.0" reflect-metadata "^0.1.2" - semver "^6.3.0" + semver "^7.0.0" source-map "^0.6.1" sourcemap-codec "^1.4.8" tslib "^2.1.0" yargs "^16.2.0" -"@angular/compiler@12.0.0-next.9": - version "12.0.0-next.9" - resolved "https://registry.yarnpkg.com/@angular/compiler/-/compiler-12.0.0-next.9.tgz#e939a43fb5090668a2f67324da5b091690b53d5f" - integrity sha512-nRpxuGj5DKnh7DDqNzUT3dfNvejfIu2AxNjAF4Wa/cZTrSABgvVxPo3DmvEesLvu4v1XJORFe/0vdeErivtEbQ== +"@angular/compiler@12.0.0-rc.0": + version "12.0.0-rc.0" + resolved "https://registry.yarnpkg.com/@angular/compiler/-/compiler-12.0.0-rc.0.tgz#34adc427cbc92fb934b480e68fa5205592c69b30" + integrity sha512-DWZiU7CTJetnyKCDj+UL6rkdskLvjWzq6X0vRvz1Sk4WkDB4RG72KV2S/lrf+C4NSf/lDlN7hS91glnTVbtC+A== dependencies: tslib "^2.1.0" @@ -65,10 +65,10 @@ resolved "https://registry.yarnpkg.com/@angular/compiler/-/compiler-9.0.0.tgz#87e0bef4c369b6cadae07e3a4295778fc93799d5" integrity sha512-ctjwuntPfZZT2mNj2NDIVu51t9cvbhl/16epc5xEwyzyDt76pX9UgwvY+MbXrf/C/FWwdtmNtfP698BKI+9leQ== -"@angular/core@12.0.0-next.9": - version "12.0.0-next.9" - resolved "https://registry.yarnpkg.com/@angular/core/-/core-12.0.0-next.9.tgz#f617b879c9cc25e30f0835bdb666108073e0dd5a" - integrity sha512-Z328UtPoXTAx7bPPjqCg90RXtNJUd/GV1Z6Kd+qrZnxlFUQcbZmJa/aXrXYV0FtV98kYxiy+0+9r9iJs0w3puA== +"@angular/core@12.0.0-rc.0": + version "12.0.0-rc.0" + resolved "https://registry.yarnpkg.com/@angular/core/-/core-12.0.0-rc.0.tgz#9fa178d954ec3889cbe8e1ac9270c8072245a83b" + integrity sha512-PRcO0bElUMxFJJpLro1R2tCFNFQBSyb9ORj3Nn4c5lwS24Md1i8YLVTi9Ga5WsRk+PDMau/N8kPfpX9kXnvXMQ== dependencies: tslib "^2.1.0" @@ -84,10 +84,10 @@ dependencies: tslib "^2.0.0" -"@angular/dev-infra-private@https://github.com/angular/dev-infra-private-builds.git#5b8b7a8b04e205eea784168a511c0258fb9995f3": +"@angular/dev-infra-private@https://github.com/angular/dev-infra-private-builds.git#97eabea116da45d2a745c18e946a9c57c6c65800": version "0.0.0" - uid "5b8b7a8b04e205eea784168a511c0258fb9995f3" - resolved "https://github.com/angular/dev-infra-private-builds.git#5b8b7a8b04e205eea784168a511c0258fb9995f3" + uid "97eabea116da45d2a745c18e946a9c57c6c65800" + resolved "https://github.com/angular/dev-infra-private-builds.git#97eabea116da45d2a745c18e946a9c57c6c65800" dependencies: "@angular/benchpress" "0.2.1" "@bazel/buildifier" "^4.0.1" @@ -95,7 +95,7 @@ "@octokit/rest" "16.28.7" "@octokit/types" "^6.0.0" brotli "^1.3.2" - chalk "^2.3.1" + chalk "^4.1.0" clang-format "^1.4.0" cli-progress "^3.7.0" conventional-commits-parser "^3.2.1" @@ -114,68 +114,68 @@ shelljs "^0.8.4" ts-node "^9.1.1" tslib "^2.1.0" - typed-graphqlify "^2.3.0" + typed-graphqlify "^3.1.1" typescript "~4.2.4" yaml "^1.10.0" yargs "^16.2.0" -"@angular/forms@12.0.0-next.9": - version "12.0.0-next.9" - resolved "https://registry.yarnpkg.com/@angular/forms/-/forms-12.0.0-next.9.tgz#c8c4fbc33a76c271629f15b0bfe4ccaf9dcac2c7" - integrity sha512-ANXH1jlo6fUxO/r4685kV+FMOvpw522wLcaocqnXv3aHIHhXJSTpMAAQw7Wc2XfYKrO49q882bToOHvOYxjPZA== +"@angular/forms@12.0.0-rc.0": + version "12.0.0-rc.0" + resolved "https://registry.yarnpkg.com/@angular/forms/-/forms-12.0.0-rc.0.tgz#1a1f71be85f8ad4e41a4ef9fe5dbef3bb04a5420" + integrity sha512-VqDDKNWHc7H4xyncHjDylHJofq+4p6d5wKq++1JcbTxkFm0428groO0qSVovZzbHatUQSyMzhDsUpftdTRs9Cg== dependencies: tslib "^2.1.0" -"@angular/localize@12.0.0-next.9": - version "12.0.0-next.9" - resolved "https://registry.yarnpkg.com/@angular/localize/-/localize-12.0.0-next.9.tgz#fc977778b5be2b5325d38058ee9601dbd9d7cb43" - integrity sha512-BHqE+3svlU19t9sOQFKXh9bd8yFDYCQoOMpphHB+vQdO4rUPTSVZM1XPYDZw+zjrQ62Rwtxbx4RD14Iwh81LnQ== +"@angular/localize@12.0.0-rc.0": + version "12.0.0-rc.0" + resolved "https://registry.yarnpkg.com/@angular/localize/-/localize-12.0.0-rc.0.tgz#e4a0782bfdb42fbc6309eacfb828db1c97851f18" + integrity sha512-id14etqX+HaExbmV61B1cXLYkeqMnrQGRZUWWrwejEoSwKvNAkf+sxjEP88TlNBq4YUJBj6ro5T9yWvnDCr3TQ== dependencies: "@babel/core" "7.8.3" - glob "7.1.2" + glob "7.1.6" yargs "^16.2.0" -"@angular/material@11.2.9": - version "11.2.9" - resolved "https://registry.yarnpkg.com/@angular/material/-/material-11.2.9.tgz#f74535029f5c246f33649706cda75d29ccd84cb9" - integrity sha512-Pe1aScSX8fMOSs5hfF/V7NCJn9pt/60rFmwYxgtFser4BcJrO0Moz4eqxhNcR0PjiCQgKJpjjPxBept2+o5N5A== +"@angular/material@11.2.10": + version "11.2.10" + resolved "https://registry.yarnpkg.com/@angular/material/-/material-11.2.10.tgz#2ad9761b784646dc15c8d912238e53cb89582a4e" + integrity sha512-itylLtTloyCrmtotccVzplso7DGoiFdN91ud2sopGacTpfKVkw4tO5nIWRGWDmuu3dvHCqGo3h6EoZN0l9G+Wg== dependencies: tslib "^2.0.0" -"@angular/platform-browser-dynamic@12.0.0-next.9": - version "12.0.0-next.9" - resolved "https://registry.yarnpkg.com/@angular/platform-browser-dynamic/-/platform-browser-dynamic-12.0.0-next.9.tgz#b1b9bbf8c54c909f47a6e070108cd70e3f791d3a" - integrity sha512-En6KqwlHfWGdmovKHpDjz2pKelz0wyyJTNlYJjizCRN3JgRgj4f/Ebynb//qg9vf8eVSg8U5JtH2GZ/5lOrpTg== +"@angular/platform-browser-dynamic@12.0.0-rc.0": + version "12.0.0-rc.0" + resolved "https://registry.yarnpkg.com/@angular/platform-browser-dynamic/-/platform-browser-dynamic-12.0.0-rc.0.tgz#b08b9660a9ea2ad5575072ca7f103d8965b4d8ef" + integrity sha512-6yvSfoUZX4DuwSwdy37ge301AU6IFj+HVRitgoyrx1c5o9c1zO6Z2aGPScZnrwmCQxhTbIM3G0ZUTK0te/sB+w== dependencies: tslib "^2.1.0" -"@angular/platform-browser@12.0.0-next.9": - version "12.0.0-next.9" - resolved "https://registry.yarnpkg.com/@angular/platform-browser/-/platform-browser-12.0.0-next.9.tgz#12eba4e2edf6107b02bc90ef64193754149b855b" - integrity sha512-DrK7P4ScWms06+P1ar+Rpt7eR3T67vDHKzdnNDwn50ylFR8rqcjPk7LQCOJithMEzTCKWax5s59oPahLazuHDA== +"@angular/platform-browser@12.0.0-rc.0": + version "12.0.0-rc.0" + resolved "https://registry.yarnpkg.com/@angular/platform-browser/-/platform-browser-12.0.0-rc.0.tgz#dd0b22337f931bc7c466f4fdc9ece01eefede6fc" + integrity sha512-HjrMDwg2yjUwB2THKMHnGSbwZS1vtXh2yADIqpcycfZy/6djeZppKBdhMMFjGts9WN8kHNukpUwkqw18WiJ31A== dependencies: tslib "^2.1.0" -"@angular/platform-server@12.0.0-next.9": - version "12.0.0-next.9" - resolved "https://registry.yarnpkg.com/@angular/platform-server/-/platform-server-12.0.0-next.9.tgz#bab0a095ed8fe1da9372ad42e13736ea73644eac" - integrity sha512-X/1EBbok3KA051hM5PEy5NTJGbwEFu6sIIOTgoz+BZm+O2GgkqyVasALzVi5X+b5XhSpC7GRYz3W5PE0ObLj2Q== +"@angular/platform-server@12.0.0-rc.0": + version "12.0.0-rc.0" + resolved "https://registry.yarnpkg.com/@angular/platform-server/-/platform-server-12.0.0-rc.0.tgz#50b5ef3720100f8b16e1ee87481a4808b0efdcae" + integrity sha512-7nXOLXBiGMuELUh0aD2b4Z6adW6tTSGWZGlDfTN66oqSs0nHdhPyTrR0elt5zQs7ENxVZen3Pdnz754IhllPrQ== dependencies: domino "^2.1.2" tslib "^2.1.0" xhr2 "^0.2.0" -"@angular/router@12.0.0-next.9": - version "12.0.0-next.9" - resolved "https://registry.yarnpkg.com/@angular/router/-/router-12.0.0-next.9.tgz#b4d0dc11b23d75ea74afc77cd58ad607254892ec" - integrity sha512-F+Pf64GCoXXDMju/Vbid9k2Q6dMETeiNZwKZO+lavyqBIXhtg7lZ9U7gupdRnp1fCKuSkemxcEzyTCKBYPjJtQ== +"@angular/router@12.0.0-rc.0": + version "12.0.0-rc.0" + resolved "https://registry.yarnpkg.com/@angular/router/-/router-12.0.0-rc.0.tgz#b8c22ef5283696651bafc3c69d5d83cc5ab6574c" + integrity sha512-4CGhysudWiZLyWowFUPAV/d6cHpttrIPEd19r+JeARQVwyICaQByt4/TUqzWjDDZv+JJzcJMGzZ2RYuUjtw7Mw== dependencies: tslib "^2.1.0" -"@angular/service-worker@12.0.0-next.9": - version "12.0.0-next.9" - resolved "https://registry.yarnpkg.com/@angular/service-worker/-/service-worker-12.0.0-next.9.tgz#c7ef828c0ceb7c64049d9e6bc60d3330868a5e45" - integrity sha512-yTsH6+orLjUb6QA1EKX3dAoQ83xsxQiVIMKX8JaElBO/PsQYFOv83iu6Obf3PdrLBdwsLl/oTAoH59h4/UPUaw== +"@angular/service-worker@12.0.0-rc.0": + version "12.0.0-rc.0" + resolved "https://registry.yarnpkg.com/@angular/service-worker/-/service-worker-12.0.0-rc.0.tgz#253822ddeee60e1d543267c70f1c437c6c539859" + integrity sha512-+Y1S9auvnnzmoHgoM3x2aD1uhxx5fBsajFwgfFyto4heZ8LjPaN/6pcGuj9DvTY0RiyxZwAUudHggcviexHhoA== dependencies: tslib "^2.1.0" @@ -4118,10 +4118,10 @@ depd@~2.0.0: resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df" integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw== -dependency-graph@^0.7.2: - version "0.7.2" - resolved "https://registry.yarnpkg.com/dependency-graph/-/dependency-graph-0.7.2.tgz#91db9de6eb72699209d88aea4c1fd5221cac1c49" - integrity sha512-KqtH4/EZdtdfWX0p6MGP9jljvxSY6msy/pRUD4jgNwVpv3v1QmNLlsB3LDSSUg79BRVSn7jI1QPRtArGABovAQ== +dependency-graph@^0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/dependency-graph/-/dependency-graph-0.11.0.tgz#ac0ce7ed68a54da22165a85e97a01d53f5eb2e27" + integrity sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg== deprecation@^2.0.0: version "2.3.1" @@ -5167,18 +5167,6 @@ glob-to-regexp@^0.4.1: resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz#c75297087c851b9a578bd217dd59a92f59fe546e" integrity sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw== -glob@7.1.2: - version "7.1.2" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" - integrity sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - glob@7.1.6, glob@^7.0.0, glob@^7.0.3, glob@^7.0.6, glob@^7.1.1, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: version "7.1.6" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" @@ -9816,7 +9804,7 @@ semver@7.3.4: dependencies: lru-cache "^6.0.0" -semver@7.3.5, semver@^7.1.1, semver@^7.3.2, semver@^7.3.4, semver@^7.3.5: +semver@7.3.5, semver@^7.0.0, semver@^7.1.1, semver@^7.3.2, semver@^7.3.4, semver@^7.3.5: version "7.3.5" resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.5.tgz#0b621c879348d8998e4b0e4be94b3f12e6018ef7" integrity sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ== @@ -11002,10 +10990,10 @@ type@^2.0.0: resolved "https://registry.yarnpkg.com/type/-/type-2.5.0.tgz#0a2e78c2e77907b252abe5f298c1b01c63f0db3d" integrity sha512-180WMDQaIMm3+7hGXWf12GtdniDEy7nYcyFMKJn/eZz/6tSLXrUN9V0wKSbMjej0I1WHWbpREDEKHtqPQa9NNw== -typed-graphqlify@^2.3.0: - version "2.4.5" - resolved "https://registry.yarnpkg.com/typed-graphqlify/-/typed-graphqlify-2.4.5.tgz#e881f8a90911c32aec76a112e8e5077ead36e151" - integrity sha512-0iD2WkYmdxsTS2TGchnrY+vuSZHrTkj2i/Pa3UKTNPdrig5bV2f8UpGEfQ4Gq8pp3Vd9esqGIVgjC7hYR6OsOg== +typed-graphqlify@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/typed-graphqlify/-/typed-graphqlify-3.1.1.tgz#461d433922ff33ec10bb17dee7e332a0a0eafa27" + integrity sha512-Tr8DarPhPUdW7vsGc9Vi5INtAqjt+Xm5k3shZ8FH/j+odVMABC8+xnZrcgKq5AJeUBJt+2w+iH81AMQb9vvlqg== typedarray@^0.0.6: version "0.0.6" From 5558047eefab8a83e7b762f6931fc8e0a44afa72 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 22 Apr 2021 13:35:10 +0200 Subject: [PATCH 059/577] fix(@angular/cli): add package manager name and version in `ng version` output --- packages/angular/cli/commands/version-impl.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/angular/cli/commands/version-impl.ts b/packages/angular/cli/commands/version-impl.ts index 1619eccee6d8..b15e41f1ed86 100644 --- a/packages/angular/cli/commands/version-impl.ts +++ b/packages/angular/cli/commands/version-impl.ts @@ -5,9 +5,11 @@ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ +import { execSync } from 'child_process'; import * as path from 'path'; import { Command } from '../models/command'; import { colors } from '../utilities/color'; +import { getPackageManager } from '../utilities/package-manager'; import { Schema as VersionCommandSchema } from './version'; interface PartialPackageInfo { @@ -105,6 +107,7 @@ export class VersionCommand extends Command { ` Angular CLI: ${ngCliVersion} Node: ${process.versions.node} + Package Manager: ${await this.getPackageManager()} OS: ${process.platform} ${process.arch} Angular: ${angularCoreVersion} @@ -163,4 +166,15 @@ export class VersionCommand extends Command { return version || ''; } + + private async getPackageManager(): Promise { + try { + const manager = await getPackageManager(this.context.root); + const version = execSync(`${manager} --version`, { encoding: 'utf8', stdio: 'pipe' }).trim(); + + return `${manager} ${version}`; + } catch { + return ''; + } + } } From 4c8e03256f99f93c87677091078261be808c615e Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 22 Apr 2021 12:43:07 +0200 Subject: [PATCH 060/577] fix(@angular-devkit/build-angular): remove left-over `forkTypeChecker` option --- .../angular_devkit/build_angular/src/browser/schema.json | 5 ----- .../build_angular/src/browser/specs/rebuild_spec.ts | 4 ++-- packages/angular_devkit/build_angular/src/server/schema.json | 5 ----- .../angular_devkit/build_angular/src/utils/build-options.ts | 1 - .../build_angular/src/utils/normalize-builder-schema.ts | 1 - .../angular/migrations/update-12/update-angular-config.ts | 1 + 6 files changed, 3 insertions(+), 14 deletions(-) diff --git a/packages/angular_devkit/build_angular/src/browser/schema.json b/packages/angular_devkit/build_angular/src/browser/schema.json index 65d4542c030e..727fc94e57ff 100644 --- a/packages/angular_devkit/build_angular/src/browser/schema.json +++ b/packages/angular_devkit/build_angular/src/browser/schema.json @@ -344,11 +344,6 @@ "description": "Generates a 'stats.json' file which can be analyzed using tools such as 'webpack-bundle-analyzer'.", "default": false }, - "forkTypeChecker": { - "type": "boolean", - "description": "Run the TypeScript type checker in a forked process.", - "default": true - }, "budgets": { "description": "Budget thresholds to ensure parts of your application stay within boundaries which you set.", "type": "array", diff --git a/packages/angular_devkit/build_angular/src/browser/specs/rebuild_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/rebuild_spec.ts index e597807133c7..8d98d8c97559 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/rebuild_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/rebuild_spec.ts @@ -151,7 +151,7 @@ describe('Browser Builder rebuilds', () => { `, ); - const overrides = { watch: true, forkTypeChecker: false }; + const overrides = { watch: true }; const logger = new logging.Logger(''); let logs: string[] = []; logger.subscribe(e => logs.push(e.message)); @@ -344,7 +344,7 @@ describe('Browser Builder rebuilds', () => { // `selector must be a string` errors on VE are part of the emit result, but on Ivy they only // show up in getNgSemanticDiagnostics. Since getNgSemanticDiagnostics is only called on the // type checker, we must disable it to get a failing fourth build with Ivy. - const overrides = { watch: true, aot: true, forkTypeChecker: false }; + const overrides = { watch: true, aot: true }; const logger = new logging.Logger(''); let logs: string[] = []; logger.subscribe(e => logs.push(e.message)); diff --git a/packages/angular_devkit/build_angular/src/server/schema.json b/packages/angular_devkit/build_angular/src/server/schema.json index 4a9b7b6f9d11..a97746f405d2 100644 --- a/packages/angular_devkit/build_angular/src/server/schema.json +++ b/packages/angular_devkit/build_angular/src/server/schema.json @@ -220,11 +220,6 @@ "description": "Generates a 'stats.json' file which can be analyzed using tools such as 'webpack-bundle-analyzer'.", "default": false }, - "forkTypeChecker": { - "type": "boolean", - "description": "Run the TypeScript type checker in a forked process.", - "default": true - }, "watch": { "type": "boolean", "description": "Run build when files change.", diff --git a/packages/angular_devkit/build_angular/src/utils/build-options.ts b/packages/angular_devkit/build_angular/src/utils/build-options.ts index 433e194d1040..6cfde74ffc66 100644 --- a/packages/angular_devkit/build_angular/src/utils/build-options.ts +++ b/packages/angular_devkit/build_angular/src/utils/build-options.ts @@ -57,7 +57,6 @@ export interface BuildOptions { serviceWorker?: boolean; webWorkerTsConfig?: string; statsJson: boolean; - forkTypeChecker: boolean; hmr?: boolean; main: string; polyfills?: string; diff --git a/packages/angular_devkit/build_angular/src/utils/normalize-builder-schema.ts b/packages/angular_devkit/build_angular/src/utils/normalize-builder-schema.ts index 5fe6d10b7e3d..1f7f04fca624 100644 --- a/packages/angular_devkit/build_angular/src/utils/normalize-builder-schema.ts +++ b/packages/angular_devkit/build_angular/src/utils/normalize-builder-schema.ts @@ -50,7 +50,6 @@ export function normalizeBrowserSchema( sourceMap: normalizedSourceMapOptions, preserveSymlinks: options.preserveSymlinks === undefined ? process.execArgv.includes('--preserve-symlinks') : options.preserveSymlinks, statsJson: options.statsJson || false, - forkTypeChecker: options.forkTypeChecker || false, budgets: options.budgets || [], scripts: options.scripts || [], styles: options.styles || [], diff --git a/packages/schematics/angular/migrations/update-12/update-angular-config.ts b/packages/schematics/angular/migrations/update-12/update-angular-config.ts index 058911bc9793..45980abe397a 100644 --- a/packages/schematics/angular/migrations/update-12/update-angular-config.ts +++ b/packages/schematics/angular/migrations/update-12/update-angular-config.ts @@ -47,6 +47,7 @@ export default function (): Rule { for (const [, options] of allTargetOptions(target)) { delete options.experimentalRollupPass; delete options.lazyModules; + delete options.forkTypeChecker; } } }); From b2e1d90c6386600bd189f05f624849e9d5e0a953 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 22 Apr 2021 12:29:06 +0200 Subject: [PATCH 061/577] perf(@angular-devkit/build-angular): improve incremental time during Karma tests With this change we now use Webpack memory cache when running Karma in watch mode. --- .../build_angular/src/karma/index.ts | 18 +++++++++++++----- .../src/webpack/plugins/karma/karma.ts | 6 ------ 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/packages/angular_devkit/build_angular/src/karma/index.ts b/packages/angular_devkit/build_angular/src/karma/index.ts index a2f7c557e3a7..c685e89175c2 100644 --- a/packages/angular_devkit/build_angular/src/karma/index.ts +++ b/packages/angular_devkit/build_angular/src/karma/index.ts @@ -52,6 +52,11 @@ async function initialize( namedChunks: true, extractLicenses: false, outputHashing: OutputHashing.None, + // The webpack tier owns the watch behavior so we want to force it in the config. + // When not in watch mode, webpack-dev-middleware will call `compiler.watch` anyway. + // https://github.com/webpack/webpack-dev-middleware/blob/698c9ae5e9bb9a013985add6189ff21c1a1ec185/src/index.js#L65 + // https://github.com/webpack/webpack/blob/cde1b73e12eb8a77eb9ba42e7920c9ec5d29c2c9/lib/Compiler.js#L379-L388 + watch: true, }, context, wco => [ @@ -86,13 +91,16 @@ export function execute( // Check Angular version. assertCompatibleAngularVersion(context.workspaceRoot, context.logger); + let singleRun: boolean | undefined; + if (options.watch !== undefined) { + singleRun = !options.watch; + } + return from(initialize(options, context, transforms.webpackConfiguration)).pipe( switchMap(async ([karma, webpackConfig]) => { - const karmaOptions: KarmaConfigOptions = {}; - - if (options.watch !== undefined) { - karmaOptions.singleRun = !options.watch; - } + const karmaOptions: KarmaConfigOptions = { + singleRun, + }; // Convert browsers from a string to an array if (options.browsers) { diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/karma/karma.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/karma/karma.ts index 6ec37f782ecb..bad75b62559f 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/karma/karma.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/karma/karma.ts @@ -128,12 +128,6 @@ const init: any = (config: any, emitter: any) => { config.middleware = config.middleware || []; config.middleware.push('@angular-devkit/build-angular--fallback'); - // The webpack tier owns the watch behavior so we want to force it in the config. - // When not in watch mode, webpack-dev-middleware will call `compiler.watch` anyway. - // https://github.com/webpack/webpack-dev-middleware/blob/698c9ae5e9bb9a013985add6189ff21c1a1ec185/src/index.js#L65 - // https://github.com/webpack/webpack/blob/cde1b73e12eb8a77eb9ba42e7920c9ec5d29c2c9/lib/Compiler.js#L379-L388 - webpackConfig.watch = true; - if (config.singleRun) { // There's no option to turn off file watching in webpack-dev-server, but // we can override the file watcher instead. From 09676c90a94834c1f2e3d52fb492471dc61de598 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 22 Apr 2021 07:52:06 +0200 Subject: [PATCH 062/577] fix(@angular-devkit/core): improve handling of set schema values Closes #20594 --- .../core/src/json/schema/registry.ts | 45 ++++--------------- 1 file changed, 8 insertions(+), 37 deletions(-) diff --git a/packages/angular_devkit/core/src/json/schema/registry.ts b/packages/angular_devkit/core/src/json/schema/registry.ts index 1b4bd474373a..4e7c6a9e3e17 100644 --- a/packages/angular_devkit/core/src/json/schema/registry.ts +++ b/packages/angular_devkit/core/src/json/schema/registry.ts @@ -558,7 +558,7 @@ export class CoreSchemaRegistry implements SchemaRegistry { CoreSchemaRegistry._set( data, pathFragments, - answers[path] as {}, + answers[path], null, undefined, true, @@ -567,51 +567,22 @@ export class CoreSchemaRegistry implements SchemaRegistry { } private static _set( - // tslint:disable-next-line:no-any + // tslint:disable-next-line: no-any data: any, fragments: string[], - value: {}, - // tslint:disable-next-line:no-any - parent: any | null = null, + value: unknown, + parent: Record | null = null, parentProperty?: string, force?: boolean, ): void { - for (let i = 0; i < fragments.length; i++) { - const f = fragments[i]; - - if (f[0] == 'i') { - if (!Array.isArray(data)) { - return; - } - - for (let j = 0; j < data.length; j++) { - CoreSchemaRegistry._set(data[j], fragments.slice(i + 1), value, data, '' + j); - } - - return; - } - - if (f.startsWith('key')) { - if (typeof data !== 'object') { - return; - } - - for (const property in data) { - CoreSchemaRegistry._set(data[property], fragments.slice(i + 1), value, data, property); - } - - return; - } - - - // We know we need an object because the fragment is a property key. + for (const fragment of fragments) { if (!data && parent !== null && parentProperty) { data = parent[parentProperty] = {}; } - parent = data; - parentProperty = f; - data = data[f]; + parent = data; + parentProperty = fragment; + data = data[fragment]; } if (parent && parentProperty && (force || parent[parentProperty] === undefined)) { From 2bea25908f95f9c1474627a119311d338e8b2e81 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 23 Apr 2021 06:12:51 +0000 Subject: [PATCH 063/577] build: update pacote to version 11.3.2 --- package.json | 2 +- packages/angular/cli/package.json | 2 +- yarn.lock | 24 +++++++++--------------- 3 files changed, 11 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index c6427f0a1777..c69de6c3a552 100644 --- a/package.json +++ b/package.json @@ -177,7 +177,7 @@ "npm-registry-client": "8.6.0", "open": "8.0.6", "ora": "5.4.0", - "pacote": "11.3.1", + "pacote": "11.3.2", "parse5-html-rewriting-stream": "6.0.1", "pidtree": "^0.5.0", "pidusage": "^2.0.17", diff --git a/packages/angular/cli/package.json b/packages/angular/cli/package.json index 60fc10b1ac38..78ea087ac69b 100644 --- a/packages/angular/cli/package.json +++ b/packages/angular/cli/package.json @@ -39,7 +39,7 @@ "npm-pick-manifest": "6.1.1", "open": "8.0.6", "ora": "5.4.0", - "pacote": "11.3.1", + "pacote": "11.3.2", "resolve": "1.20.0", "rimraf": "3.0.2", "semver": "7.3.5", diff --git a/yarn.lock b/yarn.lock index 417eba1e6d30..fd871edf7835 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1128,11 +1128,6 @@ "@nodelib/fs.scandir" "2.1.4" fastq "^1.6.0" -"@npmcli/ci-detect@^1.0.0": - version "1.3.0" - resolved "https://registry.yarnpkg.com/@npmcli/ci-detect/-/ci-detect-1.3.0.tgz#6c1d2c625fb6ef1b9dea85ad0a5afcbef85ef22a" - integrity sha512-oN3y7FAROHhrAt7Rr7PnTSwrHrZVRTS2ZbyxeQwSSYD0ifwM3YNgQqbaRmjcWoPyq77MjchusjJDspbzMmip1Q== - "@npmcli/git@^2.0.1": version "2.0.8" resolved "https://registry.yarnpkg.com/@npmcli/git/-/git-2.0.8.tgz#c38b54cdeec556ab641cf6161cc7825711a88d65" @@ -7603,12 +7598,11 @@ npm-registry-client@8.6.0: optionalDependencies: npmlog "2 || ^3.1.0 || ^4.0.0" -npm-registry-fetch@^9.0.0: - version "9.0.0" - resolved "https://registry.yarnpkg.com/npm-registry-fetch/-/npm-registry-fetch-9.0.0.tgz#86f3feb4ce00313bc0b8f1f8f69daae6face1661" - integrity sha512-PuFYYtnQ8IyVl6ib9d3PepeehcUeHN9IO5N/iCRhyg9tStQcqGQBRVHmfmMWPDERU3KwZoHFvbJ4FPXPspvzbA== +npm-registry-fetch@^10.0.0: + version "10.1.0" + resolved "https://registry.yarnpkg.com/npm-registry-fetch/-/npm-registry-fetch-10.1.0.tgz#3b618126b1011af74c12e75d6077712bda411da4" + integrity sha512-XcKu0h6OuRTB7HO5uv8htavPQJ1dYTLAXLE5AMs4GFQ1LbY+LlHiNoqIbVshE3rk0vLk+nKxpA/4WJm1kE7eqg== dependencies: - "@npmcli/ci-detect" "^1.0.0" lru-cache "^6.0.0" make-fetch-happen "^8.0.9" minipass "^3.1.3" @@ -7936,10 +7930,10 @@ p-try@^2.0.0: resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== -pacote@11.3.1: - version "11.3.1" - resolved "https://registry.yarnpkg.com/pacote/-/pacote-11.3.1.tgz#6ce95dd230db475cbd8789fd1f986bec51b4bf7c" - integrity sha512-TymtwoAG12cczsJIrwI/euOQKtjrQHlD0k0oyt9QSmZGpqa+KdlxKdWR/YUjYizkixaVyztxt/Wsfo8bL3A6Fg== +pacote@11.3.2: + version "11.3.2" + resolved "https://registry.yarnpkg.com/pacote/-/pacote-11.3.2.tgz#2bef04f6ec6bafceb5eb2f5b3965f0d00aee4d7e" + integrity sha512-lMO7V9aMhyE5gfaSFxKfW3OTdXuFBNQJfuNuet3NPzWWhOYIW90t85vHcHLDjdhgmfAdAHyh9q1HAap96ea0XA== dependencies: "@npmcli/git" "^2.0.1" "@npmcli/installed-package-contents" "^1.0.6" @@ -7954,7 +7948,7 @@ pacote@11.3.1: npm-package-arg "^8.0.1" npm-packlist "^2.1.4" npm-pick-manifest "^6.0.0" - npm-registry-fetch "^9.0.0" + npm-registry-fetch "^10.0.0" promise-retry "^2.0.1" read-package-json-fast "^2.0.1" rimraf "^3.0.2" From 56d8bc10d635120a7d65de2cf79baf4abd565de0 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 23 Apr 2021 06:12:32 +0000 Subject: [PATCH 064/577] build: update core-js to version 3.11.0 --- package.json | 2 +- packages/angular_devkit/build_angular/package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index c69de6c3a552..b1544920c551 100644 --- a/package.json +++ b/package.json @@ -135,7 +135,7 @@ "conventional-changelog": "^3.0.0", "conventional-commits-parser": "^3.0.0", "copy-webpack-plugin": "8.1.1", - "core-js": "3.10.2", + "core-js": "3.11.0", "critters": "0.0.10", "css-loader": "5.2.4", "cssnano": "5.0.1", diff --git a/packages/angular_devkit/build_angular/package.json b/packages/angular_devkit/build_angular/package.json index b54f00a26b3c..bb76d5036b8e 100644 --- a/packages/angular_devkit/build_angular/package.json +++ b/packages/angular_devkit/build_angular/package.json @@ -27,7 +27,7 @@ "caniuse-lite": "^1.0.30001032", "circular-dependency-plugin": "5.2.2", "copy-webpack-plugin": "8.1.1", - "core-js": "3.10.2", + "core-js": "3.11.0", "critters": "0.0.10", "css-loader": "5.2.4", "cssnano": "5.0.1", diff --git a/yarn.lock b/yarn.lock index fd871edf7835..da3914aa4dcb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3588,10 +3588,10 @@ core-js-compat@^3.9.0, core-js-compat@^3.9.1: browserslist "^4.16.4" semver "7.0.0" -core-js@3.10.2: - version "3.10.2" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.10.2.tgz#17cb038ce084522a717d873b63f2b3ee532e2cd5" - integrity sha512-W+2oVYeNghuBr3yTzZFQ5rfmjZtYB/Ubg87R5YOmlGrIb+Uw9f7qjUbhsj+/EkXhcV7eOD3jiM4+sgraX3FZUw== +core-js@3.11.0: + version "3.11.0" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.11.0.tgz#05dac6aa70c0a4ad842261f8957b961d36eb8926" + integrity sha512-bd79DPpx+1Ilh9+30aT5O1sgpQd4Ttg8oqkqi51ZzhedMM1omD2e6IOF48Z/DzDCZ2svp49tN/3vneTK6ZBkXw== core-util-is@1.0.2, core-util-is@~1.0.0: version "1.0.2" From b55fc08aa4f4846650be54e7a66d2e20ad3c01fd Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Fri, 23 Apr 2021 13:29:00 +0200 Subject: [PATCH 065/577] fix(@angular-devkit/build-angular): output webpack-dev-server and webpack-dev-middleware errors With this change we configure `webpack-dev-middleware` and `webpack-dev-server` to print errors to the console, which previously were not displayed. This is because both of these libraries log/emit errors using the logger and the compilation API. Certain errors such as the one below, were being swallowed during `ng serve`. ``` An unhandled exception occurred: Prevent writing to file that only differs in casing or query string from already written file. This will lead to a race-condition and corrupted files on case-insensitive file systems. /home/circleci/ng/aio/dist/generated/docs/api/router/Routes.json /home/circleci/ng/aio/dist/generated/docs/api/router/ROUTES.json ``` --- .../build_angular/src/webpack/configs/dev-server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular_devkit/build_angular/src/webpack/configs/dev-server.ts b/packages/angular_devkit/build_angular/src/webpack/configs/dev-server.ts index db4da55fd6e5..e940ee92007e 100644 --- a/packages/angular_devkit/build_angular/src/webpack/configs/dev-server.ts +++ b/packages/angular_devkit/build_angular/src/webpack/configs/dev-server.ts @@ -126,7 +126,7 @@ export function getDevServerConfig( hot: hmr, proxy: addProxyConfig(root, proxyConfig), contentBase: false, - logLevel: 'silent', + logLevel: 'error', } as Configuration & { logLevel: Configuration['clientLogLevel'] }, }; } From 767f0fffdc797318f11d90470cfc3f33174dec58 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Fri, 23 Apr 2021 15:12:47 -0400 Subject: [PATCH 066/577] perf(@angular-devkit/build-angular): avoid async downlevel for known ES2015 code Library code inside fesm2015/esm2015/_esm2015 directories has been downlevelled to ES2015 which will not have native async/await. As a result, code from those directories can be skipped from the additional checks as well as the downlevel processing. RxJS uses the `_esm2015` directory naming convention. --- .../angular_devkit/build_angular/src/babel/webpack-loader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular_devkit/build_angular/src/babel/webpack-loader.ts b/packages/angular_devkit/build_angular/src/babel/webpack-loader.ts index 24624cf7cccd..c89472af597f 100644 --- a/packages/angular_devkit/build_angular/src/babel/webpack-loader.ts +++ b/packages/angular_devkit/build_angular/src/babel/webpack-loader.ts @@ -66,7 +66,7 @@ export default custom(() => { // TypeScript files will have already been downlevelled customOptions.forceES5 = !/\.tsx?$/.test(this.resourcePath); } else if (esTarget >= ScriptTarget.ES2017) { - customOptions.forceAsyncTransformation = !/[\\\/]fesm2015[\\\/]/.test(this.resourcePath) && source.includes('async'); + customOptions.forceAsyncTransformation = !/[\\\/][_f]?esm2015[\\\/]/.test(this.resourcePath) && source.includes('async'); } shouldProcess ||= customOptions.forceAsyncTransformation || customOptions.forceES5; } From 992828c99117b8b1a90c363e41f8f98efb6e6467 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 23 Apr 2021 06:13:09 +0000 Subject: [PATCH 067/577] build: update postcss to version 8.2.12 --- package.json | 2 +- packages/angular_devkit/build_angular/package.json | 2 +- yarn.lock | 11 ++++++++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index b1544920c551..de6420830936 100644 --- a/package.json +++ b/package.json @@ -182,7 +182,7 @@ "pidtree": "^0.5.0", "pidusage": "^2.0.17", "popper.js": "^1.14.1", - "postcss": "8.2.10", + "postcss": "8.2.12", "postcss-import": "14.0.1", "postcss-loader": "5.2.0", "postcss-preset-env": "6.7.0", diff --git a/packages/angular_devkit/build_angular/package.json b/packages/angular_devkit/build_angular/package.json index bb76d5036b8e..55b9482edffd 100644 --- a/packages/angular_devkit/build_angular/package.json +++ b/packages/angular_devkit/build_angular/package.json @@ -46,7 +46,7 @@ "open": "8.0.6", "ora": "5.4.0", "parse5-html-rewriting-stream": "6.0.1", - "postcss": "8.2.10", + "postcss": "8.2.12", "postcss-import": "14.0.1", "postcss-loader": "5.2.0", "postcss-preset-env": "6.7.0", diff --git a/yarn.lock b/yarn.lock index da3914aa4dcb..b56bd0aa02b5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8838,7 +8838,16 @@ postcss@7.0.21: source-map "^0.6.1" supports-color "^6.1.0" -postcss@8.2.10, postcss@^8.2.10, postcss@^8.2.4: +postcss@8.2.12: + version "8.2.12" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.2.12.tgz#81248a1a87e0f575cc594a99a08207fd1c4addc4" + integrity sha512-BJnGT5+0q2tzvs6oQfnY2NpEJ7rIXNfBnZtQOKCIsweeWXBXeDd5k31UgTdS3d/c02ouspufn37mTaHWkJyzMQ== + dependencies: + colorette "^1.2.2" + nanoid "^3.1.22" + source-map "^0.6.1" + +postcss@^8.2.10, postcss@^8.2.4: version "8.2.10" resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.2.10.tgz#ca7a042aa8aff494b334d0ff3e9e77079f6f702b" integrity sha512-b/h7CPV7QEdrqIxtAf2j31U5ef05uBDuvoXv6L51Q4rcS1jdlXAVKJv+atCFdUXYl9dyTHGyoMzIepwowRJjFw== From 9af16dc6595b07167eeb7cc5fb03344b1483382d Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sat, 24 Apr 2021 11:09:45 +0000 Subject: [PATCH 068/577] build: update pacote to version 11.3.3 --- package.json | 2 +- packages/angular/cli/package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index de6420830936..d5d1e1026a4b 100644 --- a/package.json +++ b/package.json @@ -177,7 +177,7 @@ "npm-registry-client": "8.6.0", "open": "8.0.6", "ora": "5.4.0", - "pacote": "11.3.2", + "pacote": "11.3.3", "parse5-html-rewriting-stream": "6.0.1", "pidtree": "^0.5.0", "pidusage": "^2.0.17", diff --git a/packages/angular/cli/package.json b/packages/angular/cli/package.json index 78ea087ac69b..620bb25421dd 100644 --- a/packages/angular/cli/package.json +++ b/packages/angular/cli/package.json @@ -39,7 +39,7 @@ "npm-pick-manifest": "6.1.1", "open": "8.0.6", "ora": "5.4.0", - "pacote": "11.3.2", + "pacote": "11.3.3", "resolve": "1.20.0", "rimraf": "3.0.2", "semver": "7.3.5", diff --git a/yarn.lock b/yarn.lock index b56bd0aa02b5..89adb91ad2ed 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7930,10 +7930,10 @@ p-try@^2.0.0: resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== -pacote@11.3.2: - version "11.3.2" - resolved "https://registry.yarnpkg.com/pacote/-/pacote-11.3.2.tgz#2bef04f6ec6bafceb5eb2f5b3965f0d00aee4d7e" - integrity sha512-lMO7V9aMhyE5gfaSFxKfW3OTdXuFBNQJfuNuet3NPzWWhOYIW90t85vHcHLDjdhgmfAdAHyh9q1HAap96ea0XA== +pacote@11.3.3: + version "11.3.3" + resolved "https://registry.yarnpkg.com/pacote/-/pacote-11.3.3.tgz#d7d6091464f77c09691699df2ded13ab906b3e68" + integrity sha512-GQxBX+UcVZrrJRYMK2HoG+gPeSUX/rQhnbPkkGrCYa4n2F/bgClFPaMm0nsdnYrxnmUy85uMHoFXZ0jTD0drew== dependencies: "@npmcli/git" "^2.0.1" "@npmcli/installed-package-contents" "^1.0.6" From 222b2e72e032cacd4fe6f532a33e44154e67788d Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sat, 24 Apr 2021 11:10:07 +0000 Subject: [PATCH 069/577] build: update webpack to version 5.35.1 --- package.json | 2 +- packages/angular_devkit/build_angular/package.json | 2 +- packages/angular_devkit/build_optimizer/package.json | 2 +- packages/angular_devkit/build_webpack/package.json | 2 +- packages/ngtools/webpack/package.json | 2 +- yarn.lock | 8 ++++---- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index d5d1e1026a4b..7ac17a637515 100644 --- a/package.json +++ b/package.json @@ -223,7 +223,7 @@ "typescript": "4.2.4", "verdaccio": "5.0.1", "verdaccio-auth-memory": "^10.0.0", - "webpack": "5.35.0", + "webpack": "5.35.1", "webpack-dev-middleware": "4.1.0", "webpack-dev-server": "3.11.2", "webpack-merge": "5.7.3", diff --git a/packages/angular_devkit/build_angular/package.json b/packages/angular_devkit/build_angular/package.json index 55b9482edffd..fd88a48378e5 100644 --- a/packages/angular_devkit/build_angular/package.json +++ b/packages/angular_devkit/build_angular/package.json @@ -68,7 +68,7 @@ "terser-webpack-plugin": "4.2.3", "text-table": "0.2.0", "tree-kill": "1.2.2", - "webpack": "5.35.0", + "webpack": "5.35.1", "webpack-dev-middleware": "4.1.0", "webpack-dev-server": "3.11.2", "webpack-merge": "5.7.3", diff --git a/packages/angular_devkit/build_optimizer/package.json b/packages/angular_devkit/build_optimizer/package.json index 348cc63e7811..e7533472d4c7 100644 --- a/packages/angular_devkit/build_optimizer/package.json +++ b/packages/angular_devkit/build_optimizer/package.json @@ -22,6 +22,6 @@ } }, "devDependencies": { - "webpack": "5.35.0" + "webpack": "5.35.1" } } diff --git a/packages/angular_devkit/build_webpack/package.json b/packages/angular_devkit/build_webpack/package.json index 57c51ff3b3b1..1a09e4a63378 100644 --- a/packages/angular_devkit/build_webpack/package.json +++ b/packages/angular_devkit/build_webpack/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@angular-devkit/core": "0.0.0", "node-fetch": "2.6.1", - "webpack": "5.35.0" + "webpack": "5.35.1" }, "peerDependencies": { "webpack": "^5.30.0", diff --git a/packages/ngtools/webpack/package.json b/packages/ngtools/webpack/package.json index 92f37812c4e6..5e5db490a5fd 100644 --- a/packages/ngtools/webpack/package.json +++ b/packages/ngtools/webpack/package.json @@ -33,6 +33,6 @@ "@angular/compiler": "12.0.0-rc.0", "@angular/compiler-cli": "12.0.0-rc.0", "typescript": "4.2.4", - "webpack": "5.35.0" + "webpack": "5.35.1" } } diff --git a/yarn.lock b/yarn.lock index 89adb91ad2ed..a399b66ad913 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11498,10 +11498,10 @@ webpack-subresource-integrity@1.5.2: dependencies: webpack-sources "^1.3.0" -webpack@5.35.0: - version "5.35.0" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.35.0.tgz#4db23c2b96c4e53a90c5732d7cdb301a84a33576" - integrity sha512-au3gu55yYF/h6NXFr0KZPZAYxS6Nlc595BzYPke8n0CSff5WXcoixtjh5LC/8mXunkRKxhymhXmBY0+kEbR6jg== +webpack@5.35.1: + version "5.35.1" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.35.1.tgz#857670799465c8a5cbb94c4c175d60ac42d18ba3" + integrity sha512-uWKYStqJ23+N6/EnMEwUjPSSKUG1tFmcuKhALEh/QXoUxwN8eb3ATNIZB38A+fO6QZ0xfc7Cu7KNV9LXNhDCsw== dependencies: "@types/eslint-scope" "^3.7.0" "@types/estree" "^0.0.47" From 5a82689eb48a3eed48fa7620b57a162f0b28c350 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Wed, 21 Apr 2021 11:37:14 +0200 Subject: [PATCH 070/577] ci: configure renovate to group all non-major dependencies With this change we configure renovate to group all non-major dependencies and create a single PR --- renovate.json | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/renovate.json b/renovate.json index bece7922b7bf..c8e548c807fc 100644 --- a/renovate.json +++ b/renovate.json @@ -38,11 +38,11 @@ "groupName": "angular", "pinVersions": false }, - { + { "packagePatterns": [ "^@babel\/.*" ], - "groupName": "Babel", + "groupName": "babel", "pinVersions": false }, { @@ -69,6 +69,20 @@ "major" ], "enabled": false + }, + { + "excludePackagePatterns": [ + "^@angular/.*" + ], + "matchPackagePatterns": [ + "*" + ], + "matchUpdateTypes": [ + "minor", + "patch" + ], + "groupName": "all non-major dependencies", + "groupSlug": "all-minor-patch" } ] } From 27bab2a66f2e212dd0e0fbd782eb33360c3e2c4d Mon Sep 17 00:00:00 2001 From: Santosh Yadav Date: Sat, 24 Apr 2021 22:25:39 +0530 Subject: [PATCH 071/577] fix(@schematics/angular): remove lint command from package.json Angular 12 does not provide the default linter but CLI adds the ng lint this PR removes the ng lint from new app created Fixes #20618 --- .../schematics/angular/workspace/files/package.json.template | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/schematics/angular/workspace/files/package.json.template b/packages/schematics/angular/workspace/files/package.json.template index be076d6cc3e8..6b9b486bb745 100644 --- a/packages/schematics/angular/workspace/files/package.json.template +++ b/packages/schematics/angular/workspace/files/package.json.template @@ -6,8 +6,7 @@ "start": "ng serve", "build": "ng build", "watch": "ng build --watch --configuration development"<% if (!minimal) { %>, - "test": "ng test", - "lint": "ng lint"<% } %> + "test": "ng test"<% } %> }, "private": true, "dependencies": { From bd557f98bdafca046b51b7dd8017c7653ef21c22 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sat, 24 Apr 2021 12:28:23 +0000 Subject: [PATCH 072/577] build: update @types/copy-webpack-plugin to version 8.0.0 --- package.json | 2 +- yarn.lock | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 7ac17a637515..57b429663011 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,7 @@ "@types/babel__template": "7.4.0", "@types/cacache": "^15.0.0", "@types/caniuse-lite": "^1.0.0", - "@types/copy-webpack-plugin": "^6.0.0", + "@types/copy-webpack-plugin": "^8.0.0", "@types/cssnano": "^4.0.0", "@types/debug": "^4.1.2", "@types/express": "^4.16.0", diff --git a/yarn.lock b/yarn.lock index a399b66ad913..4a94207ef4a7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1491,12 +1491,14 @@ resolved "https://registry.yarnpkg.com/@types/cookie/-/cookie-0.4.0.tgz#14f854c0f93d326e39da6e3b6f34f7d37513d108" integrity sha512-y7mImlc/rNkvCRmg8gC3/lj87S7pTUIJ6QGjwHR9WQJcFs+ZMTOaoPrkdFA/YdbuqVEmEbb5RdhVxMkAcgOnpg== -"@types/copy-webpack-plugin@^6.0.0": - version "6.4.1" - resolved "https://registry.yarnpkg.com/@types/copy-webpack-plugin/-/copy-webpack-plugin-6.4.1.tgz#f2ab07def407c6a1fcfe626864b326c3584e2167" - integrity sha512-jnM0aMsaMTBr+xlMIO/fu+ZXIbSncmj4UB9ZHTXVfZJsUwGqtdfdSfz1/S8O99R9k7G5V6KhbAd8+QL0f2kUkg== +"@types/copy-webpack-plugin@^8.0.0": + version "8.0.0" + resolved "https://registry.yarnpkg.com/@types/copy-webpack-plugin/-/copy-webpack-plugin-8.0.0.tgz#274e36af8c7988decb7a3a943aa14d23ac1ea92e" + integrity sha512-EJ9Nd0a628uwvgCEt7bN4F6f2jA0O+i+ajAyq9F4jRTqJJ0ro13C22GL/bnvnsSoKuN/O93yfXqZWhn2R70b/g== dependencies: - "@types/webpack" "^4" + "@types/node" "*" + tapable "^2.0.0" + webpack "^5.1.0" "@types/cors@^2.8.8": version "2.8.10" @@ -10576,7 +10578,7 @@ symbol-tree@^3.2.2: resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== -tapable@^2.1.1, tapable@^2.2.0: +tapable@^2.0.0, tapable@^2.1.1, tapable@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.0.tgz#5c373d281d9c672848213d0e037d1c4165ab426b" integrity sha512-FBk4IesMV1rBxX2tfiK8RAmogtWn53puLOQlvO8XuwlgxcYbP4mVPS9Ph4aeamSyyVjOl24aYWAuc8U5kCVwMw== @@ -11498,7 +11500,7 @@ webpack-subresource-integrity@1.5.2: dependencies: webpack-sources "^1.3.0" -webpack@5.35.1: +webpack@5.35.1, webpack@^5.1.0: version "5.35.1" resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.35.1.tgz#857670799465c8a5cbb94c4c175d60ac42d18ba3" integrity sha512-uWKYStqJ23+N6/EnMEwUjPSSKUG1tFmcuKhALEh/QXoUxwN8eb3ATNIZB38A+fO6QZ0xfc7Cu7KNV9LXNhDCsw== From 2d5987102ad47422076b0ab6f1cc7ed833d3503a Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Sun, 25 Apr 2021 10:23:31 +0200 Subject: [PATCH 073/577] refactor(@angular-devkit/build-angular): remove no longer needed casting --- .../build_angular/src/webpack/configs/common.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/angular_devkit/build_angular/src/webpack/configs/common.ts b/packages/angular_devkit/build_angular/src/webpack/configs/common.ts index 824579166a3c..f3e0e7132a39 100644 --- a/packages/angular_devkit/build_angular/src/webpack/configs/common.ts +++ b/packages/angular_devkit/build_angular/src/webpack/configs/common.ts @@ -220,9 +220,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration { extraPlugins.push(new CopyWebpackPlugin({ patterns: copyWebpackPluginPatterns, - // The typings for copy-webpack-plugin use the old @types/webpack package - // tslint:disable-next-line: no-any - }) as any); + })); } if (buildOptions.progress) { From aba23e74c263f8da0f4a48498af0eccf247084fd Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Sun, 25 Apr 2021 08:34:40 +0200 Subject: [PATCH 074/577] ci: configure Renovate to ignore quicktype-core This is needed as currently this breaks lock file maintenance Renovate PR https://github.com/angular/angular-cli/pull/20107 due to quicktype-core has an unspecified dependency on lodash. ``` bazel-out/host/bin/tools/quicktype_runner.sh packages/angular_devkit/build_angular/src/app-shell/schema.json bazel-out/k8-fastbuild/bin/packages/angular_devkit/build_angular/src/app-shell/schema.ts) Execution platform: //tools:rbe_ubuntu1604-angular Error: Cannot find module 'lodash'. Please verify that the package.json has a valid "main" entry at Function.module.constructor._resolveFilename (/b/f/w/bazel-out/host/bin/tools/quicktype_runner.sh.runfiles/angular_cli/tools/quicktype_runner_require_patch.js:480:17) at Function.Module._load (internal/modules/cjs/loader.js:667:27) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at Object. (/b/f/w/bazel-out/host/bin/tools/quicktype_runner.sh.runfiles/npm/node_modules/quicktype-core/dist/language/Dart.js:14:18) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) INFO: Elapsed time: 81.607s, Critical Path: 8.94s --- renovate.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/renovate.json b/renovate.json index c8e548c807fc..fd63c92e305a 100644 --- a/renovate.json +++ b/renovate.json @@ -22,7 +22,8 @@ "master" ], "ignoreDeps": [ - "@types/node" + "@types/node", + "quicktype-core" ], "packageFiles": [ "WORKSPACE", From e813f4755976e7534e587a3713f16e08950a01c9 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 26 Apr 2021 17:06:54 +0000 Subject: [PATCH 075/577] build: update all non-major dependencies packages --- WORKSPACE | 4 +- package.json | 10 ++--- .../angular_devkit/build_angular/package.json | 4 +- yarn.lock | 43 +++++++++++-------- 4 files changed, 35 insertions(+), 26 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index 93f234493f63..4a06b40ceaf0 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -7,8 +7,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", - sha256 = "1134ec9b7baee008f1d54f0483049a97e53a57cd3913ec9d6db625549c98395a", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.4.0/rules_nodejs-3.4.0.tar.gz"], + sha256 = "a160d9ac88f2aebda2aa995de3fa3171300c076f06ad1d7c2e1385728b8442fa", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.4.1/rules_nodejs-3.4.1.tar.gz"], ) # Check the bazel version and download npm dependencies diff --git a/package.json b/package.json index 57b429663011..578c75f10c12 100644 --- a/package.json +++ b/package.json @@ -84,10 +84,10 @@ "@babel/preset-env": "7.13.15", "@babel/runtime": "7.13.17", "@babel/template": "7.12.13", - "@bazel/bazelisk": "1.7.5", + "@bazel/bazelisk": "1.8.0", "@bazel/buildifier": "4.0.1", - "@bazel/jasmine": "3.4.0", - "@bazel/typescript": "3.4.0", + "@bazel/jasmine": "3.4.1", + "@bazel/typescript": "3.4.1", "@discoveryjs/json-ext": "0.5.2", "@jsdevtools/coverage-istanbul-loader": "3.0.5", "@types/babel__core": "7.1.14", @@ -182,7 +182,7 @@ "pidtree": "^0.5.0", "pidusage": "^2.0.17", "popper.js": "^1.14.1", - "postcss": "8.2.12", + "postcss": "8.2.13", "postcss-import": "14.0.1", "postcss-loader": "5.2.0", "postcss-preset-env": "6.7.0", @@ -209,7 +209,7 @@ "symbol-observable": "4.0.0", "tar": "^6.0.0", "temp": "^0.9.0", - "terser": "5.6.1", + "terser": "5.7.0", "terser-webpack-plugin": "4.2.3", "text-table": "0.2.0", "through2": "^4.0.0", diff --git a/packages/angular_devkit/build_angular/package.json b/packages/angular_devkit/build_angular/package.json index fd88a48378e5..d1fe98f239f7 100644 --- a/packages/angular_devkit/build_angular/package.json +++ b/packages/angular_devkit/build_angular/package.json @@ -46,7 +46,7 @@ "open": "8.0.6", "ora": "5.4.0", "parse5-html-rewriting-stream": "6.0.1", - "postcss": "8.2.12", + "postcss": "8.2.13", "postcss-import": "14.0.1", "postcss-loader": "5.2.0", "postcss-preset-env": "6.7.0", @@ -64,7 +64,7 @@ "style-loader": "2.0.0", "stylus": "0.54.8", "stylus-loader": "4.3.3", - "terser": "5.6.1", + "terser": "5.7.0", "terser-webpack-plugin": "4.2.3", "text-table": "0.2.0", "tree-kill": "1.2.2", diff --git a/yarn.lock b/yarn.lock index 4a94207ef4a7..9a773f80623a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1040,28 +1040,28 @@ "@babel/helper-validator-identifier" "^7.12.11" to-fast-properties "^2.0.0" -"@bazel/bazelisk@1.7.5": - version "1.7.5" - resolved "https://registry.yarnpkg.com/@bazel/bazelisk/-/bazelisk-1.7.5.tgz#dd1a52e3d23464f72de55aa3dc4777847fa85373" - integrity sha512-JHwP9JhfZUSoj4sku471Bjw4uE773U2Agujnx0CdPkeRk25khy1l3VyjaPaHB+z1fmMnM6ED3M7tetQUsovUQg== +"@bazel/bazelisk@1.8.0": + version "1.8.0" + resolved "https://registry.yarnpkg.com/@bazel/bazelisk/-/bazelisk-1.8.0.tgz#7bdb7c7068d4779ba8ddbf8cd72afb9b2099bb6e" + integrity sha512-RcovBpVPlLptW/+j1+Xbnr4+Ooy1HO8bG2ECAC0pegLvKFWhO6X3twLKKAJ2KQ4jkoeE0xzUUWIL9zyaIsNxLA== "@bazel/buildifier@4.0.1", "@bazel/buildifier@^4.0.1": version "4.0.1" resolved "https://registry.yarnpkg.com/@bazel/buildifier/-/buildifier-4.0.1.tgz#52cfbad5cbb86e9183a29dde2370cd465730ea0d" integrity sha512-BTmtvJbeeEVrqRApI1gr5hvPgYcHLpdGJ5EXNXEWO692ztMPSj5fB/dH0xUlaW45jn6LimYx8ymqTMhj3538og== -"@bazel/jasmine@3.4.0": - version "3.4.0" - resolved "https://registry.yarnpkg.com/@bazel/jasmine/-/jasmine-3.4.0.tgz#d85d8b9156821f1a2aadca55faedb3d7990bb018" - integrity sha512-TnXLJ/4gcM9KyWtfjv8ZrzNbR0teUYRIoLborbJUXVbMYYKjKOQ+rWzwGUIb6Gf4gJ8M7VmfrpzK8vBUjowkJw== +"@bazel/jasmine@3.4.1": + version "3.4.1" + resolved "https://registry.yarnpkg.com/@bazel/jasmine/-/jasmine-3.4.1.tgz#0f9f4fbf973e4c8b8411c2bf3086a6d2398ffcab" + integrity sha512-nbyg5+6m+KUEmxQX5N65gfV+zTUbIjXYq/m3zYFr/hx1Ql/n2tVBBHcxRO4pAbjDhnpuFQgFoAJPzKe5sIL2iA== dependencies: c8 "~7.5.0" jasmine-reporters "~2.4.0" -"@bazel/typescript@3.4.0": - version "3.4.0" - resolved "https://registry.yarnpkg.com/@bazel/typescript/-/typescript-3.4.0.tgz#031d989682ff8605ed8745f31448c2f76a1b653a" - integrity sha512-XlWrlQnsdQHTwsliUAf4mySHOgqRY2S57LKG2rKRjm+a015Lzlmxo6jRQaxjr68UmuhmlklRw0WfCFxdR81AvQ== +"@bazel/typescript@3.4.1": + version "3.4.1" + resolved "https://registry.yarnpkg.com/@bazel/typescript/-/typescript-3.4.1.tgz#ec52292b240157cd2d874ff7ea7857da8416c00c" + integrity sha512-OKpfjFRhudsaUBL3xH1oAbat+bwdRyfAOTn2qgMQSO3vR4ZBBVYk7GVMJzWamLkbDS0aY5ws5wLfDScJSKD2ww== dependencies: protobufjs "6.8.8" semver "5.6.0" @@ -8840,10 +8840,10 @@ postcss@7.0.21: source-map "^0.6.1" supports-color "^6.1.0" -postcss@8.2.12: - version "8.2.12" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.2.12.tgz#81248a1a87e0f575cc594a99a08207fd1c4addc4" - integrity sha512-BJnGT5+0q2tzvs6oQfnY2NpEJ7rIXNfBnZtQOKCIsweeWXBXeDd5k31UgTdS3d/c02ouspufn37mTaHWkJyzMQ== +postcss@8.2.13: + version "8.2.13" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.2.13.tgz#dbe043e26e3c068e45113b1ed6375d2d37e2129f" + integrity sha512-FCE5xLH+hjbzRdpbRb1IMCvPv9yZx2QnDarBEYSN0N0HYk+TcXsEhwdFcFb+SRWOKzKGErhIEbBK2ogyLdTtfQ== dependencies: colorette "^1.2.2" nanoid "^3.1.22" @@ -10651,7 +10651,16 @@ terser-webpack-plugin@^5.1.1: source-map "^0.6.1" terser "^5.5.1" -terser@5.6.1, terser@^5.3.4, terser@^5.5.1: +terser@5.7.0: + version "5.7.0" + resolved "https://registry.yarnpkg.com/terser/-/terser-5.7.0.tgz#a761eeec206bc87b605ab13029876ead938ae693" + integrity sha512-HP5/9hp2UaZt5fYkuhNBR8YyRcT8juw8+uFbAme53iN9hblvKnLUTKkmwJG6ocWpIKf8UK4DoeWG4ty0J6S6/g== + dependencies: + commander "^2.20.0" + source-map "~0.7.2" + source-map-support "~0.5.19" + +terser@^5.3.4, terser@^5.5.1: version "5.6.1" resolved "https://registry.yarnpkg.com/terser/-/terser-5.6.1.tgz#a48eeac5300c0a09b36854bf90d9c26fb201973c" integrity sha512-yv9YLFQQ+3ZqgWCUk+pvNJwgUTdlIxUk1WTN+RnaFJe2L7ipG2csPT0ra2XRm7Cs8cxN7QXmK1rFzEwYEQkzXw== From d272de8ea512258843d4761955829abda8d13811 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 26 Apr 2021 18:43:17 +0000 Subject: [PATCH 076/577] build: update to version --- yarn.lock | 151 ++++++++++++++++++++++++------------------------------ 1 file changed, 66 insertions(+), 85 deletions(-) diff --git a/yarn.lock b/yarn.lock index 9a773f80623a..9df2c48cf324 100644 --- a/yarn.lock +++ b/yarn.lock @@ -78,9 +78,9 @@ integrity sha512-6Pxgsrf0qF9iFFqmIcWmjJGkkCaCm6V5QNnxMy2KloO3SDq6QuMVRbN9RtC8Urmo25LP+eZ6ZgYqFYpdD8Hd9w== "@angular/core@^10.0.0-0 || ^11.0.0": - version "11.2.10" - resolved "https://registry.yarnpkg.com/@angular/core/-/core-11.2.10.tgz#d92843518cf3bef3db7014a7a798609f89072c3b" - integrity sha512-1nZGSVZPvTA6rFJhoivcUKm2YBx9A+569cV1UTPlXjcpO+wNcrrXG+6yjxS2wAffTWEQ7xA0ajyo8mZrpqqw9Q== + version "11.2.11" + resolved "https://registry.yarnpkg.com/@angular/core/-/core-11.2.11.tgz#96890c9256bcc3b651ea3cdcf144ef744acda8f3" + integrity sha512-O6/opXdOwsAznpactC68TfX8RSErELfyzYGSoNpejDEFdflm0E2jSF4CcdCBlk6WtAJlnL587Lyr9o7AemI0TA== dependencies: tslib "^2.0.0" @@ -1171,9 +1171,9 @@ infer-owner "^1.0.4" "@npmcli/run-script@^1.8.2": - version "1.8.4" - resolved "https://registry.yarnpkg.com/@npmcli/run-script/-/run-script-1.8.4.tgz#03ced92503a6fe948cbc0975ce39210bc5e824d6" - integrity sha512-Yd9HXTtF1JGDXZw0+SOn+mWLYS0e7bHBHVC/2C8yqs4wUrs/k8rwBSinD7rfk+3WG/MFGRZKxjyoD34Pch2E/A== + version "1.8.5" + resolved "https://registry.yarnpkg.com/@npmcli/run-script/-/run-script-1.8.5.tgz#f250a0c5e1a08a792d775a315d0ff42fc3a51e1d" + integrity sha512-NQspusBCpTjNwNRFMtz2C5MxoxyzlbuJ4YEhxAKrIonTiirKDtatsZictx9RgamQIx6+QuHMNmPl0wQdoESs9A== dependencies: "@npmcli/node-gyp" "^1.0.2" "@npmcli/promise-spawn" "^1.3.2" @@ -1199,10 +1199,10 @@ "@octokit/types" "^6.0.3" universal-user-agent "^6.0.0" -"@octokit/openapi-types@^6.0.0": - version "6.1.0" - resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-6.1.0.tgz#cf0f859f9a4833b7fa5141b53e1d62d5d1cbc78f" - integrity sha512-Z9fDZVbGj4dFLErEoXUSuZhk3wJ8KVGnbrUwoPijsQ9EyNwOeQ+U2jSqaHUz8WtgIWf0aeO59oJyhMpWCKaabg== +"@octokit/openapi-types@^6.1.1": + version "6.1.1" + resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-6.1.1.tgz#27f9386fcbcb9846b27b1bc8a41ba6f313c922a6" + integrity sha512-ICBhnEb+ahi/TTdNuYb/kTyKVBgAM0VD4k6JPzlhJyzt3Z+Tq/bynwCD+gpkJP7AEcNnzC8YO5R39trmzEo2UA== "@octokit/request-error@^1.0.2": version "1.2.1" @@ -1261,11 +1261,11 @@ "@types/node" ">= 8" "@octokit/types@^6.0.0", "@octokit/types@^6.0.3", "@octokit/types@^6.7.1": - version "6.13.1" - resolved "https://registry.yarnpkg.com/@octokit/types/-/types-6.13.1.tgz#85f447f97dc7edb672f221df51f56a51785c131a" - integrity sha512-UF/PL0y4SKGx/p1azFf7e6j9lB78tVwAFvnHtslzOJ6VipshYks74qm9jjTEDlCyaTmbhbk2h3Run5l0CtCF6A== + version "6.13.2" + resolved "https://registry.yarnpkg.com/@octokit/types/-/types-6.13.2.tgz#e3423dc733567ac4836e116b34d154a8e9cbbf3c" + integrity sha512-jN5LImYHvv7W6SZargq1UMJ3EiaqIz5qkpfsv4GAb4b16SGqctxtOU2TQAZxvsKHkOw2A4zxdsi5wR9en1/ezQ== dependencies: - "@octokit/openapi-types" "^6.0.0" + "@octokit/openapi-types" "^6.1.1" "@protobufjs/aspromise@^1.1.1", "@protobufjs/aspromise@^1.1.2": version "1.1.2" @@ -1606,9 +1606,9 @@ integrity sha512-sz7iLqvVUg1gIedBOvlkxPlc8/uVzyS5OwGz1cKjXzkl3FpL3al0crU8YGU1WoHkxn0Wxbw5tyi6hvzJKNzFsw== "@types/jasmine@~3.6.0": - version "3.6.9" - resolved "https://registry.yarnpkg.com/@types/jasmine/-/jasmine-3.6.9.tgz#8785870f87839b7d91b45d7b226380f28dee5d9f" - integrity sha512-B53NIwMj/AO0O+xfSWLYmKB0Mo6TYxfv2Mk8/c1T2w/e38t55iaPR6p7pHXTTtqfTmevPK3i8T1YweYFTZlxDw== + version "3.6.10" + resolved "https://registry.yarnpkg.com/@types/jasmine/-/jasmine-3.6.10.tgz#c49d5660bda6e935782e5c83deb1d3b6efb3fac6" + integrity sha512-yfCl7JGtIc5LjScFpeIGBBNhJFkJdAAcsAnAd9ZRHwzh+sR2zkt257BKkTCF5VpJ8wMPnzzZ8QatRdXM8tqpKA== "@types/json-schema@*", "@types/json-schema@^7.0.5", "@types/json-schema@^7.0.6": version "7.0.7" @@ -1784,9 +1784,9 @@ integrity sha512-tGomyEuzSC1H28y2zlW6XPCaDaXFaD6soTdb4GNdmte2qfHtrKqhy0ZFs4r/1hpazCfEZqeTSRLvSasmEx89uw== "@types/semver@^7.0.0": - version "7.3.4" - resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.3.4.tgz#43d7168fec6fa0988bb1a513a697b29296721afb" - integrity sha512-+nVsLKlcUCeMzD2ufHEYuJ9a2ovstb6Dp52A5VsoKxDXgvE051XgHI/33I1EymwkRGQkwnA0LkhnUzituGs4EQ== + version "7.3.5" + resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.3.5.tgz#74deebbbcb1e86634dbf10a5b5e8798626f5a597" + integrity sha512-iotVxtCCsPLRAvxMFFgxL8HD2l4mAZ2Oin7/VJ2ooWO0VOK4EGOGmZWZn1uCq7RofR3I/1IOSjCHlFT71eVK0Q== "@types/serve-static@*": version "1.13.9" @@ -2112,9 +2112,9 @@ acorn@^7.1.0, acorn@^7.1.1: integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== acorn@^8.0.4: - version "8.1.1" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.1.1.tgz#fb0026885b9ac9f48bac1e185e4af472971149ff" - integrity sha512-xYiIVjNuqtKXMxlRMDc6mZUhXehod4a3gbZ1qRlM7icK4EbxUFNLhWoPblCvFtB2Y9CIqHP3CF/rdxLItaQv8g== + version "8.2.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.2.1.tgz#0d36af126fb6755095879c1dc6fd7edf7d60a5fb" + integrity sha512-z716cpm5TX4uzOzILx8PavOE6C6DKshHDw1aQN52M/yNSqE9s5O8SMfyhCCfCJ3HmTL0NkVOi+8a/55T7YB3bg== add-stream@^1.0.0: version "1.0.0" @@ -2754,13 +2754,13 @@ browser-process-hrtime@^1.0.0: integrity sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow== browserslist@*, browserslist@^4.0.0, browserslist@^4.12.0, browserslist@^4.14.5, browserslist@^4.16.0, browserslist@^4.16.1, browserslist@^4.16.4, browserslist@^4.6.4, browserslist@^4.9.1: - version "4.16.4" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.16.4.tgz#7ebf913487f40caf4637b892b268069951c35d58" - integrity sha512-d7rCxYV8I9kj41RH8UKYnvDYCRENUlHRgyXy/Rhr/1BaeLGfiCptEdFE8MIrvGfWbBFNjVYx76SQWvNX1j+/cQ== + version "4.16.5" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.16.5.tgz#952825440bca8913c62d0021334cbe928ef062ae" + integrity sha512-C2HAjrM1AI/djrpAUU/tr4pml1DqLIzJKSLDBXBrNErl9ZCCTXdhwxdJjYc16953+mBWf7Lw+uUJgpgb8cN71A== dependencies: - caniuse-lite "^1.0.30001208" + caniuse-lite "^1.0.30001214" colorette "^1.2.2" - electron-to-chromium "^1.3.712" + electron-to-chromium "^1.3.719" escalade "^3.1.1" node-releases "^1.1.71" @@ -2967,10 +2967,10 @@ caniuse-api@^3.0.0: lodash.memoize "^4.1.2" lodash.uniq "^4.5.0" -caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000981, caniuse-lite@^1.0.30001032, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001208: - version "1.0.30001214" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001214.tgz#70f153c78223515c6d37a9fde6cd69250da9d872" - integrity sha512-O2/SCpuaU3eASWVaesQirZv1MSjUNOvmugaD8zNSJqw6Vv5SGwoOpA9LJs3pNPfM745nxqPvfZY3MQKY4AKHYg== +caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000981, caniuse-lite@^1.0.30001032, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001214: + version "1.0.30001216" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001216.tgz#47418a082a4f952d14d8964ae739e25efb2060a9" + integrity sha512-1uU+ww/n5WCJRwUcc9UH/W6925Se5aNnem/G5QaSDga2HzvjYMs8vRbekGUN/PnTZ7ezTHcxxTEb9fgiMYwH6Q== canonical-path@1.0.0: version "1.0.0" @@ -3003,9 +3003,9 @@ chalk@^2.0.0, chalk@^2.3.0, chalk@^2.3.1, chalk@^2.4.1, chalk@^2.4.2: supports-color "^5.3.0" chalk@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a" - integrity sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A== + version "4.1.1" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.1.tgz#c80b3fab28bf6371e6863325eee67e618b77e6ad" + integrity sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg== dependencies: ansi-styles "^4.1.0" supports-color "^7.1.0" @@ -3583,9 +3583,9 @@ copy-webpack-plugin@8.1.1: serialize-javascript "^5.0.1" core-js-compat@^3.9.0, core-js-compat@^3.9.1: - version "3.10.2" - resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.10.2.tgz#0a675b4e1cde599616322a72c8886bcf696f3ec3" - integrity sha512-IGHnpuaM1N++gLSPI1F1wu3WXICPxSyj/Q++clcwsIOnUVp5uKUIPl/+6h0TQ112KU3fMiSxqJuM+OrCyKj5+A== + version "3.11.0" + resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.11.0.tgz#635683f43480a0b41e3f6be3b1c648dadb8b4390" + integrity sha512-3wsN9YZJohOSDCjVB0GequOyHax8zFiogSX3XWLE28M1Ew7dTU57tgHjIylSBKSIouwmLBp3g61sKMz/q3xEGA== dependencies: browserslist "^4.16.4" semver "7.0.0" @@ -4293,10 +4293,10 @@ ejs@^3.1.6: dependencies: jake "^10.6.1" -electron-to-chromium@^1.3.712: - version "1.3.718" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.718.tgz#a192981ced608978410ebc011e24ecab1bb4beb3" - integrity sha512-CikzdUSShGXwjq1pcW740wK8j+KbazgHZiwzlHICejDaczM6OVsPcrZmBHPwzj9i2rj5twg20MBwp+cYZwldYA== +electron-to-chromium@^1.3.719: + version "1.3.720" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.720.tgz#f5d66df8754d993006b7b2ded15ff7738c58bd94" + integrity sha512-B6zLTxxaOFP4WZm6DrvgRk8kLFYWNhQ5TrHMC0l5WtkMXhU5UbnvWoTfeEwqOruUSlNMhVLfYak7REX6oC5Yfw== emoji-regex@^7.0.1: version "7.0.3" @@ -4904,9 +4904,9 @@ flatten@^1.0.2: integrity sha512-dVsPA/UwQ8+2uoFe5GHtiBMu48dWLTdsuEd7CKGlZlD78r1TTWBvDuFaFGKCo/ZfEr95Uk56vZoX86OsHkUeIg== follow-redirects@^1.0.0: - version "1.13.3" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.13.3.tgz#e5598ad50174c1bc4e872301e82ac2cd97f90267" - integrity sha512-DUgl6+HDzB0iEptNQEXLx/KhTmDb8tZUHSeLqpnjpknR70H0nC2t9N73BK6fN4hOvJ84pKlIQVQ4k5FFlBedKA== + version "1.14.0" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.0.tgz#f5d260f95c5f8c105894491feee5dc8993b402fe" + integrity sha512-0vRwd7RKQBTt+mgu87mtYeofLFZpTas2S9zY+jIeuLJMNvudIgF52nr19q40HOwH5RrhWIPuj9puybzSJiRrVg== font-awesome@^4.7.0: version "4.7.0" @@ -5485,9 +5485,9 @@ http-proxy-middleware@0.19.1: micromatch "^3.1.10" http-proxy-middleware@^1.0.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/http-proxy-middleware/-/http-proxy-middleware-1.2.0.tgz#87776ea3d4d8dda3dc2594a076787bbc6fe4d995" - integrity sha512-vNw+AxT0+6VTM1rCJw1bpiIaUQ1Ww/vTyIEOUzdW9kNX4yuhhqV3jLSKDJo/Y/lqEIshaKCDujtvEqWiD9Dn6Q== + version "1.3.0" + resolved "https://registry.yarnpkg.com/http-proxy-middleware/-/http-proxy-middleware-1.3.0.tgz#eda5e0b7d1f27ac82bd11eb5099d8c309d30cf30" + integrity sha512-nHn8lcFNmxCalzHGXMn0ojKunXC9twBvJ+y7QNhvK/ep7ZDOXvO7Gph01rSwsMOrG4m6N72gAAWXMYhPZvK6OA== dependencies: "@types/http-proxy" "^1.17.5" http-proxy "^1.18.1" @@ -5790,9 +5790,9 @@ is-color-stop@^1.1.0: rgba-regex "^1.0.0" is-core-module@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.2.0.tgz#97037ef3d52224d85163f5597b2b63d9afed981a" - integrity sha512-XRAfAdyyY5F5cOXn7hYQDqh2Xmii+DEfIcQGxK/uNwMHhIkPWO0g8msXcbzLe+MpGoR951MlqM/2iIlU4vKDdQ== + version "2.3.0" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.3.0.tgz#d341652e3408bca69c4671b79a0954a3d349f887" + integrity sha512-xSphU2KG9867tsYdLD4RWQ1VqdFl4HTO9Thf3I/3dLEfr0dbPTWKsuCKrgqMljg4nPE+Gq0VCnzT3gr0CyBmsw== dependencies: has "^1.0.3" @@ -7381,9 +7381,9 @@ next-tick@~1.0.0: integrity sha1-yobR/ogoFpsBICCOPchCS524NCw= ng-packagr@~12.0.0-next.0: - version "12.0.0-next.9" - resolved "https://registry.yarnpkg.com/ng-packagr/-/ng-packagr-12.0.0-next.9.tgz#25d42b40b970796e01e9518efa05d786e6c5a879" - integrity sha512-m0NcN5RwfWqQ9WtEbJKVIJu72bQNjfvgVq15xxYgI2bjevQlsv+QzcaGajXhzGcSCmhvFurxhKP6nI2q5erJoA== + version "12.0.0-rc.0" + resolved "https://registry.yarnpkg.com/ng-packagr/-/ng-packagr-12.0.0-rc.0.tgz#e004e479942679ed7bad0dab1b955015c6f2095e" + integrity sha512-2RId3gXeWopQiC8OkLvELEWkbIeUimD+hxeV3S0wmdLbeTU8pSjwEAySEgtzuukeWgdm7sRdnO1v8fSNcd10tA== dependencies: "@rollup/plugin-commonjs" "^18.0.0" "@rollup/plugin-json" "^4.1.0" @@ -7403,11 +7403,10 @@ ng-packagr@~12.0.0-next.0: postcss "^8.2.4" postcss-preset-env "^6.7.0" postcss-url "^10.1.1" - rimraf "^3.0.0" - rollup "^2.37.0" + rollup "^2.45.1" rollup-plugin-sourcemaps "^0.6.3" rxjs "^6.5.0" - sass "^1.32.5" + sass "^1.32.8" stylus "^0.54.8" nice-try@^1.0.4: @@ -7524,9 +7523,9 @@ normalize-url@^4.1.0, normalize-url@^4.5.0: integrity sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ== npm-bundled@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.1.1.tgz#1edd570865a94cdb1bc8220775e29466c9fb234b" - integrity sha512-gqkfgGePhTpAEgUsGEgcq1rqPXA+tv/aVBlgEzfXwA1yiUJF7xtEt3CtVwOjNYQOVknDk0F20w58Fnm3EtG0fA== + version "1.1.2" + resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.1.2.tgz#944c78789bd739035b70baa2ca5cc32b8d860bc1" + integrity sha512-x5DHup0SuyQcmL3s7Rx/YQ8sbw/Hzg0rj48eN0dV7hf5cmQq5PXIeioroH3raV1QC1yh3uTYuMThvEQF3iKgGQ== dependencies: npm-normalize-package-bin "^1.0.1" @@ -7601,9 +7600,9 @@ npm-registry-client@8.6.0: npmlog "2 || ^3.1.0 || ^4.0.0" npm-registry-fetch@^10.0.0: - version "10.1.0" - resolved "https://registry.yarnpkg.com/npm-registry-fetch/-/npm-registry-fetch-10.1.0.tgz#3b618126b1011af74c12e75d6077712bda411da4" - integrity sha512-XcKu0h6OuRTB7HO5uv8htavPQJ1dYTLAXLE5AMs4GFQ1LbY+LlHiNoqIbVshE3rk0vLk+nKxpA/4WJm1kE7eqg== + version "10.1.1" + resolved "https://registry.yarnpkg.com/npm-registry-fetch/-/npm-registry-fetch-10.1.1.tgz#97bc7a0fca5e8f76cc5162185b8de8caa8bea639" + integrity sha512-F6a3l+ffCQ7hvvN16YG5bpm1rPZntCg66PLHDQ1apWJPOCUVHoKnL2w5fqEaTVhp42dmossTyXeR7hTGirfXrg== dependencies: lru-cache "^6.0.0" make-fetch-happen "^8.0.9" @@ -8840,7 +8839,7 @@ postcss@7.0.21: source-map "^0.6.1" supports-color "^6.1.0" -postcss@8.2.13: +postcss@8.2.13, postcss@^8.2.10, postcss@^8.2.4: version "8.2.13" resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.2.13.tgz#dbe043e26e3c068e45113b1ed6375d2d37e2129f" integrity sha512-FCE5xLH+hjbzRdpbRb1IMCvPv9yZx2QnDarBEYSN0N0HYk+TcXsEhwdFcFb+SRWOKzKGErhIEbBK2ogyLdTtfQ== @@ -8849,15 +8848,6 @@ postcss@8.2.13: nanoid "^3.1.22" source-map "^0.6.1" -postcss@^8.2.10, postcss@^8.2.4: - version "8.2.10" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.2.10.tgz#ca7a042aa8aff494b334d0ff3e9e77079f6f702b" - integrity sha512-b/h7CPV7QEdrqIxtAf2j31U5ef05uBDuvoXv6L51Q4rcS1jdlXAVKJv+atCFdUXYl9dyTHGyoMzIepwowRJjFw== - dependencies: - colorette "^1.2.2" - nanoid "^3.1.22" - source-map "^0.6.1" - prelude-ls@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" @@ -9629,7 +9619,7 @@ rollup-plugin-sourcemaps@^0.6.3: "@rollup/pluginutils" "^3.0.9" source-map-resolve "^0.6.0" -rollup@^2.37.0: +rollup@^2.45.1: version "2.45.2" resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.45.2.tgz#8fb85917c9f35605720e92328f3ccbfba6f78b48" integrity sha512-kRRU7wXzFHUzBIv0GfoFFIN3m9oteY4uAsKllIpQDId5cfnkWF2J130l+27dzDju0E6MScKiV0ZM5Bw8m4blYQ== @@ -9685,7 +9675,7 @@ sass-loader@11.0.1: klona "^2.0.4" neo-async "^2.6.2" -sass@1.32.11, sass@^1.32.5: +sass@1.32.11, sass@^1.32.8: version "1.32.11" resolved "https://registry.yarnpkg.com/sass/-/sass-1.32.11.tgz#b236b3ea55c76602c2ef2bd0445f0db581baa218" integrity sha512-O9tRcob/fegUVSIV1ihLLZcftIOh0AF1VpKgusUfLqnb2jQ0GLDwI5ivv1FYWivGv8eZ/AwntTyTzjcHu0c/qw== @@ -10651,7 +10641,7 @@ terser-webpack-plugin@^5.1.1: source-map "^0.6.1" terser "^5.5.1" -terser@5.7.0: +terser@5.7.0, terser@^5.3.4, terser@^5.5.1: version "5.7.0" resolved "https://registry.yarnpkg.com/terser/-/terser-5.7.0.tgz#a761eeec206bc87b605ab13029876ead938ae693" integrity sha512-HP5/9hp2UaZt5fYkuhNBR8YyRcT8juw8+uFbAme53iN9hblvKnLUTKkmwJG6ocWpIKf8UK4DoeWG4ty0J6S6/g== @@ -10660,15 +10650,6 @@ terser@5.7.0: source-map "~0.7.2" source-map-support "~0.5.19" -terser@^5.3.4, terser@^5.5.1: - version "5.6.1" - resolved "https://registry.yarnpkg.com/terser/-/terser-5.6.1.tgz#a48eeac5300c0a09b36854bf90d9c26fb201973c" - integrity sha512-yv9YLFQQ+3ZqgWCUk+pvNJwgUTdlIxUk1WTN+RnaFJe2L7ipG2csPT0ra2XRm7Cs8cxN7QXmK1rFzEwYEQkzXw== - dependencies: - commander "^2.20.0" - source-map "~0.7.2" - source-map-support "~0.5.19" - test-exclude@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e" From 770d2743d2425bb4ea10b08034df49033b9effd1 Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Mon, 26 Apr 2021 15:16:57 -0700 Subject: [PATCH 077/577] build: update tslint to check for proper and correct file header Update the file header expectation in linting to be Google LLC rather than Google Inc. --- tslint.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tslint.json b/tslint.json index 9128c2c04b24..ee2968d79de4 100644 --- a/tslint.json +++ b/tslint.json @@ -134,7 +134,10 @@ "curly": true, "file-header": [ true, - "Copyright Google Inc\\. All Rights Reserved\\." + { + "match": "Copyright Google LLC", + "allow-single-line-comments": false + } ], "variable-name": [ true, From 003854257c43d14a590a3823a2bb25b10303077b Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Mon, 26 Apr 2021 15:17:36 -0700 Subject: [PATCH 078/577] build: migrate all file header to use Google LLC rather than Google Inc --- bin/architect | 3 ++- bin/benchmark | 3 ++- bin/build-optimizer | 3 ++- bin/devkit-admin | 3 ++- bin/ng | 3 ++- bin/schematics | 3 ++- lib/bootstrap-local.js | 3 ++- lib/packages.ts | 3 ++- lib/registries.ts | 3 +-- packages/angular/cli/commands/add-impl.ts | 3 ++- packages/angular/cli/commands/analytics-impl.ts | 3 ++- packages/angular/cli/commands/build-impl.ts | 3 ++- packages/angular/cli/commands/config-impl.ts | 3 +-- packages/angular/cli/commands/deploy-impl.ts | 3 ++- packages/angular/cli/commands/doc-impl.ts | 3 +-- packages/angular/cli/commands/e2e-impl.ts | 3 +-- packages/angular/cli/commands/easter-egg-impl.ts | 3 ++- packages/angular/cli/commands/extract-i18n-impl.ts | 3 +-- packages/angular/cli/commands/generate-impl.ts | 3 ++- packages/angular/cli/commands/help-impl.ts | 3 ++- packages/angular/cli/commands/lint-impl.ts | 3 ++- packages/angular/cli/commands/new-impl.ts | 3 ++- packages/angular/cli/commands/run-impl.ts | 3 +-- packages/angular/cli/commands/serve-impl.ts | 3 ++- packages/angular/cli/commands/test-impl.ts | 3 +-- packages/angular/cli/commands/update-impl.ts | 3 ++- packages/angular/cli/commands/version-impl.ts | 3 ++- packages/angular/cli/lib/cli/index.ts | 3 ++- packages/angular/cli/lib/init.ts | 3 ++- packages/angular/cli/models/analytics-collector.ts | 4 ++-- packages/angular/cli/models/analytics.ts | 3 ++- packages/angular/cli/models/architect-command.ts | 3 ++- packages/angular/cli/models/command-runner.ts | 3 ++- packages/angular/cli/models/command.ts | 3 ++- packages/angular/cli/models/error.ts | 3 +-- packages/angular/cli/models/interface.ts | 3 ++- packages/angular/cli/models/parser.ts | 4 ++-- packages/angular/cli/models/parser_spec.ts | 4 ++-- packages/angular/cli/models/schematic-command.ts | 3 ++- .../angular/cli/models/schematic-engine-host.ts | 3 ++- packages/angular/cli/models/version.ts | 3 +-- .../cli/src/commands/update/schematic/index.ts | 3 ++- .../cli/src/commands/update/schematic/index_spec.ts | 3 ++- .../commands/update/schematic/npm-package-json.ts | 3 ++- .../cli/src/commands/update/schematic/npm.ts | 3 ++- .../src/commands/update/schematic/package-json.ts | 3 ++- packages/angular/cli/utilities/color.ts | 3 ++- packages/angular/cli/utilities/config.ts | 3 ++- packages/angular/cli/utilities/find-up.ts | 3 +-- packages/angular/cli/utilities/install-package.ts | 3 +-- packages/angular/cli/utilities/json-file.ts | 3 +-- packages/angular/cli/utilities/json-schema.ts | 3 ++- packages/angular/cli/utilities/json-schema_spec.ts | 4 ++-- packages/angular/cli/utilities/log-file.ts | 3 +-- packages/angular/cli/utilities/package-manager.ts | 3 ++- packages/angular/cli/utilities/package-metadata.ts | 3 ++- packages/angular/cli/utilities/package-tree.ts | 3 +-- packages/angular/cli/utilities/project.ts | 3 ++- packages/angular/cli/utilities/prompt.ts | 3 ++- packages/angular/cli/utilities/spinner.ts | 3 +-- packages/angular/cli/utilities/tty.ts | 3 +-- packages/angular/pwa/pwa/index.ts | 3 ++- packages/angular/pwa/pwa/index_spec.ts | 3 ++- .../angular_devkit/architect/builders/all-of.ts | 3 ++- .../angular_devkit/architect/builders/concat.ts | 3 ++- packages/angular_devkit/architect/builders/false.ts | 3 ++- packages/angular_devkit/architect/builders/true.ts | 3 ++- packages/angular_devkit/architect/node/index.ts | 3 ++- .../architect/node/node-modules-architect-host.ts | 3 ++- packages/angular_devkit/architect/src/api.ts | 3 ++- packages/angular_devkit/architect/src/api_spec.ts | 3 ++- packages/angular_devkit/architect/src/architect.ts | 3 ++- .../angular_devkit/architect/src/create-builder.ts | 3 ++- packages/angular_devkit/architect/src/index.ts | 3 ++- packages/angular_devkit/architect/src/index_spec.ts | 3 ++- packages/angular_devkit/architect/src/internal.ts | 3 ++- .../architect/src/schedule-by-name.ts | 3 ++- packages/angular_devkit/architect/testing/index.ts | 3 ++- .../architect/testing/test-project-host.ts | 3 +-- .../architect/testing/testing-architect-host.ts | 3 ++- .../angular_devkit/architect_cli/bin/architect.ts | 3 ++- .../angular_devkit/architect_cli/src/progress.ts | 3 ++- packages/angular_devkit/benchmark/src/command.ts | 3 +-- .../benchmark/src/default-reporter.ts | 3 ++- .../benchmark/src/default-stats-capture.ts | 3 +-- .../benchmark/src/default-stats-capture_spec.ts | 3 ++- packages/angular_devkit/benchmark/src/index.ts | 3 +-- packages/angular_devkit/benchmark/src/interfaces.ts | 3 ++- packages/angular_devkit/benchmark/src/main.ts | 3 +-- packages/angular_devkit/benchmark/src/main_spec.ts | 3 ++- .../benchmark/src/monitored-process.ts | 3 ++- .../benchmark/src/monitored-process_spec.ts | 3 +-- .../benchmark/src/run-benchmark-watch.ts | 3 ++- .../angular_devkit/benchmark/src/run-benchmark.ts | 3 ++- packages/angular_devkit/benchmark/src/utils.ts | 3 +-- .../angular_devkit/build_angular/plugins/karma.ts | 3 +-- .../build_angular/src/app-shell/app-shell_spec.ts | 3 ++- .../build_angular/src/app-shell/index.ts | 3 ++- .../build_angular/src/babel-bazel.d.ts | 3 +-- .../build_angular/src/babel/babel-loader.d.ts | 3 ++- .../build_angular/src/babel/presets/application.ts | 3 ++- .../build_angular/src/babel/webpack-loader.ts | 3 ++- .../build_angular/src/browser/index.ts | 3 ++- .../src/browser/specs/allow-js_spec.ts | 3 ++- .../build_angular/src/browser/specs/aot_spec.ts | 3 +-- .../src/browser/specs/base-href_spec.ts | 3 +-- .../src/browser/specs/browser-support_spec.ts | 3 ++- .../src/browser/specs/build-optimizer_spec.ts | 3 ++- .../src/browser/specs/bundle-budgets_spec.ts | 3 ++- .../src/browser/specs/cross-origin_spec.ts | 3 +-- .../src/browser/specs/deploy-url_spec.ts | 3 ++- .../src/browser/specs/differential_loading_spec.ts | 3 +-- .../build_angular/src/browser/specs/errors_spec.ts | 3 +-- .../src/browser/specs/font-optimization_spec.ts | 3 ++- .../build_angular/src/browser/specs/index_spec.ts | 3 ++- .../specs/inline-critical-css-optimization_spec.ts | 3 ++- .../src/browser/specs/lazy-module_spec.ts | 3 +-- .../src/browser/specs/no-entry-module_spec.ts | 3 +-- .../src/browser/specs/optimization-level_spec.ts | 3 ++- .../src/browser/specs/output-path_spec.ts | 3 +-- .../build_angular/src/browser/specs/poll_spec.ts | 3 +-- .../build_angular/src/browser/specs/rebuild_spec.ts | 3 ++- .../src/browser/specs/replacements_spec.ts | 3 +-- .../src/browser/specs/resolve-json-module_spec.ts | 3 +-- .../src/browser/specs/resources-output-path_spec.ts | 3 ++- .../src/browser/specs/scripts-array_spec.ts | 3 +-- .../src/browser/specs/service-worker_spec.ts | 3 ++- .../src/browser/specs/source-map_spec.ts | 3 ++- .../src/browser/specs/stats-json_spec.ts | 3 ++- .../build_angular/src/browser/specs/styles_spec.ts | 3 ++- .../build_angular/src/browser/specs/svg_spec.ts | 3 ++- .../src/browser/specs/tsconfig-paths_spec.ts | 3 +-- .../src/browser/specs/unused-files-warning_spec.ts | 3 ++- .../src/browser/specs/vendor-chunk_spec.ts | 3 ++- .../src/browser/specs/vendor-source-map_spec.ts | 3 ++- .../src/browser/specs/web-worker_spec.ts | 3 +-- .../build_angular/src/browser/specs/works_spec.ts | 3 ++- .../browser/tests/behavior/rebuild-errors_spec.ts | 3 ++- .../tests/behavior/typescript-target_spec.ts | 3 ++- .../options/allowed-common-js-dependencies_spec.ts | 3 ++- .../src/browser/tests/options/assets_spec.ts | 3 ++- .../browser/tests/options/extract-licenses_spec.ts | 3 ++- .../tests/options/inline-style-language_spec.ts | 3 ++- .../src/browser/tests/options/main_spec.ts | 3 ++- .../src/browser/tests/options/named-chunks_spec.ts | 3 ++- .../browser/tests/options/output-hashing_spec.ts | 3 +-- .../src/browser/tests/options/polyfills_spec.ts | 3 ++- .../src/browser/tests/options/scripts_spec.ts | 3 ++- .../options/show-circular-dependencies_spec.ts | 3 ++- .../src/browser/tests/options/stats-json_spec.ts | 3 ++- .../src/browser/tests/options/styles_spec.ts | 3 ++- .../tests/options/subresource-integrity_spec.ts | 3 ++- .../src/browser/tests/options/tsconfig_spec.ts | 3 ++- .../src/browser/tests/options/watch_spec.ts | 3 ++- .../build_angular/src/browser/tests/setup.ts | 3 ++- .../build_angular/src/dev-server/hmr_spec.ts | 3 ++- .../build_angular/src/dev-server/index.ts | 3 +-- .../build_angular/src/dev-server/index_spec.ts | 3 ++- .../src/dev-server/live-reload_spec.ts | 3 ++- .../build_angular/src/dev-server/ssl_spec.ts | 3 ++- .../dev-server/tests/behavior/build-budgets_spec.ts | 3 ++- .../tests/behavior/build-deploy-url_spec.ts | 3 ++- .../behavior/build-inline-critical-css_spec.ts | 3 ++- .../src/dev-server/tests/execute-fetch.ts | 3 ++- .../dev-server/tests/options/allowed-hosts_spec.ts | 3 ++- .../tests/options/disable-host-check_spec.ts | 3 ++- .../src/dev-server/tests/options/hmr_spec.ts | 3 ++- .../dev-server/tests/options/live-reload_spec.ts | 3 ++- .../src/dev-server/tests/options/port_spec.ts | 3 ++- .../dev-server/tests/options/proxy-config_spec.ts | 3 ++- .../dev-server/tests/options/public-host_spec.ts | 3 ++- .../src/dev-server/tests/options/serve-path_spec.ts | 3 ++- .../src/dev-server/tests/options/verbose_spec.ts | 3 ++- .../src/dev-server/tests/options/watch_spec.ts | 3 ++- .../build_angular/src/dev-server/tests/setup.ts | 3 ++- .../build_angular/src/dev-server/works_spec.ts | 3 ++- .../build_angular/src/extract-i18n/index.ts | 3 ++- .../src/extract-i18n/ivy-extract-loader.ts | 3 ++- .../build_angular/src/extract-i18n/works_spec.ts | 3 ++- packages/angular_devkit/build_angular/src/index.ts | 3 +-- .../build_angular/src/karma/code-coverage_spec.ts | 3 +-- .../build_angular/src/karma/find-tests.ts | 3 ++- .../angular_devkit/build_angular/src/karma/index.ts | 3 ++- .../build_angular/src/karma/rebuilds_spec.ts | 3 ++- .../build_angular/src/karma/selected_spec.ts | 3 ++- .../build_angular/src/karma/works_spec.ts | 3 ++- .../build_angular/src/ng-packagr/index.ts | 3 ++- .../build_angular/src/ng-packagr/works_spec.ts | 3 ++- .../build_angular/src/protractor/index.ts | 3 ++- .../build_angular/src/protractor/works_spec.ts | 3 ++- .../build_angular/src/server/base_spec.ts | 3 +-- .../src/server/external_dependencies_spec.ts | 3 +-- .../build_angular/src/server/index.ts | 3 ++- .../src/server/resources-output-path_spec.ts | 3 ++- .../angular_devkit/build_angular/src/test-utils.ts | 3 ++- .../build_angular/src/testing/builder-harness.ts | 3 ++- .../src/testing/builder-harness_spec.ts | 3 ++- .../build_angular/src/testing/file-watching.ts | 3 ++- .../build_angular/src/testing/index.ts | 3 ++- .../build_angular/src/testing/jasmine-helpers.ts | 3 ++- .../angular_devkit/build_angular/src/transforms.ts | 3 ++- .../build_angular/src/tslint/index.ts | 3 ++- .../build_angular/src/tslint/works_spec.ts | 3 ++- .../angular_devkit/build_angular/src/typings.d.ts | 3 ++- .../build_angular/src/utils/action-cache.ts | 3 ++- .../build_angular/src/utils/action-executor.ts | 3 ++- .../src/utils/build-browser-features.ts | 3 +-- .../src/utils/build-browser-features_spec.ts | 3 +-- .../build_angular/src/utils/build-options.ts | 3 +-- .../build_angular/src/utils/bundle-calculator.ts | 3 ++- .../src/utils/bundle-calculator_spec.ts | 3 ++- .../build_angular/src/utils/cache-path.ts | 3 ++- .../build_angular/src/utils/check-port.ts | 3 ++- .../angular_devkit/build_angular/src/utils/color.ts | 3 ++- .../build_angular/src/utils/copy-assets.ts | 3 ++- .../build_angular/src/utils/copy-file.ts | 3 ++- .../build_angular/src/utils/default-progress.ts | 3 +-- .../build_angular/src/utils/delete-output-dir.ts | 3 ++- .../build_angular/src/utils/environment-options.ts | 3 ++- .../build_angular/src/utils/find-up.ts | 3 ++- .../build_angular/src/utils/i18n-inlining.ts | 3 ++- .../build_angular/src/utils/i18n-options.ts | 3 ++- .../src/utils/index-file/augment-index-html.ts | 3 +-- .../src/utils/index-file/augment-index-html_spec.ts | 3 ++- .../src/utils/index-file/html-rewriting-stream.ts | 3 +-- .../src/utils/index-file/index-html-generator.ts | 3 +-- .../src/utils/index-file/inline-critical-css.ts | 3 +-- .../utils/index-file/inline-critical-css_spec.ts | 3 ++- .../src/utils/index-file/inline-fonts.ts | 3 +-- .../src/utils/index-file/inline-fonts_spec.ts | 3 ++- .../angular_devkit/build_angular/src/utils/index.ts | 3 +-- .../build_angular/src/utils/is-directory.ts | 3 ++- .../build_angular/src/utils/load-translations.ts | 3 ++- .../src/utils/normalize-asset-patterns.ts | 3 ++- .../src/utils/normalize-builder-schema.ts | 3 +-- .../src/utils/normalize-file-replacements.ts | 3 +-- .../src/utils/normalize-optimization.ts | 3 +-- .../src/utils/normalize-source-maps.ts | 3 +-- .../build_angular/src/utils/output-paths.ts | 3 ++- .../build_angular/src/utils/package-chunk-sort.ts | 3 ++- .../src/utils/process-bundle-bootstrap.js | 5 +++-- .../build_angular/src/utils/process-bundle.ts | 3 ++- .../build_angular/src/utils/read-tsconfig.ts | 3 +-- .../src/utils/run-module-as-observable-fork.ts | 3 ++- .../build_angular/src/utils/run-module-worker.js | 4 +--- .../build_angular/src/utils/service-worker.ts | 3 ++- .../build_angular/src/utils/spinner.ts | 3 +-- .../build_angular/src/utils/strip-bom.ts | 3 ++- .../angular_devkit/build_angular/src/utils/tty.ts | 3 +-- .../angular_devkit/build_angular/src/utils/url.ts | 3 +-- .../build_angular/src/utils/url_spec.ts | 3 ++- .../build_angular/src/utils/version.ts | 3 ++- .../src/utils/webpack-browser-config.ts | 3 ++- .../build_angular/src/utils/webpack-diagnostics.ts | 5 +++-- .../build_angular/src/utils/workers.ts | 3 +-- .../build_angular/src/webpack/configs/browser.ts | 3 ++- .../build_angular/src/webpack/configs/common.ts | 3 ++- .../build_angular/src/webpack/configs/dev-server.ts | 3 +-- .../build_angular/src/webpack/configs/index.ts | 3 ++- .../build_angular/src/webpack/configs/server.ts | 3 ++- .../build_angular/src/webpack/configs/stats.ts | 3 +-- .../build_angular/src/webpack/configs/styles.ts | 3 ++- .../build_angular/src/webpack/configs/test.ts | 3 +-- .../build_angular/src/webpack/configs/typescript.ts | 3 ++- .../build_angular/src/webpack/configs/worker.ts | 3 ++- .../build_angular/src/webpack/es5-jit-polyfills.js | 3 ++- .../build_angular/src/webpack/es5-polyfills.js | 5 ++--- .../build_angular/src/webpack/jit-polyfills.js | 3 ++- .../build_angular/src/webpack/plugins/analytics.ts | 3 ++- .../src/webpack/plugins/analytics_spec.ts | 3 ++- .../plugins/any-component-style-budget-checker.ts | 3 +-- .../src/webpack/plugins/builder-watch-plugin.ts | 3 ++- .../webpack/plugins/common-js-usage-warn-plugin.ts | 3 +-- .../webpack/plugins/dedupe-module-resolve-plugin.ts | 3 ++- .../src/webpack/plugins/hmr/hmr-accept.ts | 3 +-- .../src/webpack/plugins/hmr/hmr-loader.ts | 3 +-- .../webpack/plugins/index-html-webpack-plugin.ts | 3 ++- .../build_angular/src/webpack/plugins/index.ts | 3 +-- .../src/webpack/plugins/karma/karma.ts | 3 ++- .../webpack/plugins/optimize-css-webpack-plugin.ts | 3 ++- .../src/webpack/plugins/postcss-cli-resources.ts | 3 ++- .../src/webpack/plugins/remove-hash-plugin.ts | 3 ++- .../src/webpack/plugins/scripts-webpack-plugin.ts | 3 +-- .../src/webpack/plugins/single-test-transform.ts | 3 ++- .../plugins/suppress-entry-chunks-webpack-plugin.ts | 3 +-- .../build_angular/src/webpack/utils/async-chunks.ts | 3 ++- .../src/webpack/utils/async-chunks_spec.ts | 3 ++- .../build_angular/src/webpack/utils/helpers.ts | 3 +-- .../build_angular/src/webpack/utils/stats.ts | 3 ++- .../test/hello-world-app/e2e/app.e2e-spec.ts | 3 ++- .../test/hello-world-app/e2e/app.po.ts | 3 ++- .../test/hello-world-app/karma.conf.js | 3 ++- .../test/hello-world-app/protractor.conf.js | 3 ++- .../hello-world-app/src/app/app.component.spec.ts | 3 ++- .../test/hello-world-app/src/app/app.component.ts | 3 ++- .../test/hello-world-app/src/app/app.module.ts | 3 ++- .../hello-world-app/src/app/app.server.module.ts | 3 ++- .../src/environments/environment.prod.ts | 3 ++- .../hello-world-app/src/environments/environment.ts | 3 ++- .../test/hello-world-app/src/main.server.ts | 3 ++- .../build_angular/test/hello-world-app/src/main.ts | 3 ++- .../test/hello-world-app/src/polyfills.ts | 3 ++- .../build_angular/test/hello-world-app/src/test.ts | 3 ++- .../test/hello-world-app/src/typings.d.ts | 3 ++- .../test/hello-world-lib/projects/lib/karma.conf.js | 3 ++- .../projects/lib/src/lib/lib.component.spec.ts | 3 ++- .../projects/lib/src/lib/lib.component.ts | 3 ++- .../projects/lib/src/lib/lib.module.ts | 3 ++- .../projects/lib/src/lib/lib.service.spec.ts | 3 ++- .../projects/lib/src/lib/lib.service.ts | 3 ++- .../hello-world-lib/projects/lib/src/public-api.ts | 3 ++- .../test/hello-world-lib/projects/lib/src/test.ts | 3 ++- .../build_optimizer/src/_golden-api.ts | 3 ++- .../src/build-optimizer/build-optimizer.ts | 3 ++- .../src/build-optimizer/build-optimizer_spec.ts | 3 ++- .../build_optimizer/src/build-optimizer/cli.ts | 3 ++- .../src/build-optimizer/rollup-plugin.ts | 3 +-- .../src/build-optimizer/webpack-loader.ts | 3 ++- .../src/build-optimizer/webpack-plugin.ts | 3 ++- .../build_optimizer/src/helpers/ast-utils.ts | 3 ++- .../src/helpers/transform-javascript.ts | 3 ++- .../angular_devkit/build_optimizer/src/index.ts | 3 ++- .../src/transforms/prefix-classes.ts | 3 ++- .../src/transforms/prefix-classes_spec.ts | 3 ++- .../src/transforms/prefix-functions.ts | 3 ++- .../src/transforms/prefix-functions_spec.ts | 3 ++- .../build_optimizer/src/transforms/scrub-file.ts | 3 ++- .../src/transforms/scrub-file_spec.ts | 3 ++- .../build_optimizer/src/transforms/wrap-enums.ts | 3 ++- .../src/transforms/wrap-enums_spec.ts | 3 ++- packages/angular_devkit/build_webpack/src/index.ts | 3 ++- packages/angular_devkit/build_webpack/src/utils.ts | 3 +-- .../build_webpack/src/webpack-dev-server/index.ts | 3 ++- .../src/webpack-dev-server/index_spec.ts | 3 ++- .../build_webpack/src/webpack/index.ts | 3 ++- .../build_webpack/src/webpack/index_spec.ts | 3 ++- .../test/angular-app/src/app/app.component.spec.ts | 3 ++- .../test/angular-app/src/app/app.component.ts | 3 ++- .../test/angular-app/src/app/app.module.ts | 3 ++- .../src/environments/environment.prod.ts | 3 ++- .../angular-app/src/environments/environment.ts | 3 ++- .../build_webpack/test/angular-app/src/main.ts | 3 ++- .../build_webpack/test/angular-app/src/polyfills.ts | 3 ++- packages/angular_devkit/core/node/_golden-api.ts | 3 +-- packages/angular_devkit/core/node/cli-logger.ts | 3 ++- .../angular_devkit/core/node/experimental/index.ts | 3 ++- .../core/node/experimental/jobs/index.ts | 3 ++- .../core/node/experimental/jobs/job-registry.ts | 3 ++- .../node/experimental/jobs/job-registry_spec.ts | 3 ++- packages/angular_devkit/core/node/fs.ts | 3 ++- packages/angular_devkit/core/node/host.ts | 3 ++- packages/angular_devkit/core/node/host_spec.ts | 3 ++- packages/angular_devkit/core/node/index.ts | 3 +-- packages/angular_devkit/core/node/testing/index.ts | 3 ++- packages/angular_devkit/core/src/_golden-api.ts | 3 +-- packages/angular_devkit/core/src/analytics/api.ts | 3 ++- .../angular_devkit/core/src/analytics/forwarder.ts | 3 ++- packages/angular_devkit/core/src/analytics/index.ts | 3 ++- .../angular_devkit/core/src/analytics/logging.ts | 3 ++- packages/angular_devkit/core/src/analytics/multi.ts | 3 +-- packages/angular_devkit/core/src/analytics/noop.ts | 3 ++- .../angular_devkit/core/src/exception/exception.ts | 3 +-- packages/angular_devkit/core/src/exception/index.ts | 3 +-- packages/angular_devkit/core/src/experimental.ts | 3 ++- .../core/src/experimental/jobs/api.ts | 3 ++- .../src/experimental/jobs/create-job-handler.ts | 4 ++-- .../core/src/experimental/jobs/dispatcher.ts | 4 ++-- .../core/src/experimental/jobs/dispatcher_spec.ts | 3 ++- .../core/src/experimental/jobs/exception.ts | 3 ++- .../core/src/experimental/jobs/fallback-registry.ts | 3 ++- .../core/src/experimental/jobs/index.ts | 3 ++- .../core/src/experimental/jobs/simple-registry.ts | 3 ++- .../src/experimental/jobs/simple-registry_spec.ts | 3 ++- .../core/src/experimental/jobs/simple-scheduler.ts | 3 ++- .../src/experimental/jobs/simple-scheduler_spec.ts | 3 ++- .../core/src/experimental/jobs/strategy.ts | 3 ++- .../core/src/experimental/jobs/strategy_spec.ts | 3 ++- packages/angular_devkit/core/src/index.ts | 3 ++- packages/angular_devkit/core/src/json/index.ts | 3 ++- packages/angular_devkit/core/src/json/interface.ts | 3 ++- packages/angular_devkit/core/src/json/parser.ts | 3 ++- .../angular_devkit/core/src/json/parser_spec.ts | 3 ++- .../angular_devkit/core/src/json/schema/index.ts | 3 ++- .../core/src/json/schema/interface.ts | 3 ++- .../angular_devkit/core/src/json/schema/pointer.ts | 3 ++- .../core/src/json/schema/prompt_spec.ts | 3 ++- .../angular_devkit/core/src/json/schema/registry.ts | 3 ++- .../core/src/json/schema/registry_spec.ts | 3 ++- .../angular_devkit/core/src/json/schema/schema.ts | 3 ++- .../core/src/json/schema/transforms.ts | 3 ++- .../core/src/json/schema/transforms_spec.ts | 3 ++- .../angular_devkit/core/src/json/schema/utility.ts | 3 ++- .../angular_devkit/core/src/json/schema/visitor.ts | 3 ++- .../core/src/json/schema/visitor_spec.ts | 3 ++- packages/angular_devkit/core/src/logger/indent.ts | 3 ++- .../angular_devkit/core/src/logger/indent_spec.ts | 3 ++- packages/angular_devkit/core/src/logger/index.ts | 3 ++- packages/angular_devkit/core/src/logger/level.ts | 3 ++- packages/angular_devkit/core/src/logger/logger.ts | 3 ++- .../angular_devkit/core/src/logger/logger_spec.ts | 3 ++- .../angular_devkit/core/src/logger/null-logger.ts | 3 ++- .../core/src/logger/null-logger_spec.ts | 3 ++- .../core/src/logger/transform-logger.ts | 3 ++- .../core/src/logger/transform-logger_spec.ts | 3 ++- packages/angular_devkit/core/src/utils/array.ts | 3 +-- packages/angular_devkit/core/src/utils/index.ts | 3 ++- packages/angular_devkit/core/src/utils/lang.ts | 3 ++- packages/angular_devkit/core/src/utils/literals.ts | 3 ++- .../angular_devkit/core/src/utils/literals_spec.ts | 3 ++- packages/angular_devkit/core/src/utils/object.ts | 3 +-- .../angular_devkit/core/src/utils/object_spec.ts | 3 ++- .../core/src/utils/partially-ordered-set.ts | 3 ++- .../core/src/utils/partially-ordered-set_spec.ts | 3 ++- .../angular_devkit/core/src/utils/priority-queue.ts | 3 +-- .../core/src/utils/priority-queue_spec.ts | 3 ++- packages/angular_devkit/core/src/utils/strings.ts | 3 ++- packages/angular_devkit/core/src/utils/template.ts | 3 ++- .../core/src/virtual-fs/host/alias.ts | 3 ++- .../core/src/virtual-fs/host/alias_spec.ts | 3 ++- .../core/src/virtual-fs/host/buffer.ts | 3 ++- .../core/src/virtual-fs/host/create.ts | 3 ++- .../core/src/virtual-fs/host/empty.ts | 3 ++- .../core/src/virtual-fs/host/index.ts | 3 +-- .../core/src/virtual-fs/host/interface.ts | 3 ++- .../core/src/virtual-fs/host/memory.ts | 3 ++- .../core/src/virtual-fs/host/memory_spec.ts | 3 ++- .../core/src/virtual-fs/host/pattern.ts | 3 ++- .../core/src/virtual-fs/host/pattern_spec.ts | 3 ++- .../core/src/virtual-fs/host/record.ts | 3 ++- .../core/src/virtual-fs/host/record_spec.ts | 3 ++- .../core/src/virtual-fs/host/resolver.ts | 3 ++- .../angular_devkit/core/src/virtual-fs/host/safe.ts | 3 ++- .../core/src/virtual-fs/host/scoped.ts | 3 ++- .../angular_devkit/core/src/virtual-fs/host/sync.ts | 3 ++- .../angular_devkit/core/src/virtual-fs/host/test.ts | 3 ++- .../core/src/virtual-fs/host/test_spec.ts | 3 ++- .../angular_devkit/core/src/virtual-fs/index.ts | 3 ++- packages/angular_devkit/core/src/virtual-fs/path.ts | 3 ++- .../angular_devkit/core/src/virtual-fs/path_spec.ts | 3 ++- packages/angular_devkit/core/src/workspace/core.ts | 3 ++- .../angular_devkit/core/src/workspace/core_spec.ts | 3 ++- .../core/src/workspace/definitions.ts | 3 ++- .../core/src/workspace/definitions_spec.ts | 3 ++- packages/angular_devkit/core/src/workspace/host.ts | 3 ++- .../angular_devkit/core/src/workspace/host_spec.ts | 3 ++- packages/angular_devkit/core/src/workspace/index.ts | 3 ++- .../core/src/workspace/json/metadata.ts | 3 ++- .../core/src/workspace/json/reader.ts | 3 ++- .../core/src/workspace/json/reader_spec.ts | 3 ++- .../core/src/workspace/json/utilities.ts | 3 ++- .../core/src/workspace/json/writer.ts | 3 ++- .../core/src/workspace/json/writer_spec.ts | 3 ++- .../angular_devkit/schematics/src/_golden-api.ts | 3 +-- .../angular_devkit/schematics/src/engine/engine.ts | 3 ++- .../angular_devkit/schematics/src/engine/index.ts | 3 ++- .../schematics/src/engine/interface.ts | 3 ++- .../schematics/src/engine/schematic.ts | 3 ++- .../schematics/src/engine/schematic_spec.ts | 3 ++- .../schematics/src/exception/exception.ts | 3 ++- .../schematics/src/formats/format-validator.ts | 3 ++- .../schematics/src/formats/html-selector.ts | 3 ++- .../schematics/src/formats/html-selector_spec.ts | 3 ++- .../angular_devkit/schematics/src/formats/index.ts | 3 +-- .../angular_devkit/schematics/src/formats/path.ts | 3 +-- .../schematics/src/formats/path_spec.ts | 3 +-- packages/angular_devkit/schematics/src/index.ts | 3 ++- .../angular_devkit/schematics/src/rules/base.ts | 3 ++- .../schematics/src/rules/base_spec.ts | 3 ++- .../angular_devkit/schematics/src/rules/call.ts | 3 ++- .../schematics/src/rules/call_spec.ts | 3 ++- .../angular_devkit/schematics/src/rules/move.ts | 3 ++- .../schematics/src/rules/move_spec.ts | 3 ++- .../angular_devkit/schematics/src/rules/random.ts | 3 ++- .../angular_devkit/schematics/src/rules/rename.ts | 3 ++- .../schematics/src/rules/rename_spec.ts | 3 ++- .../schematics/src/rules/schematic.ts | 3 ++- .../angular_devkit/schematics/src/rules/template.ts | 3 ++- .../schematics/src/rules/template_spec.ts | 3 ++- packages/angular_devkit/schematics/src/rules/url.ts | 3 ++- .../angular_devkit/schematics/src/sink/dryrun.ts | 3 ++- .../schematics/src/sink/dryrun_spec.ts | 3 ++- packages/angular_devkit/schematics/src/sink/host.ts | 3 ++- .../angular_devkit/schematics/src/sink/host_spec.ts | 3 ++- packages/angular_devkit/schematics/src/sink/sink.ts | 3 ++- .../angular_devkit/schematics/src/tree/action.ts | 3 ++- .../schematics/src/tree/action_spec.ts | 3 ++- .../schematics/src/tree/common_spec.ts | 3 ++- .../angular_devkit/schematics/src/tree/delegate.ts | 3 ++- .../angular_devkit/schematics/src/tree/empty.ts | 3 ++- .../angular_devkit/schematics/src/tree/entry.ts | 3 ++- .../angular_devkit/schematics/src/tree/host-tree.ts | 3 ++- .../schematics/src/tree/host-tree_spec.ts | 3 ++- .../angular_devkit/schematics/src/tree/interface.ts | 3 ++- packages/angular_devkit/schematics/src/tree/null.ts | 3 ++- .../angular_devkit/schematics/src/tree/recorder.ts | 3 ++- .../schematics/src/tree/recorder_spec.ts | 3 ++- .../angular_devkit/schematics/src/tree/scoped.ts | 3 ++- .../schematics/src/tree/scoped_spec.ts | 3 ++- .../angular_devkit/schematics/src/tree/static.ts | 3 ++- .../schematics/src/utility/linked-list.ts | 3 +-- .../schematics/src/utility/update-buffer.ts | 3 ++- .../schematics/src/utility/update-buffer_spec.ts | 3 ++- .../angular_devkit/schematics/src/workflow/base.ts | 3 ++- .../angular_devkit/schematics/src/workflow/index.ts | 3 ++- .../schematics/src/workflow/interface.ts | 3 ++- packages/angular_devkit/schematics/tasks/index.ts | 3 ++- .../angular_devkit/schematics/tasks/node/index.ts | 3 ++- .../schematics/tasks/package-manager/executor.ts | 3 ++- .../tasks/package-manager/install-task.ts | 3 ++- .../schematics/tasks/package-manager/link-task.ts | 3 ++- .../schematics/tasks/package-manager/options.ts | 3 ++- .../schematics/tasks/repo-init/executor.ts | 3 ++- .../schematics/tasks/repo-init/init-task.ts | 3 ++- .../schematics/tasks/repo-init/options.ts | 3 ++- .../schematics/tasks/run-schematic/executor.ts | 3 ++- .../schematics/tasks/run-schematic/options.ts | 3 ++- .../schematics/tasks/run-schematic/task.ts | 3 ++- .../schematics/tasks/tslint-fix/executor.ts | 3 ++- .../schematics/tasks/tslint-fix/executor_spec.ts | 3 ++- .../schematics/tasks/tslint-fix/options.ts | 3 ++- .../schematics/tasks/tslint-fix/task.ts | 3 ++- .../schematics/tasks/tslint-fix/test/custom-rule.ts | 3 ++- .../tasks/tslint-fix/test/rules/customRuleRule.js | 3 ++- .../schematics/tasks/tslint-fix/test/run-task.ts | 3 ++- packages/angular_devkit/schematics/testing/index.ts | 3 ++- .../schematics/testing/schematic-test-runner.ts | 3 ++- .../angular_devkit/schematics/tools/description.ts | 3 ++- .../angular_devkit/schematics/tools/export-ref.ts | 3 ++- .../schematics/tools/export-ref_spec.ts | 3 ++- .../schematics/tools/fallback-engine-host.ts | 3 ++- .../tools/file-system-engine-host-base.ts | 3 ++- .../schematics/tools/file-system-engine-host.ts | 3 ++- .../tools/file-system-engine-host_spec.ts | 3 ++- .../schematics/tools/file-system-utility.ts | 3 ++- packages/angular_devkit/schematics/tools/index.ts | 3 ++- .../schematics/tools/node-module-engine-host.ts | 3 ++- .../tools/node-module-engine-host_spec.ts | 3 +-- .../tools/node-modules-test-engine-host.ts | 3 ++- .../schematics/tools/schema-option-transform.ts | 3 ++- .../schematics/tools/workflow/node-workflow.ts | 3 ++- .../schematics/tools/workflow/node-workflow_spec.ts | 3 ++- .../angular_devkit/schematics_cli/bin/schematics.ts | 3 +-- .../schematics_cli/bin/schematics_spec.ts | 3 +-- .../angular_devkit/schematics_cli/blank/factory.ts | 3 ++- .../schematics_cli/schematic/factory.ts | 3 ++- packages/ngtools/webpack/src/benchmark.ts | 3 ++- packages/ngtools/webpack/src/index.ts | 3 ++- packages/ngtools/webpack/src/ivy/cache.ts | 3 ++- packages/ngtools/webpack/src/ivy/diagnostics.ts | 3 ++- packages/ngtools/webpack/src/ivy/host.ts | 3 ++- packages/ngtools/webpack/src/ivy/index.ts | 3 ++- packages/ngtools/webpack/src/ivy/loader.ts | 3 ++- packages/ngtools/webpack/src/ivy/paths.ts | 3 ++- packages/ngtools/webpack/src/ivy/plugin.ts | 3 ++- packages/ngtools/webpack/src/ivy/symbol.ts | 3 ++- packages/ngtools/webpack/src/ivy/system.ts | 3 ++- packages/ngtools/webpack/src/ivy/transformation.ts | 3 ++- packages/ngtools/webpack/src/ngcc_processor.ts | 3 +-- packages/ngtools/webpack/src/paths-plugin.ts | 3 ++- packages/ngtools/webpack/src/resource_loader.ts | 3 ++- .../webpack/src/transformers/elide_imports.ts | 3 ++- .../webpack/src/transformers/elide_imports_spec.ts | 3 ++- packages/ngtools/webpack/src/transformers/index.ts | 3 ++- .../ngtools/webpack/src/transformers/interfaces.ts | 3 ++- .../transformers/remove-ivy-jit-support-calls.ts | 3 ++- .../remove-ivy-jit-support-calls_spec.ts | 3 ++- .../webpack/src/transformers/replace_resources.ts | 3 ++- .../src/transformers/replace_resources_spec.ts | 3 ++- .../webpack/src/transformers/spec_helpers.ts | 3 ++- packages/ngtools/webpack/src/webpack-diagnostics.ts | 5 +++-- packages/schematics/angular/app-shell/index.ts | 3 ++- packages/schematics/angular/app-shell/index_spec.ts | 3 ++- packages/schematics/angular/application/index.ts | 3 ++- .../schematics/angular/application/index_spec.ts | 3 ++- packages/schematics/angular/class/index.ts | 13 +++++++------ packages/schematics/angular/class/index_spec.ts | 3 ++- packages/schematics/angular/component/index.ts | 3 ++- packages/schematics/angular/component/index_spec.ts | 3 ++- packages/schematics/angular/directive/index.ts | 13 +++++++------ packages/schematics/angular/directive/index_spec.ts | 3 ++- packages/schematics/angular/e2e/index.ts | 3 ++- packages/schematics/angular/e2e/index_spec.ts | 3 ++- packages/schematics/angular/enum/index.ts | 13 +++++++------ packages/schematics/angular/enum/index_spec.ts | 3 ++- packages/schematics/angular/guard/index.ts | 13 +++++++------ packages/schematics/angular/guard/index_spec.ts | 3 ++- packages/schematics/angular/interceptor/index.ts | 3 ++- .../schematics/angular/interceptor/index_spec.ts | 3 ++- packages/schematics/angular/interface/index.ts | 3 ++- packages/schematics/angular/interface/index_spec.ts | 3 ++- packages/schematics/angular/library/index.ts | 3 ++- packages/schematics/angular/library/index_spec.ts | 3 ++- .../update-10/add-deprecation-rule-tslint.ts | 3 ++- .../update-10/add-deprecation-rule-tslint_spec.ts | 3 ++- .../update-10/remove-es5-browser-support.ts | 3 +-- .../update-10/remove-es5-browser-support_spec.ts | 3 ++- .../update-10/remove-solution-style-tsconfig.ts | 3 ++- .../remove-solution-style-tsconfig_spec.ts | 3 ++- .../update-10/rename-browserslist-config.ts | 3 ++- .../update-10/rename-browserslist-config_spec.ts | 3 ++- .../migrations/update-10/update-angular-config.ts | 3 +-- .../update-10/update-angular-config_spec.ts | 3 ++- .../migrations/update-10/update-dependencies.ts | 3 ++- .../migrations/update-10/update-libraries-tslib.ts | 3 +-- .../update-10/update-libraries-tslib_spec.ts | 3 +-- .../update-module-and-target-compiler-options.ts | 3 ++- ...pdate-module-and-target-compiler-options_spec.ts | 3 ++- .../angular/migrations/update-10/update-tslint.ts | 3 ++- .../migrations/update-10/update-tslint_spec.ts | 3 ++- .../add-declaration-map-compiler-option.ts | 3 +-- .../add-declaration-map-compiler-option_spec.ts | 3 +-- .../update-11/replace-ng-packagr-builder.ts | 3 +-- .../update-11/replace-ng-packagr-builder_spec.ts | 3 +-- .../migrations/update-11/update-angular-config.ts | 3 +-- .../update-11/update-angular-config_spec.ts | 3 ++- .../migrations/update-11/update-dependencies.ts | 3 ++- .../update-12/production-default-config.ts | 3 +-- .../update-12/production-default-config_spec.ts | 3 ++- .../update-12/remove-emit-decorator-metadata.ts | 3 ++- .../remove-emit-decorator-metadata_spec.ts | 3 ++- .../migrations/update-12/update-angular-config.ts | 3 +-- .../update-12/update-angular-config_spec.ts | 3 ++- .../update-12/update-lazy-module-paths.ts | 3 ++- .../update-12/update-lazy-module-paths_spec.ts | 3 ++- .../migrations/update-12/update-web-workers.ts | 3 ++- .../migrations/update-12/update-web-workers_spec.ts | 3 ++- .../angular/migrations/update-12/update-zonejs.ts | 3 ++- .../migrations/update-12/update-zonejs_spec.ts | 3 ++- .../angular/migrations/update-9/add-tslib.ts | 3 ++- .../schematics/angular/migrations/update-9/index.ts | 3 +-- .../angular/migrations/update-9/ivy-libraries.ts | 3 +-- .../migrations/update-9/ivy-libraries_spec.ts | 3 +-- .../angular/migrations/update-9/ngsw-config.ts | 3 ++- .../angular/migrations/update-9/ngsw-config_spec.ts | 3 +-- .../angular/migrations/update-9/remove-tsickle.ts | 3 ++- .../migrations/update-9/remove-tsickle_spec.ts | 3 +-- .../migrations/update-9/schematic-options.ts | 3 ++- .../migrations/update-9/schematic-options_spec.ts | 3 ++- .../migrations/update-9/update-app-tsconfigs.ts | 3 ++- .../update-9/update-app-tsconfigs_spec.ts | 3 +-- .../migrations/update-9/update-dependencies.ts | 3 ++- .../angular/migrations/update-9/update-i18n.ts | 3 ++- .../angular/migrations/update-9/update-i18n_spec.ts | 3 +-- .../migrations/update-9/update-server-main-file.ts | 3 ++- .../update-9/update-server-main-file_spec.ts | 3 +-- .../migrations/update-9/update-workspace-config.ts | 3 ++- .../update-9/update-workspace-config_spec.ts | 3 +-- .../schematics/angular/migrations/update-9/utils.ts | 3 ++- .../angular/migrations/update-9/utils_spec.ts | 3 ++- packages/schematics/angular/module/index.ts | 13 +++++++------ packages/schematics/angular/module/index_spec.ts | 3 ++- packages/schematics/angular/ng-new/index.ts | 3 ++- packages/schematics/angular/ng-new/index_spec.ts | 3 ++- .../angular/no_typescript_runtime_dep_spec.js | 3 +-- packages/schematics/angular/pipe/index.ts | 3 ++- packages/schematics/angular/pipe/index_spec.ts | 3 ++- packages/schematics/angular/resolver/index.ts | 13 +++++++------ packages/schematics/angular/resolver/index_spec.ts | 3 ++- packages/schematics/angular/service-worker/index.ts | 3 ++- .../schematics/angular/service-worker/index_spec.ts | 3 ++- .../schematics/angular/service-worker/schema.d.ts | 3 +-- packages/schematics/angular/service/index.ts | 3 ++- packages/schematics/angular/service/index_spec.ts | 3 ++- packages/schematics/angular/universal/index.ts | 3 ++- packages/schematics/angular/universal/index_spec.ts | 3 ++- packages/schematics/angular/utility/ast-utils.ts | 3 ++- .../schematics/angular/utility/ast-utils_spec.ts | 3 ++- packages/schematics/angular/utility/change.ts | 3 ++- packages/schematics/angular/utility/dependencies.ts | 3 ++- .../schematics/angular/utility/dependencies_spec.ts | 3 ++- packages/schematics/angular/utility/find-module.ts | 3 ++- .../schematics/angular/utility/find-module_spec.ts | 3 ++- packages/schematics/angular/utility/json-file.ts | 3 +-- .../schematics/angular/utility/latest-versions.ts | 3 +-- packages/schematics/angular/utility/lint-fix.ts | 3 ++- packages/schematics/angular/utility/ng-ast-utils.ts | 3 ++- packages/schematics/angular/utility/parse-name.ts | 3 ++- .../schematics/angular/utility/parse-name_spec.ts | 3 ++- packages/schematics/angular/utility/paths.ts | 3 +-- packages/schematics/angular/utility/paths_spec.ts | 3 +-- .../schematics/angular/utility/project-targets.ts | 3 +-- .../angular/utility/test/create-app-module.ts | 3 ++- .../angular/utility/test/get-file-content.ts | 3 ++- packages/schematics/angular/utility/test/index.ts | 3 ++- packages/schematics/angular/utility/validation.ts | 3 ++- .../schematics/angular/utility/workspace-models.ts | 3 ++- packages/schematics/angular/utility/workspace.ts | 3 ++- packages/schematics/angular/web-worker/index.ts | 3 ++- .../schematics/angular/web-worker/index_spec.ts | 3 ++- packages/schematics/angular/workspace/index.ts | 3 ++- packages/schematics/angular/workspace/index_spec.ts | 3 ++- scripts/build-schema.ts | 3 ++- scripts/build.ts | 3 ++- scripts/changelog.ts | 3 ++- scripts/create.ts | 3 ++- scripts/dist-tag.ts | 3 +-- scripts/packages.ts | 3 ++- scripts/publish.ts | 3 ++- scripts/snapshots.ts | 3 ++- scripts/templates.ts | 3 ++- scripts/test.ts | 3 ++- scripts/validate-build-files.ts | 3 ++- scripts/validate-licenses.ts | 3 ++- scripts/validate-user-analytics.ts | 3 ++- scripts/validate.ts | 3 ++- .../json/schema/serializers/0.0.javascript_spec.ts | 3 ++- .../json/schema/serializers/1.0.javascript_spec.ts | 3 ++- tests/angular_devkit/core/node/jobs/add.ts | 3 ++- .../extra-properties/factory.ts | 4 ++-- .../file-system-engine-host/file-tasks/factory.ts | 3 ++- .../tools/file-system-engine-host/null-factory.ts | 3 +-- .../legacy-cli/e2e/tests/basic/ngcc-es2015-only.ts | 3 ++- tests/legacy-cli/e2e/tests/build/bundle-budgets.ts | 3 +-- .../legacy-cli/e2e/tests/build/lazy-load-syntax.ts | 3 ++- tests/legacy-cli/e2e/tests/build/worker.ts | 3 ++- .../e2e/tests/i18n/ivy-localize-basehref.ts | 3 ++- .../e2e/tests/i18n/ivy-localize-hashes.ts | 3 ++- .../e2e/tests/i18n/ivy-localize-locale-data.ts | 3 ++- .../e2e/tests/i18n/ivy-localize-merging.ts | 3 ++- .../e2e/tests/i18n/ivy-localize-sourcelocale.ts | 3 ++- .../update/packages/update-migrations/v1_5.js | 3 ++- tools/ng_cli_schema_generator.js | 5 +++-- tools/quicktype_runner.js | 7 ++++--- tools/rebase-pr.js | 5 ++--- 724 files changed, 1357 insertions(+), 899 deletions(-) diff --git a/bin/architect b/bin/architect index 7885feefe26a..664ffb1a9785 100755 --- a/bin/architect +++ b/bin/architect @@ -1,11 +1,12 @@ #!/usr/bin/env node /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + 'use strict'; diff --git a/bin/benchmark b/bin/benchmark index 4ada663d8bfc..cd97efb60fd5 100755 --- a/bin/benchmark +++ b/bin/benchmark @@ -1,11 +1,12 @@ #!/usr/bin/env node /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + 'use strict'; diff --git a/bin/build-optimizer b/bin/build-optimizer index 6f540387043c..7b784140fbd3 100755 --- a/bin/build-optimizer +++ b/bin/build-optimizer @@ -1,11 +1,12 @@ #!/usr/bin/env node /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + 'use strict'; diff --git a/bin/devkit-admin b/bin/devkit-admin index 707a854a5b37..e84cee4e7b4a 100755 --- a/bin/devkit-admin +++ b/bin/devkit-admin @@ -1,11 +1,12 @@ #!/usr/bin/env node /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + 'use strict'; /** diff --git a/bin/ng b/bin/ng index d43c5512e47b..2835ad006929 100755 --- a/bin/ng +++ b/bin/ng @@ -1,11 +1,12 @@ #!/usr/bin/env node /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + 'use strict'; diff --git a/bin/schematics b/bin/schematics index ea3f5176befa..773dff5b360d 100755 --- a/bin/schematics +++ b/bin/schematics @@ -1,11 +1,12 @@ #!/usr/bin/env node /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + 'use strict'; diff --git a/lib/bootstrap-local.js b/lib/bootstrap-local.js index e491aad25108..c377a4b67152 100644 --- a/lib/bootstrap-local.js +++ b/lib/bootstrap-local.js @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + /* eslint-disable no-console */ 'use strict'; const debug = require('debug'); diff --git a/lib/packages.ts b/lib/packages.ts index 8b5d3ca91304..0cf42a4ba1cd 100644 --- a/lib/packages.ts +++ b/lib/packages.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable-next-line: no-global-tslint-disable // tslint:disable: no-implicit-dependencies import { JsonObject } from '@angular-devkit/core'; diff --git a/lib/registries.ts b/lib/registries.ts index 0bfea087bc2e..01549b0c9178 100644 --- a/lib/registries.ts +++ b/lib/registries.ts @@ -1,10 +1,9 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - /** URL to Wombat NPM registry proxy. */ export const wombat = 'https://wombat-dressing-room.appspot.com'; diff --git a/packages/angular/cli/commands/add-impl.ts b/packages/angular/cli/commands/add-impl.ts index 4f0188cd0415..45f44bdef26a 100644 --- a/packages/angular/cli/commands/add-impl.ts +++ b/packages/angular/cli/commands/add-impl.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { analytics, tags } from '@angular-devkit/core'; import { NodePackageDoesNotSupportSchematics } from '@angular-devkit/schematics/tools'; import { dirname, join } from 'path'; diff --git a/packages/angular/cli/commands/analytics-impl.ts b/packages/angular/cli/commands/analytics-impl.ts index 9174005d7b18..c5703e0680e1 100644 --- a/packages/angular/cli/commands/analytics-impl.ts +++ b/packages/angular/cli/commands/analytics-impl.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { promptGlobalAnalytics, promptProjectAnalytics, diff --git a/packages/angular/cli/commands/build-impl.ts b/packages/angular/cli/commands/build-impl.ts index 0bdd50b57949..b3ff226bb2cd 100644 --- a/packages/angular/cli/commands/build-impl.ts +++ b/packages/angular/cli/commands/build-impl.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { ArchitectCommand, ArchitectCommandOptions } from '../models/architect-command'; import { Arguments } from '../models/interface'; import { Schema as BuildCommandSchema } from './build'; diff --git a/packages/angular/cli/commands/config-impl.ts b/packages/angular/cli/commands/config-impl.ts index 329bc499a6f2..cf5211ce5ba3 100644 --- a/packages/angular/cli/commands/config-impl.ts +++ b/packages/angular/cli/commands/config-impl.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { JsonValue, tags } from '@angular-devkit/core'; import { v4 as uuidV4 } from 'uuid'; import { Command } from '../models/command'; diff --git a/packages/angular/cli/commands/deploy-impl.ts b/packages/angular/cli/commands/deploy-impl.ts index 4572f27d8995..c5c043796fc7 100644 --- a/packages/angular/cli/commands/deploy-impl.ts +++ b/packages/angular/cli/commands/deploy-impl.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { ArchitectCommand } from '../models/architect-command'; import { Arguments } from '../models/interface'; import { Schema as DeployCommandSchema } from './deploy'; diff --git a/packages/angular/cli/commands/doc-impl.ts b/packages/angular/cli/commands/doc-impl.ts index 1c1fc86d1535..2b1aa87f22de 100644 --- a/packages/angular/cli/commands/doc-impl.ts +++ b/packages/angular/cli/commands/doc-impl.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import * as open from 'open'; import { Command } from '../models/command'; import { Arguments } from '../models/interface'; diff --git a/packages/angular/cli/commands/e2e-impl.ts b/packages/angular/cli/commands/e2e-impl.ts index db680ca7dd44..388360ad7095 100644 --- a/packages/angular/cli/commands/e2e-impl.ts +++ b/packages/angular/cli/commands/e2e-impl.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { ArchitectCommand } from '../models/architect-command'; import { Arguments } from '../models/interface'; import { Schema as E2eCommandSchema } from './e2e'; diff --git a/packages/angular/cli/commands/easter-egg-impl.ts b/packages/angular/cli/commands/easter-egg-impl.ts index 8e70d46dc827..3857c38444a5 100644 --- a/packages/angular/cli/commands/easter-egg-impl.ts +++ b/packages/angular/cli/commands/easter-egg-impl.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Command } from '../models/command'; import { colors } from '../utilities/color'; import { Schema as AwesomeCommandSchema } from './easter-egg'; diff --git a/packages/angular/cli/commands/extract-i18n-impl.ts b/packages/angular/cli/commands/extract-i18n-impl.ts index 00a8e2e4ce2d..e559f0cc4af4 100644 --- a/packages/angular/cli/commands/extract-i18n-impl.ts +++ b/packages/angular/cli/commands/extract-i18n-impl.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { ArchitectCommand } from '../models/architect-command'; import { Arguments } from '../models/interface'; import { Schema as ExtractI18nCommandSchema } from './extract-i18n'; diff --git a/packages/angular/cli/commands/generate-impl.ts b/packages/angular/cli/commands/generate-impl.ts index c32ccd7b87ea..40e81d1e5d5c 100644 --- a/packages/angular/cli/commands/generate-impl.ts +++ b/packages/angular/cli/commands/generate-impl.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Arguments, SubCommandDescription } from '../models/interface'; import { SchematicCommand } from '../models/schematic-command'; import { colors } from '../utilities/color'; diff --git a/packages/angular/cli/commands/help-impl.ts b/packages/angular/cli/commands/help-impl.ts index 9c30c5e2f608..c7ccc282493d 100644 --- a/packages/angular/cli/commands/help-impl.ts +++ b/packages/angular/cli/commands/help-impl.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Command } from '../models/command'; import { colors } from '../utilities/color'; import { Schema as HelpCommandSchema } from './help'; diff --git a/packages/angular/cli/commands/lint-impl.ts b/packages/angular/cli/commands/lint-impl.ts index af2df1aaab64..dd28bc1dcdd6 100644 --- a/packages/angular/cli/commands/lint-impl.ts +++ b/packages/angular/cli/commands/lint-impl.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { ArchitectCommand } from '../models/architect-command'; import { Arguments } from '../models/interface'; import { Schema as LintCommandSchema } from './lint'; diff --git a/packages/angular/cli/commands/new-impl.ts b/packages/angular/cli/commands/new-impl.ts index 55a91ea41fcc..075bb20eda30 100644 --- a/packages/angular/cli/commands/new-impl.ts +++ b/packages/angular/cli/commands/new-impl.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Arguments } from '../models/interface'; import { SchematicCommand } from '../models/schematic-command'; import { ensureCompatibleNpm } from '../utilities/package-manager'; diff --git a/packages/angular/cli/commands/run-impl.ts b/packages/angular/cli/commands/run-impl.ts index feefe731fa5b..f302146cc897 100644 --- a/packages/angular/cli/commands/run-impl.ts +++ b/packages/angular/cli/commands/run-impl.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { ArchitectCommand, ArchitectCommandOptions } from '../models/architect-command'; import { Arguments } from '../models/interface'; import { Schema as RunCommandSchema } from './run'; diff --git a/packages/angular/cli/commands/serve-impl.ts b/packages/angular/cli/commands/serve-impl.ts index 04b51eee4e4a..9b1a248c520c 100644 --- a/packages/angular/cli/commands/serve-impl.ts +++ b/packages/angular/cli/commands/serve-impl.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { ArchitectCommand, ArchitectCommandOptions } from '../models/architect-command'; import { Arguments } from '../models/interface'; import { Schema as ServeCommandSchema } from './serve'; diff --git a/packages/angular/cli/commands/test-impl.ts b/packages/angular/cli/commands/test-impl.ts index 28f09df4d7b2..51046d1af238 100644 --- a/packages/angular/cli/commands/test-impl.ts +++ b/packages/angular/cli/commands/test-impl.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { ArchitectCommand, ArchitectCommandOptions } from '../models/architect-command'; import { Arguments } from '../models/interface'; import { Schema as TestCommandSchema } from './test'; diff --git a/packages/angular/cli/commands/update-impl.ts b/packages/angular/cli/commands/update-impl.ts index e3a81aef6cf1..da5b343c9af5 100644 --- a/packages/angular/cli/commands/update-impl.ts +++ b/packages/angular/cli/commands/update-impl.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { UnsuccessfulWorkflowExecution } from '@angular-devkit/schematics'; import { NodeWorkflow } from '@angular-devkit/schematics/tools'; import { execSync } from 'child_process'; diff --git a/packages/angular/cli/commands/version-impl.ts b/packages/angular/cli/commands/version-impl.ts index b15e41f1ed86..cdcb7e971139 100644 --- a/packages/angular/cli/commands/version-impl.ts +++ b/packages/angular/cli/commands/version-impl.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { execSync } from 'child_process'; import * as path from 'path'; import { Command } from '../models/command'; diff --git a/packages/angular/cli/lib/cli/index.ts b/packages/angular/cli/lib/cli/index.ts index 398a4734a572..091c0772e208 100644 --- a/packages/angular/cli/lib/cli/index.ts +++ b/packages/angular/cli/lib/cli/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { createConsoleLogger } from '@angular-devkit/core/node'; import { format } from 'util'; import { runCommand } from '../../models/command-runner'; diff --git a/packages/angular/cli/lib/init.ts b/packages/angular/cli/lib/init.ts index b817d8342145..86c06b3bf2c7 100644 --- a/packages/angular/cli/lib/init.ts +++ b/packages/angular/cli/lib/init.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import 'symbol-observable'; // symbol polyfill must go first // tslint:disable-next-line:ordered-imports import-groups diff --git a/packages/angular/cli/models/analytics-collector.ts b/packages/angular/cli/models/analytics-collector.ts index 2d9d7f204aff..f68745040a5e 100644 --- a/packages/angular/cli/models/analytics-collector.ts +++ b/packages/angular/cli/models/analytics-collector.ts @@ -1,11 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - * */ + import { analytics } from '@angular-devkit/core'; import { execSync } from 'child_process'; import * as debug from 'debug'; diff --git a/packages/angular/cli/models/analytics.ts b/packages/angular/cli/models/analytics.ts index 5883499f5ae2..037ff0599cf9 100644 --- a/packages/angular/cli/models/analytics.ts +++ b/packages/angular/cli/models/analytics.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { json, tags } from '@angular-devkit/core'; import * as debug from 'debug'; import * as inquirer from 'inquirer'; diff --git a/packages/angular/cli/models/architect-command.ts b/packages/angular/cli/models/architect-command.ts index 2277f1d07b61..9b6c78c15375 100644 --- a/packages/angular/cli/models/architect-command.ts +++ b/packages/angular/cli/models/architect-command.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect, Target } from '@angular-devkit/architect'; import { WorkspaceNodeModulesArchitectHost } from '@angular-devkit/architect/node'; import { json, schema, tags } from '@angular-devkit/core'; diff --git a/packages/angular/cli/models/command-runner.ts b/packages/angular/cli/models/command-runner.ts index c5b08db13867..3a7401b4852e 100644 --- a/packages/angular/cli/models/command-runner.ts +++ b/packages/angular/cli/models/command-runner.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { analytics, isJsonObject, diff --git a/packages/angular/cli/models/command.ts b/packages/angular/cli/models/command.ts index cbea60d17478..6b13e3fc31ca 100644 --- a/packages/angular/cli/models/command.ts +++ b/packages/angular/cli/models/command.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { analytics, logging, strings, tags } from '@angular-devkit/core'; import { colors } from '../utilities/color'; import { AngularWorkspace } from '../utilities/config'; diff --git a/packages/angular/cli/models/error.ts b/packages/angular/cli/models/error.ts index 5d9d323ed103..f2f5a4229548 100644 --- a/packages/angular/cli/models/error.ts +++ b/packages/angular/cli/models/error.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - export class NgToolkitError extends Error { constructor(message?: string) { super(); diff --git a/packages/angular/cli/models/interface.ts b/packages/angular/cli/models/interface.ts index e5374e0f5e0d..cb4bde347ce8 100644 --- a/packages/angular/cli/models/interface.ts +++ b/packages/angular/cli/models/interface.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { analytics, json, logging } from '@angular-devkit/core'; import { AngularWorkspace } from '../utilities/config'; diff --git a/packages/angular/cli/models/parser.ts b/packages/angular/cli/models/parser.ts index 54bb8ebad85b..66e81aed78c7 100644 --- a/packages/angular/cli/models/parser.ts +++ b/packages/angular/cli/models/parser.ts @@ -1,11 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - * */ + import { BaseException, logging, strings } from '@angular-devkit/core'; import { Arguments, Option, OptionType, Value } from './interface'; diff --git a/packages/angular/cli/models/parser_spec.ts b/packages/angular/cli/models/parser_spec.ts index cd6b3c09e801..e57b852387a4 100644 --- a/packages/angular/cli/models/parser_spec.ts +++ b/packages/angular/cli/models/parser_spec.ts @@ -1,11 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - * */ + // tslint:disable:no-global-tslint-disable no-big-function import { logging } from '@angular-devkit/core'; import { Arguments, Option, OptionType } from './interface'; diff --git a/packages/angular/cli/models/schematic-command.ts b/packages/angular/cli/models/schematic-command.ts index fa73b260487c..5f134236a031 100644 --- a/packages/angular/cli/models/schematic-command.ts +++ b/packages/angular/cli/models/schematic-command.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { logging, normalize, diff --git a/packages/angular/cli/models/schematic-engine-host.ts b/packages/angular/cli/models/schematic-engine-host.ts index 478973f78a54..05e3c3da25f3 100644 --- a/packages/angular/cli/models/schematic-engine-host.ts +++ b/packages/angular/cli/models/schematic-engine-host.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { RuleFactory, SchematicsException, Tree } from '@angular-devkit/schematics'; import { NodeModulesEngineHost } from '@angular-devkit/schematics/tools'; import { readFileSync } from 'fs'; diff --git a/packages/angular/cli/models/version.ts b/packages/angular/cli/models/version.ts index 1c8003543d21..d84c91c1a004 100644 --- a/packages/angular/cli/models/version.ts +++ b/packages/angular/cli/models/version.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - // Same structure as used in framework packages export class Version { public readonly major: string; diff --git a/packages/angular/cli/src/commands/update/schematic/index.ts b/packages/angular/cli/src/commands/update/schematic/index.ts index 8724621545f4..91d18fa42cfc 100644 --- a/packages/angular/cli/src/commands/update/schematic/index.ts +++ b/packages/angular/cli/src/commands/update/schematic/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { logging, tags } from '@angular-devkit/core'; import { Rule, diff --git a/packages/angular/cli/src/commands/update/schematic/index_spec.ts b/packages/angular/cli/src/commands/update/schematic/index_spec.ts index dfa1dd51695d..bd0c42ebf58a 100644 --- a/packages/angular/cli/src/commands/update/schematic/index_spec.ts +++ b/packages/angular/cli/src/commands/update/schematic/index_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-big-function import { normalize, virtualFs } from '@angular-devkit/core'; diff --git a/packages/angular/cli/src/commands/update/schematic/npm-package-json.ts b/packages/angular/cli/src/commands/update/schematic/npm-package-json.ts index 675c45c0fffb..42bac6aeca53 100644 --- a/packages/angular/cli/src/commands/update/schematic/npm-package-json.ts +++ b/packages/angular/cli/src/commands/update/schematic/npm-package-json.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { JsonSchemaForNpmPackageJsonFiles } from './package-json'; export interface NpmRepositoryPackageJson { diff --git a/packages/angular/cli/src/commands/update/schematic/npm.ts b/packages/angular/cli/src/commands/update/schematic/npm.ts index d7e48ab7737d..429a6ffd1745 100644 --- a/packages/angular/cli/src/commands/update/schematic/npm.ts +++ b/packages/angular/cli/src/commands/update/schematic/npm.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { logging } from '@angular-devkit/core'; import { existsSync, readFileSync } from 'fs'; import { homedir } from 'os'; diff --git a/packages/angular/cli/src/commands/update/schematic/package-json.ts b/packages/angular/cli/src/commands/update/schematic/package-json.ts index b4162f6fd232..3c77bdf98edd 100644 --- a/packages/angular/cli/src/commands/update/schematic/package-json.ts +++ b/packages/angular/cli/src/commands/update/schematic/package-json.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/packages/angular/cli/utilities/color.ts b/packages/angular/cli/utilities/color.ts index ad77d8230fc7..8684e19e15a9 100644 --- a/packages/angular/cli/utilities/color.ts +++ b/packages/angular/cli/utilities/color.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as ansiColors from 'ansi-colors'; import { WriteStream } from 'tty'; diff --git a/packages/angular/cli/utilities/config.ts b/packages/angular/cli/utilities/config.ts index 2042e9d903bf..dce6500f496f 100644 --- a/packages/angular/cli/utilities/config.ts +++ b/packages/angular/cli/utilities/config.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { json, workspaces } from '@angular-devkit/core'; import { existsSync, readFileSync, statSync, writeFileSync } from 'fs'; import * as os from 'os'; diff --git a/packages/angular/cli/utilities/find-up.ts b/packages/angular/cli/utilities/find-up.ts index 81891a96e565..3326acbdcb2a 100644 --- a/packages/angular/cli/utilities/find-up.ts +++ b/packages/angular/cli/utilities/find-up.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { existsSync } from 'fs'; import * as path from 'path'; diff --git a/packages/angular/cli/utilities/install-package.ts b/packages/angular/cli/utilities/install-package.ts index ac79d26ceb73..4f1bdfd18158 100644 --- a/packages/angular/cli/utilities/install-package.ts +++ b/packages/angular/cli/utilities/install-package.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { logging } from '@angular-devkit/core'; import { spawnSync } from 'child_process'; import { existsSync, mkdtempSync, readFileSync, realpathSync, writeFileSync } from 'fs'; diff --git a/packages/angular/cli/utilities/json-file.ts b/packages/angular/cli/utilities/json-file.ts index d076e73c542f..f27781c15525 100644 --- a/packages/angular/cli/utilities/json-file.ts +++ b/packages/angular/cli/utilities/json-file.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { JsonValue } from '@angular-devkit/core'; import { readFileSync, writeFileSync } from 'fs'; import { diff --git a/packages/angular/cli/utilities/json-schema.ts b/packages/angular/cli/utilities/json-schema.ts index e2974080318a..739debc1d01a 100644 --- a/packages/angular/cli/utilities/json-schema.ts +++ b/packages/angular/cli/utilities/json-schema.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BaseException, json } from '@angular-devkit/core'; import { ExportStringRef } from '@angular-devkit/schematics/tools'; import { readFileSync } from 'fs'; diff --git a/packages/angular/cli/utilities/json-schema_spec.ts b/packages/angular/cli/utilities/json-schema_spec.ts index 09822cef7730..65ad06a72bb4 100644 --- a/packages/angular/cli/utilities/json-schema_spec.ts +++ b/packages/angular/cli/utilities/json-schema_spec.ts @@ -1,11 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - * */ + import { schema } from '@angular-devkit/core'; import { readFileSync } from 'fs'; import { join } from 'path'; diff --git a/packages/angular/cli/utilities/log-file.ts b/packages/angular/cli/utilities/log-file.ts index 4e5d33bb4571..385c4e8b55f5 100644 --- a/packages/angular/cli/utilities/log-file.ts +++ b/packages/angular/cli/utilities/log-file.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { appendFileSync, mkdtempSync, realpathSync } from 'fs'; import { tmpdir } from 'os'; import { normalize } from 'path'; diff --git a/packages/angular/cli/utilities/package-manager.ts b/packages/angular/cli/utilities/package-manager.ts index 911e445dc04a..c56b7dc1c517 100644 --- a/packages/angular/cli/utilities/package-manager.ts +++ b/packages/angular/cli/utilities/package-manager.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { execSync } from 'child_process'; import { existsSync } from 'fs'; import { join } from 'path'; diff --git a/packages/angular/cli/utilities/package-metadata.ts b/packages/angular/cli/utilities/package-metadata.ts index 2a528ca06b89..84c5142a8b1e 100644 --- a/packages/angular/cli/utilities/package-metadata.ts +++ b/packages/angular/cli/utilities/package-metadata.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { logging } from '@angular-devkit/core'; import { existsSync, readFileSync } from 'fs'; import { homedir } from 'os'; diff --git a/packages/angular/cli/utilities/package-tree.ts b/packages/angular/cli/utilities/package-tree.ts index d3e617fe5f69..06413799648f 100644 --- a/packages/angular/cli/utilities/package-tree.ts +++ b/packages/angular/cli/utilities/package-tree.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import * as fs from 'fs'; import { dirname, join } from 'path'; import * as resolve from 'resolve'; diff --git a/packages/angular/cli/utilities/project.ts b/packages/angular/cli/utilities/project.ts index cd133cd0323a..db119818e723 100644 --- a/packages/angular/cli/utilities/project.ts +++ b/packages/angular/cli/utilities/project.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { normalize } from '@angular-devkit/core'; import * as fs from 'fs'; import * as os from 'os'; diff --git a/packages/angular/cli/utilities/prompt.ts b/packages/angular/cli/utilities/prompt.ts index fcbd0c2ea572..97be8988662a 100644 --- a/packages/angular/cli/utilities/prompt.ts +++ b/packages/angular/cli/utilities/prompt.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as inquirer from 'inquirer'; import { isTTY } from './tty'; diff --git a/packages/angular/cli/utilities/spinner.ts b/packages/angular/cli/utilities/spinner.ts index f7b8d8550662..e7e472bea72c 100644 --- a/packages/angular/cli/utilities/spinner.ts +++ b/packages/angular/cli/utilities/spinner.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import * as ora from 'ora'; import { colors } from './color'; diff --git a/packages/angular/cli/utilities/tty.ts b/packages/angular/cli/utilities/tty.ts index dd5931e26fb6..58ac0a405514 100644 --- a/packages/angular/cli/utilities/tty.ts +++ b/packages/angular/cli/utilities/tty.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - function _isTruthy(value: undefined | string): boolean { // Returns true if value is a string that is anything but 0 or false. return value !== undefined && value !== '0' && value.toUpperCase() !== 'FALSE'; diff --git a/packages/angular/pwa/pwa/index.ts b/packages/angular/pwa/pwa/index.ts index e6cabae37856..108df1f90854 100644 --- a/packages/angular/pwa/pwa/index.ts +++ b/packages/angular/pwa/pwa/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Rule, SchematicsException, diff --git a/packages/angular/pwa/pwa/index_spec.ts b/packages/angular/pwa/pwa/index_spec.ts index ea8dd9f5e461..04ef325a6183 100644 --- a/packages/angular/pwa/pwa/index_spec.ts +++ b/packages/angular/pwa/pwa/index_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import * as path from 'path'; import { Schema as PwaOptions } from './schema'; diff --git a/packages/angular_devkit/architect/builders/all-of.ts b/packages/angular_devkit/architect/builders/all-of.ts index 0b9d958b1f7c..a7194bc5ca66 100644 --- a/packages/angular_devkit/architect/builders/all-of.ts +++ b/packages/angular_devkit/architect/builders/all-of.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { json } from '@angular-devkit/core'; import { EMPTY, from, of } from 'rxjs'; import { map, mergeMap } from 'rxjs/operators'; diff --git a/packages/angular_devkit/architect/builders/concat.ts b/packages/angular_devkit/architect/builders/concat.ts index 816cb2028091..0bac01ba220e 100644 --- a/packages/angular_devkit/architect/builders/concat.ts +++ b/packages/angular_devkit/architect/builders/concat.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { json } from '@angular-devkit/core'; import { from, of } from 'rxjs'; import { concatMap, first, last, map, switchMap } from 'rxjs/operators'; diff --git a/packages/angular_devkit/architect/builders/false.ts b/packages/angular_devkit/architect/builders/false.ts index 3ae22b054e59..12f8c9757813 100644 --- a/packages/angular_devkit/architect/builders/false.ts +++ b/packages/angular_devkit/architect/builders/false.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { createBuilder } from '../src'; export default createBuilder(() => ({ diff --git a/packages/angular_devkit/architect/builders/true.ts b/packages/angular_devkit/architect/builders/true.ts index ea617c33fd2b..e325373b269b 100644 --- a/packages/angular_devkit/architect/builders/true.ts +++ b/packages/angular_devkit/architect/builders/true.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { createBuilder } from '../src'; export default createBuilder(() => ({ success: true })); diff --git a/packages/angular_devkit/architect/node/index.ts b/packages/angular_devkit/architect/node/index.ts index 721047f44093..81709330752e 100644 --- a/packages/angular_devkit/architect/node/index.ts +++ b/packages/angular_devkit/architect/node/index.ts @@ -1,8 +1,9 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export * from './node-modules-architect-host'; diff --git a/packages/angular_devkit/architect/node/node-modules-architect-host.ts b/packages/angular_devkit/architect/node/node-modules-architect-host.ts index b41059280b0d..8161825ebb6b 100644 --- a/packages/angular_devkit/architect/node/node-modules-architect-host.ts +++ b/packages/angular_devkit/architect/node/node-modules-architect-host.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { json, workspaces } from '@angular-devkit/core'; import * as path from 'path'; import { deserialize, serialize } from 'v8'; diff --git a/packages/angular_devkit/architect/src/api.ts b/packages/angular_devkit/architect/src/api.ts index 70a027433289..10141b433197 100644 --- a/packages/angular_devkit/architect/src/api.ts +++ b/packages/angular_devkit/architect/src/api.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { analytics, experimental, json, logging } from '@angular-devkit/core'; import { Observable, SubscribableOrPromise, Subscriber, from } from 'rxjs'; import { switchMap } from 'rxjs/operators'; diff --git a/packages/angular_devkit/architect/src/api_spec.ts b/packages/angular_devkit/architect/src/api_spec.ts index 73bc6288a274..932c135b1491 100644 --- a/packages/angular_devkit/architect/src/api_spec.ts +++ b/packages/angular_devkit/architect/src/api_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Target, targetFromTargetString, targetStringFromTarget } from './api'; describe('Architect API', () => { diff --git a/packages/angular_devkit/architect/src/architect.ts b/packages/angular_devkit/architect/src/architect.ts index 7e8c18fd0d59..55ca17a6a153 100644 --- a/packages/angular_devkit/architect/src/architect.ts +++ b/packages/angular_devkit/architect/src/architect.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { analytics, experimental, json, logging } from '@angular-devkit/core'; import { Observable, from, merge, of, onErrorResumeNext } from 'rxjs'; import { diff --git a/packages/angular_devkit/architect/src/create-builder.ts b/packages/angular_devkit/architect/src/create-builder.ts index c4614ba219d6..4c8a0bfc3957 100644 --- a/packages/angular_devkit/architect/src/create-builder.ts +++ b/packages/angular_devkit/architect/src/create-builder.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { analytics, experimental, json, logging } from '@angular-devkit/core'; import { Observable, Subscription, from, isObservable, of, throwError } from 'rxjs'; import { tap } from 'rxjs/operators'; diff --git a/packages/angular_devkit/architect/src/index.ts b/packages/angular_devkit/architect/src/index.ts index a21d4ff324b2..210a7b794a28 100644 --- a/packages/angular_devkit/architect/src/index.ts +++ b/packages/angular_devkit/architect/src/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export * from './api'; export { Architect, ScheduleOptions } from './architect'; export { createBuilder } from './create-builder'; diff --git a/packages/angular_devkit/architect/src/index_spec.ts b/packages/angular_devkit/architect/src/index_spec.ts index 7e4f2bd8cbe9..1745ea967a64 100644 --- a/packages/angular_devkit/architect/src/index_spec.ts +++ b/packages/angular_devkit/architect/src/index_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { json, schema } from '@angular-devkit/core'; import { timer } from 'rxjs'; import { map, take, tap, toArray } from 'rxjs/operators'; diff --git a/packages/angular_devkit/architect/src/internal.ts b/packages/angular_devkit/architect/src/internal.ts index deaf25047160..f896361e6144 100644 --- a/packages/angular_devkit/architect/src/internal.ts +++ b/packages/angular_devkit/architect/src/internal.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { experimental, json } from '@angular-devkit/core'; import { BuilderInfo, BuilderInput, BuilderOutput, Target } from './api'; diff --git a/packages/angular_devkit/architect/src/schedule-by-name.ts b/packages/angular_devkit/architect/src/schedule-by-name.ts index 40df0258bb10..8b2ceaec4e06 100644 --- a/packages/angular_devkit/architect/src/schedule-by-name.ts +++ b/packages/angular_devkit/architect/src/schedule-by-name.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { analytics, experimental, json, logging } from '@angular-devkit/core'; import { EMPTY, Subscription } from 'rxjs'; import { catchError, first, ignoreElements, map, shareReplay } from 'rxjs/operators'; diff --git a/packages/angular_devkit/architect/testing/index.ts b/packages/angular_devkit/architect/testing/index.ts index 7fa6e21ba74d..e63960f39db2 100644 --- a/packages/angular_devkit/architect/testing/index.ts +++ b/packages/angular_devkit/architect/testing/index.ts @@ -1,9 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export * from './testing-architect-host'; export * from './test-project-host'; diff --git a/packages/angular_devkit/architect/testing/test-project-host.ts b/packages/angular_devkit/architect/testing/test-project-host.ts index f8766c3a8260..3362c1e3f086 100644 --- a/packages/angular_devkit/architect/testing/test-project-host.ts +++ b/packages/angular_devkit/architect/testing/test-project-host.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { Path, PathFragment, diff --git a/packages/angular_devkit/architect/testing/testing-architect-host.ts b/packages/angular_devkit/architect/testing/testing-architect-host.ts index c7d901f3906b..fac32a6cae9d 100644 --- a/packages/angular_devkit/architect/testing/testing-architect-host.ts +++ b/packages/angular_devkit/architect/testing/testing-architect-host.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { json } from '@angular-devkit/core'; import { BuilderInfo, Target, targetStringFromTarget } from '../src'; import { ArchitectHost, Builder } from '../src/internal'; diff --git a/packages/angular_devkit/architect_cli/bin/architect.ts b/packages/angular_devkit/architect_cli/bin/architect.ts index cbc3983702dc..5ad367a98fc5 100644 --- a/packages/angular_devkit/architect_cli/bin/architect.ts +++ b/packages/angular_devkit/architect_cli/bin/architect.ts @@ -1,11 +1,12 @@ #!/usr/bin/env node /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect, BuilderInfo, BuilderProgressState, Target } from '@angular-devkit/architect'; import { WorkspaceNodeModulesArchitectHost } from '@angular-devkit/architect/node'; import { logging, schema, tags, workspaces } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/architect_cli/src/progress.ts b/packages/angular_devkit/architect_cli/src/progress.ts index f326b3571731..d2a053a71b29 100644 --- a/packages/angular_devkit/architect_cli/src/progress.ts +++ b/packages/angular_devkit/architect_cli/src/progress.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as ProgressBar from 'progress'; import * as readline from 'readline'; diff --git a/packages/angular_devkit/benchmark/src/command.ts b/packages/angular_devkit/benchmark/src/command.ts index 03003a0f11b1..ce70c90fa70f 100644 --- a/packages/angular_devkit/benchmark/src/command.ts +++ b/packages/angular_devkit/benchmark/src/command.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - export class Command { constructor( public cmd: string, diff --git a/packages/angular_devkit/benchmark/src/default-reporter.ts b/packages/angular_devkit/benchmark/src/default-reporter.ts index 9224cbe8c057..6bcab82c0783 100644 --- a/packages/angular_devkit/benchmark/src/default-reporter.ts +++ b/packages/angular_devkit/benchmark/src/default-reporter.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { logging, tags } from '@angular-devkit/core'; import { AggregatedMetric, BenchmarkReporter, Metric } from './interfaces'; diff --git a/packages/angular_devkit/benchmark/src/default-stats-capture.ts b/packages/angular_devkit/benchmark/src/default-stats-capture.ts index 8a733ca3d194..a0b6903dfa38 100644 --- a/packages/angular_devkit/benchmark/src/default-stats-capture.ts +++ b/packages/angular_devkit/benchmark/src/default-stats-capture.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { Observable } from 'rxjs'; import { map, reduce } from 'rxjs/operators'; import { AggregatedProcessStats, Capture, MetricGroup } from './interfaces'; diff --git a/packages/angular_devkit/benchmark/src/default-stats-capture_spec.ts b/packages/angular_devkit/benchmark/src/default-stats-capture_spec.ts index 5c66a3c5636b..6adcb70e4d8e 100644 --- a/packages/angular_devkit/benchmark/src/default-stats-capture_spec.ts +++ b/packages/angular_devkit/benchmark/src/default-stats-capture_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Observable } from 'rxjs'; import { toArray } from 'rxjs/operators'; import { defaultStatsCapture } from './default-stats-capture'; diff --git a/packages/angular_devkit/benchmark/src/index.ts b/packages/angular_devkit/benchmark/src/index.ts index ead611a2058c..fbd6fbf3ac7f 100644 --- a/packages/angular_devkit/benchmark/src/index.ts +++ b/packages/angular_devkit/benchmark/src/index.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - export * from './interfaces'; export * from './command'; export * from './default-reporter'; diff --git a/packages/angular_devkit/benchmark/src/interfaces.ts b/packages/angular_devkit/benchmark/src/interfaces.ts index 99195ccf4284..b5a93d88fe9d 100644 --- a/packages/angular_devkit/benchmark/src/interfaces.ts +++ b/packages/angular_devkit/benchmark/src/interfaces.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Observable } from 'rxjs'; import { Command } from './command'; diff --git a/packages/angular_devkit/benchmark/src/main.ts b/packages/angular_devkit/benchmark/src/main.ts index 96396c9bc544..e536e681be76 100644 --- a/packages/angular_devkit/benchmark/src/main.ts +++ b/packages/angular_devkit/benchmark/src/main.ts @@ -1,12 +1,11 @@ #!/usr/bin/env node /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { logging, tags } from '@angular-devkit/core'; import { ProcessOutput } from '@angular-devkit/core/node'; import * as ansiColors from 'ansi-colors'; diff --git a/packages/angular_devkit/benchmark/src/main_spec.ts b/packages/angular_devkit/benchmark/src/main_spec.ts index 61d69802f61a..e7fc46efe2f3 100644 --- a/packages/angular_devkit/benchmark/src/main_spec.ts +++ b/packages/angular_devkit/benchmark/src/main_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { existsSync, readFileSync, unlinkSync, writeFileSync } from 'fs'; import { basename, dirname, join } from 'path'; import { main } from './main'; diff --git a/packages/angular_devkit/benchmark/src/monitored-process.ts b/packages/angular_devkit/benchmark/src/monitored-process.ts index a43f52dd5ea9..97b9373a2d3a 100644 --- a/packages/angular_devkit/benchmark/src/monitored-process.ts +++ b/packages/angular_devkit/benchmark/src/monitored-process.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { SpawnOptions, spawn } from 'child_process'; import * as pidusage from 'pidusage'; import { Observable, Subject, from, timer } from 'rxjs'; diff --git a/packages/angular_devkit/benchmark/src/monitored-process_spec.ts b/packages/angular_devkit/benchmark/src/monitored-process_spec.ts index 12757d6e8dac..963d4a1384e3 100644 --- a/packages/angular_devkit/benchmark/src/monitored-process_spec.ts +++ b/packages/angular_devkit/benchmark/src/monitored-process_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { dirname } from 'path'; import { toArray } from 'rxjs/operators'; import { Command } from './command'; diff --git a/packages/angular_devkit/benchmark/src/run-benchmark-watch.ts b/packages/angular_devkit/benchmark/src/run-benchmark-watch.ts index 7bd6754bea84..b2aaac38f6b7 100644 --- a/packages/angular_devkit/benchmark/src/run-benchmark-watch.ts +++ b/packages/angular_devkit/benchmark/src/run-benchmark-watch.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BaseException, logging } from '@angular-devkit/core'; import { spawnSync } from 'child_process'; import { Observable, combineLatest, forkJoin, of, throwError } from 'rxjs'; diff --git a/packages/angular_devkit/benchmark/src/run-benchmark.ts b/packages/angular_devkit/benchmark/src/run-benchmark.ts index bd551090dbd0..8dacc707bee8 100644 --- a/packages/angular_devkit/benchmark/src/run-benchmark.ts +++ b/packages/angular_devkit/benchmark/src/run-benchmark.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BaseException, logging } from '@angular-devkit/core'; import { Observable, forkJoin, of, throwError } from 'rxjs'; import { concatMap, map, retryWhen, take, tap, throwIfEmpty } from 'rxjs/operators'; diff --git a/packages/angular_devkit/benchmark/src/utils.ts b/packages/angular_devkit/benchmark/src/utils.ts index ea8fc36205ee..04f85ddc7cfd 100644 --- a/packages/angular_devkit/benchmark/src/utils.ts +++ b/packages/angular_devkit/benchmark/src/utils.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { AggregatedMetric, Metric, MetricGroup } from './interfaces'; // Prefers to keep v1 when both are equal. diff --git a/packages/angular_devkit/build_angular/plugins/karma.ts b/packages/angular_devkit/build_angular/plugins/karma.ts index 0ba9afada7de..f34218e4d89d 100644 --- a/packages/angular_devkit/build_angular/plugins/karma.ts +++ b/packages/angular_devkit/build_angular/plugins/karma.ts @@ -1,9 +1,8 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - module.exports = require('../src/webpack/plugins/karma/karma'); diff --git a/packages/angular_devkit/build_angular/src/app-shell/app-shell_spec.ts b/packages/angular_devkit/build_angular/src/app-shell/app-shell_spec.ts index 0028a0c25318..0715188bc744 100644 --- a/packages/angular_devkit/build_angular/src/app-shell/app-shell_spec.ts +++ b/packages/angular_devkit/build_angular/src/app-shell/app-shell_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-big-function import { Architect } from '@angular-devkit/architect'; import { getSystemPath, join, normalize, virtualFs } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/build_angular/src/app-shell/index.ts b/packages/angular_devkit/build_angular/src/app-shell/index.ts index 408e3018d22e..c6af56f243a4 100644 --- a/packages/angular_devkit/build_angular/src/app-shell/index.ts +++ b/packages/angular_devkit/build_angular/src/app-shell/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BuilderContext, BuilderOutput, diff --git a/packages/angular_devkit/build_angular/src/babel-bazel.d.ts b/packages/angular_devkit/build_angular/src/babel-bazel.d.ts index 9a5d06cfa771..1eeaf8e58dc6 100644 --- a/packages/angular_devkit/build_angular/src/babel-bazel.d.ts +++ b/packages/angular_devkit/build_angular/src/babel-bazel.d.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - // Workaround for https://github.com/bazelbuild/rules_nodejs/issues/1033 // Alternative approach instead of https://github.com/angular/angular/pull/33226 declare module '@babel/core' { diff --git a/packages/angular_devkit/build_angular/src/babel/babel-loader.d.ts b/packages/angular_devkit/build_angular/src/babel/babel-loader.d.ts index 5a408783788d..0c0756d9e54a 100644 --- a/packages/angular_devkit/build_angular/src/babel/babel-loader.d.ts +++ b/packages/angular_devkit/build_angular/src/babel/babel-loader.d.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + declare module 'babel-loader' { type BabelLoaderCustomizer = ( babel: typeof import('@babel/core'), diff --git a/packages/angular_devkit/build_angular/src/babel/presets/application.ts b/packages/angular_devkit/build_angular/src/babel/presets/application.ts index a1cf286cda8b..8efc657b998d 100644 --- a/packages/angular_devkit/build_angular/src/babel/presets/application.ts +++ b/packages/angular_devkit/build_angular/src/babel/presets/application.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as fs from 'fs'; import * as path from 'path'; diff --git a/packages/angular_devkit/build_angular/src/babel/webpack-loader.ts b/packages/angular_devkit/build_angular/src/babel/webpack-loader.ts index c89472af597f..56d226bb3265 100644 --- a/packages/angular_devkit/build_angular/src/babel/webpack-loader.ts +++ b/packages/angular_devkit/build_angular/src/babel/webpack-loader.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { needsLinking } from '@angular/compiler-cli/linker'; import { custom } from 'babel-loader'; import { ScriptTarget } from 'typescript'; diff --git a/packages/angular_devkit/build_angular/src/browser/index.ts b/packages/angular_devkit/build_angular/src/browser/index.ts index e3ab7b5865c9..918af844ce23 100644 --- a/packages/angular_devkit/build_angular/src/browser/index.ts +++ b/packages/angular_devkit/build_angular/src/browser/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BuilderContext, BuilderOutput, createBuilder } from '@angular-devkit/architect'; import { EmittedFiles, WebpackLoggingCallback, runWebpack } from '@angular-devkit/build-webpack'; import { getSystemPath, json, logging, normalize, resolve, tags } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/allow-js_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/allow-js_spec.ts index 683d08993c86..0b0919841147 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/allow-js_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/allow-js_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect } from '@angular-devkit/architect'; import { BrowserBuilderOutput } from '@angular-devkit/build-angular'; import { join, normalize, relative, virtualFs } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/aot_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/aot_spec.ts index 39f955a82507..ae969fd33653 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/aot_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/aot_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { Architect } from '@angular-devkit/architect'; import { BrowserBuilderOutput } from '@angular-devkit/build-angular'; import { join, logging, normalize, virtualFs } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/base-href_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/base-href_spec.ts index 5f1db812ab0d..f422fea6bc8f 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/base-href_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/base-href_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { Architect } from '@angular-devkit/architect'; import { BrowserBuilderOutput } from '@angular-devkit/build-angular'; import { join, normalize, tags, virtualFs } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/browser-support_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/browser-support_spec.ts index f1b7c8cf72fb..beeacd8e5738 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/browser-support_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/browser-support_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect } from '@angular-devkit/architect'; import { logging } from '@angular-devkit/core'; import { createArchitect, host } from '../../test-utils'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/build-optimizer_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/build-optimizer_spec.ts index e5c88b01f68e..bb767dc46fdf 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/build-optimizer_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/build-optimizer_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect } from '@angular-devkit/architect'; import { BrowserBuilderOutput } from '@angular-devkit/build-angular'; import { join, normalize } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/bundle-budgets_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/bundle-budgets_spec.ts index e8fbf1434282..6b865f9d38db 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/bundle-budgets_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/bundle-budgets_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect } from '@angular-devkit/architect'; import { logging } from '@angular-devkit/core'; import { createArchitect, host } from '../../test-utils'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/cross-origin_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/cross-origin_spec.ts index 65f4684caf48..da77be6a997c 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/cross-origin_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/cross-origin_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { Architect } from '@angular-devkit/architect'; import { BrowserBuilderOutput, CrossOrigin } from '@angular-devkit/build-angular'; import { join, normalize, virtualFs } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/deploy-url_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/deploy-url_spec.ts index 550dd8d3d8e1..cd4764eb2d33 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/deploy-url_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/deploy-url_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect } from '@angular-devkit/architect'; import { BrowserBuilderOutput } from '@angular-devkit/build-angular'; import { join, normalize, virtualFs } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/differential_loading_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/differential_loading_spec.ts index 4908d4105b6c..eebf70d3dfa4 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/differential_loading_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/differential_loading_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { Architect } from '@angular-devkit/architect'; import { PathFragment } from '@angular-devkit/core'; import { browserBuild, createArchitect, host } from '../../test-utils'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/errors_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/errors_spec.ts index 11d8306ea0c0..e84a1e7dd548 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/errors_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/errors_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { Architect } from '@angular-devkit/architect'; import { logging } from '@angular-devkit/core'; import { createArchitect, host } from '../../test-utils'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/font-optimization_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/font-optimization_spec.ts index 8075059db024..25007f98efaf 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/font-optimization_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/font-optimization_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect } from '@angular-devkit/architect'; import { browserBuild, createArchitect, host } from '../../test-utils'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/index_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/index_spec.ts index f74d864b4ab2..a075b979ed92 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/index_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/index_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect } from '@angular-devkit/architect'; import { BrowserBuilderOutput } from '@angular-devkit/build-angular'; import { join, normalize, tags, virtualFs, workspaces } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/inline-critical-css-optimization_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/inline-critical-css-optimization_spec.ts index a7d9d114559c..ba2d915d20a7 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/inline-critical-css-optimization_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/inline-critical-css-optimization_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect } from '@angular-devkit/architect'; import { browserBuild, createArchitect, host } from '../../test-utils'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/lazy-module_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/lazy-module_spec.ts index 9a30f156e516..1b3853681f01 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/lazy-module_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/lazy-module_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { Architect } from '@angular-devkit/architect'; import { TestProjectHost } from '@angular-devkit/architect/testing'; import { logging } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/no-entry-module_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/no-entry-module_spec.ts index 50120ecdbd1a..5b2a3273e2d0 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/no-entry-module_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/no-entry-module_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { Architect } from '@angular-devkit/architect'; import { browserBuild, createArchitect, host } from '../../test-utils'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/optimization-level_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/optimization-level_spec.ts index 8936edee2329..0f29637a8cf3 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/optimization-level_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/optimization-level_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect } from '@angular-devkit/architect'; import { browserBuild, createArchitect, host } from '../../test-utils'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/output-path_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/output-path_spec.ts index beb600d77adc..5ee499126ff4 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/output-path_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/output-path_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { Architect } from '@angular-devkit/architect'; import { getSystemPath, join, virtualFs } from '@angular-devkit/core'; import * as fs from 'fs'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/poll_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/poll_spec.ts index 9f330fc759f5..7c0701e0f399 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/poll_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/poll_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { Architect } from '@angular-devkit/architect'; import { debounceTime, take, tap } from 'rxjs/operators'; import { createArchitect, host } from '../../test-utils'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/rebuild_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/rebuild_spec.ts index 8d98d8c97559..b2ebe3113544 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/rebuild_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/rebuild_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-big-function import { Architect } from '@angular-devkit/architect'; import { join, logging, normalize, virtualFs } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/replacements_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/replacements_spec.ts index 795cbadaf918..7bf9bcc2b58c 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/replacements_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/replacements_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { Architect } from '@angular-devkit/architect'; import { logging, normalize, virtualFs } from '@angular-devkit/core'; import { of, race } from 'rxjs'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/resolve-json-module_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/resolve-json-module_spec.ts index 030d9dbc6958..a7f1d945172a 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/resolve-json-module_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/resolve-json-module_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { Architect } from '@angular-devkit/architect'; import { join, virtualFs } from '@angular-devkit/core'; import { take, tap } from 'rxjs/operators'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/resources-output-path_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/resources-output-path_spec.ts index fb9e0a87b6ae..3d1b2ae4a06a 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/resources-output-path_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/resources-output-path_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-big-function import { Architect } from '@angular-devkit/architect'; import { normalize } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/scripts-array_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/scripts-array_spec.ts index 3451187e839a..3f80ecefbb00 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/scripts-array_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/scripts-array_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { Architect } from '@angular-devkit/architect'; import { logging } from '@angular-devkit/core'; import { browserBuild, createArchitect, host } from '../../test-utils'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/service-worker_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/service-worker_spec.ts index 7ce6b377b740..5ba91d1209dc 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/service-worker_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/service-worker_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect } from '@angular-devkit/architect'; import { normalize, virtualFs } from '@angular-devkit/core'; import { debounceTime, take, tap } from 'rxjs/operators'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/source-map_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/source-map_spec.ts index 73675b20f6dc..a6d347a645b7 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/source-map_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/source-map_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect } from '@angular-devkit/architect'; import { OutputHashing } from '@angular-devkit/build-angular'; import { browserBuild, createArchitect, host } from '../../test-utils'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/stats-json_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/stats-json_spec.ts index 4ef7c3a5c0b6..c032d1d00f85 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/stats-json_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/stats-json_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect } from '@angular-devkit/architect'; import { browserBuild, createArchitect, host } from '../../test-utils'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/styles_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/styles_spec.ts index 7e8e64ec45e5..6febba318242 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/styles_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/styles_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-big-function import { Architect } from '@angular-devkit/architect'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/svg_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/svg_spec.ts index 82cc1cb8ac7c..10f37411a9e5 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/svg_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/svg_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect } from '@angular-devkit/architect'; import { join, normalize, virtualFs } from '@angular-devkit/core'; import { createArchitect, host, outputPath } from '../../test-utils'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/tsconfig-paths_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/tsconfig-paths_spec.ts index 8e31ff766798..5af67b220439 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/tsconfig-paths_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/tsconfig-paths_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { Architect } from '@angular-devkit/architect'; import { browserBuild, createArchitect, host } from '../../test-utils'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/unused-files-warning_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/unused-files-warning_spec.ts index d1295d67a07a..a13a0ef5ae68 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/unused-files-warning_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/unused-files-warning_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect } from '@angular-devkit/architect'; import { BrowserBuilderOutput } from '@angular-devkit/build-angular'; import { logging } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/vendor-chunk_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/vendor-chunk_spec.ts index e78237b25186..2861e5f6dad5 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/vendor-chunk_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/vendor-chunk_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect } from '@angular-devkit/architect'; import { browserBuild, createArchitect, host } from '../../test-utils'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/vendor-source-map_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/vendor-source-map_spec.ts index b2c9a3373fc7..d88c0d75eaac 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/vendor-source-map_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/vendor-source-map_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect } from '@angular-devkit/architect'; import * as path from 'path'; import { browserBuild, createArchitect, host } from '../../test-utils'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/web-worker_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/web-worker_spec.ts index 51d1dd6d867e..5f4d5b51fe84 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/web-worker_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/web-worker_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { Architect } from '@angular-devkit/architect'; import { join, logging, virtualFs } from '@angular-devkit/core'; import { timer } from 'rxjs'; diff --git a/packages/angular_devkit/build_angular/src/browser/specs/works_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/works_spec.ts index e8a0f633f4a4..06645ed87e76 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/works_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/works_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { describeBuilder } from '../../testing'; import { buildWebpackBrowser } from '../index'; diff --git a/packages/angular_devkit/build_angular/src/browser/tests/behavior/rebuild-errors_spec.ts b/packages/angular_devkit/build_angular/src/browser/tests/behavior/rebuild-errors_spec.ts index 116942a78444..0e31ab765c67 100644 --- a/packages/angular_devkit/build_angular/src/browser/tests/behavior/rebuild-errors_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/tests/behavior/rebuild-errors_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable: no-big-function import { logging } from '@angular-devkit/core'; import { concatMap, count, take, timeout } from 'rxjs/operators'; diff --git a/packages/angular_devkit/build_angular/src/browser/tests/behavior/typescript-target_spec.ts b/packages/angular_devkit/build_angular/src/browser/tests/behavior/typescript-target_spec.ts index c7b28159fa4d..9aefc68c7120 100644 --- a/packages/angular_devkit/build_angular/src/browser/tests/behavior/typescript-target_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/tests/behavior/typescript-target_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { buildWebpackBrowser } from '../../index'; import { BASE_OPTIONS, BROWSER_BUILDER_INFO, describeBuilder } from '../setup'; diff --git a/packages/angular_devkit/build_angular/src/browser/tests/options/allowed-common-js-dependencies_spec.ts b/packages/angular_devkit/build_angular/src/browser/tests/options/allowed-common-js-dependencies_spec.ts index f39c6877a96e..164341edbf50 100644 --- a/packages/angular_devkit/build_angular/src/browser/tests/options/allowed-common-js-dependencies_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/tests/options/allowed-common-js-dependencies_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { logging } from '@angular-devkit/core'; import { buildWebpackBrowser } from '../../index'; import { BASE_OPTIONS, BROWSER_BUILDER_INFO, describeBuilder } from '../setup'; diff --git a/packages/angular_devkit/build_angular/src/browser/tests/options/assets_spec.ts b/packages/angular_devkit/build_angular/src/browser/tests/options/assets_spec.ts index 7893869156b7..52275ccad902 100644 --- a/packages/angular_devkit/build_angular/src/browser/tests/options/assets_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/tests/options/assets_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-big-function import { buildWebpackBrowser } from '../../index'; import { BASE_OPTIONS, BROWSER_BUILDER_INFO, describeBuilder } from '../setup'; diff --git a/packages/angular_devkit/build_angular/src/browser/tests/options/extract-licenses_spec.ts b/packages/angular_devkit/build_angular/src/browser/tests/options/extract-licenses_spec.ts index 0210fdd8ab2f..d8d4aca94a68 100644 --- a/packages/angular_devkit/build_angular/src/browser/tests/options/extract-licenses_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/tests/options/extract-licenses_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { buildWebpackBrowser } from '../../index'; import { BASE_OPTIONS, BROWSER_BUILDER_INFO, describeBuilder } from '../setup'; diff --git a/packages/angular_devkit/build_angular/src/browser/tests/options/inline-style-language_spec.ts b/packages/angular_devkit/build_angular/src/browser/tests/options/inline-style-language_spec.ts index 8bcdd8f0ce25..7160099d325c 100644 --- a/packages/angular_devkit/build_angular/src/browser/tests/options/inline-style-language_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/tests/options/inline-style-language_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { buildWebpackBrowser } from '../../index'; import { InlineStyleLanguage } from '../../schema'; import { BASE_OPTIONS, BROWSER_BUILDER_INFO, describeBuilder } from '../setup'; diff --git a/packages/angular_devkit/build_angular/src/browser/tests/options/main_spec.ts b/packages/angular_devkit/build_angular/src/browser/tests/options/main_spec.ts index dfd79cc0f16a..967bedded489 100644 --- a/packages/angular_devkit/build_angular/src/browser/tests/options/main_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/tests/options/main_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { buildWebpackBrowser } from '../../index'; import { BASE_OPTIONS, BROWSER_BUILDER_INFO, describeBuilder } from '../setup'; diff --git a/packages/angular_devkit/build_angular/src/browser/tests/options/named-chunks_spec.ts b/packages/angular_devkit/build_angular/src/browser/tests/options/named-chunks_spec.ts index 1bace45fcfb1..9791d25d702b 100644 --- a/packages/angular_devkit/build_angular/src/browser/tests/options/named-chunks_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/tests/options/named-chunks_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { buildWebpackBrowser } from '../../index'; import { BASE_OPTIONS, BROWSER_BUILDER_INFO, describeBuilder } from '../setup'; diff --git a/packages/angular_devkit/build_angular/src/browser/tests/options/output-hashing_spec.ts b/packages/angular_devkit/build_angular/src/browser/tests/options/output-hashing_spec.ts index e43d462f7c00..a733a2c7136a 100644 --- a/packages/angular_devkit/build_angular/src/browser/tests/options/output-hashing_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/tests/options/output-hashing_spec.ts @@ -1,12 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { buildWebpackBrowser } from '../../index'; import { OutputHashing } from '../../schema'; import { BASE_OPTIONS, BROWSER_BUILDER_INFO, describeBuilder } from '../setup'; diff --git a/packages/angular_devkit/build_angular/src/browser/tests/options/polyfills_spec.ts b/packages/angular_devkit/build_angular/src/browser/tests/options/polyfills_spec.ts index 0f3d3893ec72..e47b22531437 100644 --- a/packages/angular_devkit/build_angular/src/browser/tests/options/polyfills_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/tests/options/polyfills_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { buildWebpackBrowser } from '../../index'; import { BASE_OPTIONS, BROWSER_BUILDER_INFO, describeBuilder } from '../setup'; diff --git a/packages/angular_devkit/build_angular/src/browser/tests/options/scripts_spec.ts b/packages/angular_devkit/build_angular/src/browser/tests/options/scripts_spec.ts index c3ad0d0a0702..a1c1d036f6af 100644 --- a/packages/angular_devkit/build_angular/src/browser/tests/options/scripts_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/tests/options/scripts_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-big-function import { buildWebpackBrowser } from '../../index'; import { BASE_OPTIONS, BROWSER_BUILDER_INFO, describeBuilder } from '../setup'; diff --git a/packages/angular_devkit/build_angular/src/browser/tests/options/show-circular-dependencies_spec.ts b/packages/angular_devkit/build_angular/src/browser/tests/options/show-circular-dependencies_spec.ts index 33dfd04b80ea..491df3956c1a 100644 --- a/packages/angular_devkit/build_angular/src/browser/tests/options/show-circular-dependencies_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/tests/options/show-circular-dependencies_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { logging } from '@angular-devkit/core'; import { buildWebpackBrowser } from '../../index'; import { BASE_OPTIONS, BROWSER_BUILDER_INFO, describeBuilder } from '../setup'; diff --git a/packages/angular_devkit/build_angular/src/browser/tests/options/stats-json_spec.ts b/packages/angular_devkit/build_angular/src/browser/tests/options/stats-json_spec.ts index f458a2f04d0a..b085f31f96d1 100644 --- a/packages/angular_devkit/build_angular/src/browser/tests/options/stats-json_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/tests/options/stats-json_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { buildWebpackBrowser } from '../../index'; import { BASE_OPTIONS, BROWSER_BUILDER_INFO, describeBuilder } from '../setup'; diff --git a/packages/angular_devkit/build_angular/src/browser/tests/options/styles_spec.ts b/packages/angular_devkit/build_angular/src/browser/tests/options/styles_spec.ts index 7ee1a9005032..20c925059df6 100644 --- a/packages/angular_devkit/build_angular/src/browser/tests/options/styles_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/tests/options/styles_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-big-function import { buildWebpackBrowser } from '../../index'; import { BASE_OPTIONS, BROWSER_BUILDER_INFO, describeBuilder } from '../setup'; diff --git a/packages/angular_devkit/build_angular/src/browser/tests/options/subresource-integrity_spec.ts b/packages/angular_devkit/build_angular/src/browser/tests/options/subresource-integrity_spec.ts index d7e31047b2b8..754ca60c8f0b 100644 --- a/packages/angular_devkit/build_angular/src/browser/tests/options/subresource-integrity_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/tests/options/subresource-integrity_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-big-function import { logging } from '@angular-devkit/core'; import { buildWebpackBrowser } from '../../index'; diff --git a/packages/angular_devkit/build_angular/src/browser/tests/options/tsconfig_spec.ts b/packages/angular_devkit/build_angular/src/browser/tests/options/tsconfig_spec.ts index f74bd5784e4e..06ceb617be02 100644 --- a/packages/angular_devkit/build_angular/src/browser/tests/options/tsconfig_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/tests/options/tsconfig_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { buildWebpackBrowser } from '../../index'; import { BASE_OPTIONS, BROWSER_BUILDER_INFO, describeBuilder } from '../setup'; diff --git a/packages/angular_devkit/build_angular/src/browser/tests/options/watch_spec.ts b/packages/angular_devkit/build_angular/src/browser/tests/options/watch_spec.ts index c57834ed03e7..d9cb3f57399a 100644 --- a/packages/angular_devkit/build_angular/src/browser/tests/options/watch_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/tests/options/watch_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { concatMap, count, take, timeout } from 'rxjs/operators'; import { buildWebpackBrowser } from '../../index'; import { BASE_OPTIONS, BROWSER_BUILDER_INFO, describeBuilder } from '../setup'; diff --git a/packages/angular_devkit/build_angular/src/browser/tests/setup.ts b/packages/angular_devkit/build_angular/src/browser/tests/setup.ts index 0dcece4f7734..b27d8b75d826 100644 --- a/packages/angular_devkit/build_angular/src/browser/tests/setup.ts +++ b/packages/angular_devkit/build_angular/src/browser/tests/setup.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Schema } from '../schema'; export { describeBuilder } from '../../testing'; diff --git a/packages/angular_devkit/build_angular/src/dev-server/hmr_spec.ts b/packages/angular_devkit/build_angular/src/dev-server/hmr_spec.ts index 56257ab2c0a7..ca26cdc93f80 100644 --- a/packages/angular_devkit/build_angular/src/dev-server/hmr_spec.ts +++ b/packages/angular_devkit/build_angular/src/dev-server/hmr_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect, BuilderRun } from '@angular-devkit/architect'; // tslint:disable: no-implicit-dependencies import { Browser } from 'puppeteer/lib/cjs/puppeteer/common/Browser'; diff --git a/packages/angular_devkit/build_angular/src/dev-server/index.ts b/packages/angular_devkit/build_angular/src/dev-server/index.ts index 736fe3741eee..e84f120a7c1a 100644 --- a/packages/angular_devkit/build_angular/src/dev-server/index.ts +++ b/packages/angular_devkit/build_angular/src/dev-server/index.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { BuilderContext, createBuilder, targetFromTargetString } from '@angular-devkit/architect'; import { DevServerBuildOutput, diff --git a/packages/angular_devkit/build_angular/src/dev-server/index_spec.ts b/packages/angular_devkit/build_angular/src/dev-server/index_spec.ts index 8e4f0e049dc6..01de14f4fc84 100644 --- a/packages/angular_devkit/build_angular/src/dev-server/index_spec.ts +++ b/packages/angular_devkit/build_angular/src/dev-server/index_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { DevServerBuilderOutput } from '@angular-devkit/build-angular'; import { workspaces } from '@angular-devkit/core'; import fetch from 'node-fetch'; // tslint:disable-line:no-implicit-dependencies diff --git a/packages/angular_devkit/build_angular/src/dev-server/live-reload_spec.ts b/packages/angular_devkit/build_angular/src/dev-server/live-reload_spec.ts index 04995ebf72d2..9acf1018ad29 100644 --- a/packages/angular_devkit/build_angular/src/dev-server/live-reload_spec.ts +++ b/packages/angular_devkit/build_angular/src/dev-server/live-reload_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable: no-implicit-dependencies import { Architect, BuilderRun } from '@angular-devkit/architect'; import { tags } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/build_angular/src/dev-server/ssl_spec.ts b/packages/angular_devkit/build_angular/src/dev-server/ssl_spec.ts index f352ba0092c2..ab43e386c6ee 100644 --- a/packages/angular_devkit/build_angular/src/dev-server/ssl_spec.ts +++ b/packages/angular_devkit/build_angular/src/dev-server/ssl_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect, BuilderRun } from '@angular-devkit/architect'; import { DevServerBuilderOutput } from '@angular-devkit/build-angular'; import { tags } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/build_angular/src/dev-server/tests/behavior/build-budgets_spec.ts b/packages/angular_devkit/build_angular/src/dev-server/tests/behavior/build-budgets_spec.ts index be5020619969..b944312753c2 100644 --- a/packages/angular_devkit/build_angular/src/dev-server/tests/behavior/build-budgets_spec.ts +++ b/packages/angular_devkit/build_angular/src/dev-server/tests/behavior/build-budgets_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Type as BudgetType } from '../../../'; import { serveWebpackBrowser } from '../../index'; import { BASE_OPTIONS, DEV_SERVER_BUILDER_INFO, describeBuilder, setupBrowserTarget } from '../setup'; diff --git a/packages/angular_devkit/build_angular/src/dev-server/tests/behavior/build-deploy-url_spec.ts b/packages/angular_devkit/build_angular/src/dev-server/tests/behavior/build-deploy-url_spec.ts index f8a0cbaccc21..461d60b4bb26 100644 --- a/packages/angular_devkit/build_angular/src/dev-server/tests/behavior/build-deploy-url_spec.ts +++ b/packages/angular_devkit/build_angular/src/dev-server/tests/behavior/build-deploy-url_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { serveWebpackBrowser } from '../../index'; import { executeOnceAndFetch } from '../execute-fetch'; import { BASE_OPTIONS, DEV_SERVER_BUILDER_INFO, describeBuilder, setupBrowserTarget } from '../setup'; diff --git a/packages/angular_devkit/build_angular/src/dev-server/tests/behavior/build-inline-critical-css_spec.ts b/packages/angular_devkit/build_angular/src/dev-server/tests/behavior/build-inline-critical-css_spec.ts index 6b92996d22ac..99f4fcdf366f 100644 --- a/packages/angular_devkit/build_angular/src/dev-server/tests/behavior/build-inline-critical-css_spec.ts +++ b/packages/angular_devkit/build_angular/src/dev-server/tests/behavior/build-inline-critical-css_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { serveWebpackBrowser } from '../../index'; import { executeOnceAndFetch } from '../execute-fetch'; import { diff --git a/packages/angular_devkit/build_angular/src/dev-server/tests/execute-fetch.ts b/packages/angular_devkit/build_angular/src/dev-server/tests/execute-fetch.ts index 4525fb558cec..d12ad3c05bbf 100644 --- a/packages/angular_devkit/build_angular/src/dev-server/tests/execute-fetch.ts +++ b/packages/angular_devkit/build_angular/src/dev-server/tests/execute-fetch.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import fetch, { RequestInit, Response } from 'node-fetch'; // tslint:disable-line:no-implicit-dependencies import { mergeMap, take, timeout } from 'rxjs/operators'; import { URL } from 'url'; diff --git a/packages/angular_devkit/build_angular/src/dev-server/tests/options/allowed-hosts_spec.ts b/packages/angular_devkit/build_angular/src/dev-server/tests/options/allowed-hosts_spec.ts index 730fd9d4c50d..364067d19c9f 100644 --- a/packages/angular_devkit/build_angular/src/dev-server/tests/options/allowed-hosts_spec.ts +++ b/packages/angular_devkit/build_angular/src/dev-server/tests/options/allowed-hosts_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { serveWebpackBrowser } from '../../index'; import { executeOnceAndFetch } from '../execute-fetch'; import { diff --git a/packages/angular_devkit/build_angular/src/dev-server/tests/options/disable-host-check_spec.ts b/packages/angular_devkit/build_angular/src/dev-server/tests/options/disable-host-check_spec.ts index ce583fb96d23..76702ff10fc3 100644 --- a/packages/angular_devkit/build_angular/src/dev-server/tests/options/disable-host-check_spec.ts +++ b/packages/angular_devkit/build_angular/src/dev-server/tests/options/disable-host-check_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { serveWebpackBrowser } from '../../index'; import { executeOnceAndFetch } from '../execute-fetch'; import { diff --git a/packages/angular_devkit/build_angular/src/dev-server/tests/options/hmr_spec.ts b/packages/angular_devkit/build_angular/src/dev-server/tests/options/hmr_spec.ts index d0f76f7f1ee5..96d5da7a8f9b 100644 --- a/packages/angular_devkit/build_angular/src/dev-server/tests/options/hmr_spec.ts +++ b/packages/angular_devkit/build_angular/src/dev-server/tests/options/hmr_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { serveWebpackBrowser } from '../../index'; import { BASE_OPTIONS, diff --git a/packages/angular_devkit/build_angular/src/dev-server/tests/options/live-reload_spec.ts b/packages/angular_devkit/build_angular/src/dev-server/tests/options/live-reload_spec.ts index 12ce756e1b3e..79d1c4ecd143 100644 --- a/packages/angular_devkit/build_angular/src/dev-server/tests/options/live-reload_spec.ts +++ b/packages/angular_devkit/build_angular/src/dev-server/tests/options/live-reload_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { serveWebpackBrowser } from '../../index'; import { BASE_OPTIONS, diff --git a/packages/angular_devkit/build_angular/src/dev-server/tests/options/port_spec.ts b/packages/angular_devkit/build_angular/src/dev-server/tests/options/port_spec.ts index 9811860d88e0..8413f2ad5f9d 100644 --- a/packages/angular_devkit/build_angular/src/dev-server/tests/options/port_spec.ts +++ b/packages/angular_devkit/build_angular/src/dev-server/tests/options/port_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { URL } from 'url'; import { serveWebpackBrowser } from '../../index'; import { executeOnceAndFetch } from '../execute-fetch'; diff --git a/packages/angular_devkit/build_angular/src/dev-server/tests/options/proxy-config_spec.ts b/packages/angular_devkit/build_angular/src/dev-server/tests/options/proxy-config_spec.ts index 2a703e1d7e2c..5c2abd6f467c 100644 --- a/packages/angular_devkit/build_angular/src/dev-server/tests/options/proxy-config_spec.ts +++ b/packages/angular_devkit/build_angular/src/dev-server/tests/options/proxy-config_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as http from 'http'; import { serveWebpackBrowser } from '../../index'; import { executeOnceAndFetch } from '../execute-fetch'; diff --git a/packages/angular_devkit/build_angular/src/dev-server/tests/options/public-host_spec.ts b/packages/angular_devkit/build_angular/src/dev-server/tests/options/public-host_spec.ts index 6e1dfb1c9035..952d7e822662 100644 --- a/packages/angular_devkit/build_angular/src/dev-server/tests/options/public-host_spec.ts +++ b/packages/angular_devkit/build_angular/src/dev-server/tests/options/public-host_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { serveWebpackBrowser } from '../../index'; import { executeOnceAndFetch } from '../execute-fetch'; import { diff --git a/packages/angular_devkit/build_angular/src/dev-server/tests/options/serve-path_spec.ts b/packages/angular_devkit/build_angular/src/dev-server/tests/options/serve-path_spec.ts index 2741c16f0fd9..953abb23ef74 100644 --- a/packages/angular_devkit/build_angular/src/dev-server/tests/options/serve-path_spec.ts +++ b/packages/angular_devkit/build_angular/src/dev-server/tests/options/serve-path_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { URL } from 'url'; import { serveWebpackBrowser } from '../../index'; import { executeOnceAndFetch } from '../execute-fetch'; diff --git a/packages/angular_devkit/build_angular/src/dev-server/tests/options/verbose_spec.ts b/packages/angular_devkit/build_angular/src/dev-server/tests/options/verbose_spec.ts index 8d18b030eac8..e10f91873a64 100644 --- a/packages/angular_devkit/build_angular/src/dev-server/tests/options/verbose_spec.ts +++ b/packages/angular_devkit/build_angular/src/dev-server/tests/options/verbose_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { serveWebpackBrowser } from '../../index'; import { BASE_OPTIONS, DEV_SERVER_BUILDER_INFO, describeBuilder, setupBrowserTarget } from '../setup'; diff --git a/packages/angular_devkit/build_angular/src/dev-server/tests/options/watch_spec.ts b/packages/angular_devkit/build_angular/src/dev-server/tests/options/watch_spec.ts index 8d8d5399dd6b..8aad6f724149 100644 --- a/packages/angular_devkit/build_angular/src/dev-server/tests/options/watch_spec.ts +++ b/packages/angular_devkit/build_angular/src/dev-server/tests/options/watch_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { TimeoutError } from 'rxjs'; import { concatMap, count, take, timeout } from 'rxjs/operators'; import { serveWebpackBrowser } from '../../index'; diff --git a/packages/angular_devkit/build_angular/src/dev-server/tests/setup.ts b/packages/angular_devkit/build_angular/src/dev-server/tests/setup.ts index c1d513833191..58aaf5032f51 100644 --- a/packages/angular_devkit/build_angular/src/dev-server/tests/setup.ts +++ b/packages/angular_devkit/build_angular/src/dev-server/tests/setup.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { json } from '@angular-devkit/core'; import { readFileSync } from 'fs'; import { buildWebpackBrowser } from '../../browser'; diff --git a/packages/angular_devkit/build_angular/src/dev-server/works_spec.ts b/packages/angular_devkit/build_angular/src/dev-server/works_spec.ts index 493c2cbfe8f9..8b775a5e00c7 100644 --- a/packages/angular_devkit/build_angular/src/dev-server/works_spec.ts +++ b/packages/angular_devkit/build_angular/src/dev-server/works_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect, BuilderRun } from '@angular-devkit/architect'; import { DevServerBuilderOutput } from '@angular-devkit/build-angular'; import { normalize, virtualFs } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/build_angular/src/extract-i18n/index.ts b/packages/angular_devkit/build_angular/src/extract-i18n/index.ts index f300335a30e6..a1e0189ecafd 100644 --- a/packages/angular_devkit/build_angular/src/extract-i18n/index.ts +++ b/packages/angular_devkit/build_angular/src/extract-i18n/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BuilderContext, createBuilder, diff --git a/packages/angular_devkit/build_angular/src/extract-i18n/ivy-extract-loader.ts b/packages/angular_devkit/build_angular/src/extract-i18n/ivy-extract-loader.ts index af1bdddf4596..ac46df27dc73 100644 --- a/packages/angular_devkit/build_angular/src/extract-i18n/ivy-extract-loader.ts +++ b/packages/angular_devkit/build_angular/src/extract-i18n/ivy-extract-loader.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { MessageExtractor } from '@angular/localize/src/tools/src/extract/extraction'; import { getOptions } from 'loader-utils'; import * as nodePath from 'path'; diff --git a/packages/angular_devkit/build_angular/src/extract-i18n/works_spec.ts b/packages/angular_devkit/build_angular/src/extract-i18n/works_spec.ts index cbc951852e96..67210927077a 100644 --- a/packages/angular_devkit/build_angular/src/extract-i18n/works_spec.ts +++ b/packages/angular_devkit/build_angular/src/extract-i18n/works_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect } from '@angular-devkit/architect'; import { join, logging, normalize, virtualFs } from '@angular-devkit/core'; import { createArchitect, extractI18nTargetSpec, host } from '../test-utils'; diff --git a/packages/angular_devkit/build_angular/src/index.ts b/packages/angular_devkit/build_angular/src/index.ts index 83613150fc33..b85ccbae9c63 100644 --- a/packages/angular_devkit/build_angular/src/index.ts +++ b/packages/angular_devkit/build_angular/src/index.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - export * from './transforms'; export { diff --git a/packages/angular_devkit/build_angular/src/karma/code-coverage_spec.ts b/packages/angular_devkit/build_angular/src/karma/code-coverage_spec.ts index 52d03f7848bb..fa4898648c67 100644 --- a/packages/angular_devkit/build_angular/src/karma/code-coverage_spec.ts +++ b/packages/angular_devkit/build_angular/src/karma/code-coverage_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - // tslint:disable:no-implicit-dependencies import { Architect } from '@angular-devkit/architect'; diff --git a/packages/angular_devkit/build_angular/src/karma/find-tests.ts b/packages/angular_devkit/build_angular/src/karma/find-tests.ts index 17f26197b9da..1215b445c398 100644 --- a/packages/angular_devkit/build_angular/src/karma/find-tests.ts +++ b/packages/angular_devkit/build_angular/src/karma/find-tests.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { existsSync } from 'fs'; import * as glob from 'glob'; import { basename, dirname, extname, join } from 'path'; diff --git a/packages/angular_devkit/build_angular/src/karma/index.ts b/packages/angular_devkit/build_angular/src/karma/index.ts index c685e89175c2..7f51f88ab062 100644 --- a/packages/angular_devkit/build_angular/src/karma/index.ts +++ b/packages/angular_devkit/build_angular/src/karma/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BuilderContext, BuilderOutput, createBuilder } from '@angular-devkit/architect'; import { getSystemPath, join, normalize } from '@angular-devkit/core'; import { Config, ConfigOptions } from 'karma'; diff --git a/packages/angular_devkit/build_angular/src/karma/rebuilds_spec.ts b/packages/angular_devkit/build_angular/src/karma/rebuilds_spec.ts index fd73eb706184..eed8ab025bf3 100644 --- a/packages/angular_devkit/build_angular/src/karma/rebuilds_spec.ts +++ b/packages/angular_devkit/build_angular/src/karma/rebuilds_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect } from '@angular-devkit/architect'; import { Subject, timer } from 'rxjs'; import { diff --git a/packages/angular_devkit/build_angular/src/karma/selected_spec.ts b/packages/angular_devkit/build_angular/src/karma/selected_spec.ts index 84623f836359..20c9eaad18d2 100644 --- a/packages/angular_devkit/build_angular/src/karma/selected_spec.ts +++ b/packages/angular_devkit/build_angular/src/karma/selected_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect } from '@angular-devkit/architect'; import { logging } from '@angular-devkit/core'; import { createArchitect, host, karmaTargetSpec } from '../test-utils'; diff --git a/packages/angular_devkit/build_angular/src/karma/works_spec.ts b/packages/angular_devkit/build_angular/src/karma/works_spec.ts index 4a8701464ce3..a909400595fb 100644 --- a/packages/angular_devkit/build_angular/src/karma/works_spec.ts +++ b/packages/angular_devkit/build_angular/src/karma/works_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect } from '@angular-devkit/architect'; import { createArchitect, host, karmaTargetSpec } from '../test-utils'; diff --git a/packages/angular_devkit/build_angular/src/ng-packagr/index.ts b/packages/angular_devkit/build_angular/src/ng-packagr/index.ts index 09aad0f68717..52b5ecaa2be4 100644 --- a/packages/angular_devkit/build_angular/src/ng-packagr/index.ts +++ b/packages/angular_devkit/build_angular/src/ng-packagr/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BuilderContext, BuilderOutput, createBuilder } from '@angular-devkit/architect'; import { resolve } from 'path'; import { Observable, from } from 'rxjs'; diff --git a/packages/angular_devkit/build_angular/src/ng-packagr/works_spec.ts b/packages/angular_devkit/build_angular/src/ng-packagr/works_spec.ts index 81fea70bba00..460c455e831c 100644 --- a/packages/angular_devkit/build_angular/src/ng-packagr/works_spec.ts +++ b/packages/angular_devkit/build_angular/src/ng-packagr/works_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect } from '@angular-devkit/architect'; import { WorkspaceNodeModulesArchitectHost } from '@angular-devkit/architect/node'; import { TestProjectHost, TestingArchitectHost } from '@angular-devkit/architect/testing'; diff --git a/packages/angular_devkit/build_angular/src/protractor/index.ts b/packages/angular_devkit/build_angular/src/protractor/index.ts index 7d3aca6cd704..77c53f3a0cac 100644 --- a/packages/angular_devkit/build_angular/src/protractor/index.ts +++ b/packages/angular_devkit/build_angular/src/protractor/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BuilderContext, BuilderOutput, diff --git a/packages/angular_devkit/build_angular/src/protractor/works_spec.ts b/packages/angular_devkit/build_angular/src/protractor/works_spec.ts index 36678ec3b362..37ce19311b56 100644 --- a/packages/angular_devkit/build_angular/src/protractor/works_spec.ts +++ b/packages/angular_devkit/build_angular/src/protractor/works_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect } from '@angular-devkit/architect'; import { JsonObject, normalize } from '@angular-devkit/core'; import { createArchitect, host, protractorTargetSpec } from '../test-utils'; diff --git a/packages/angular_devkit/build_angular/src/server/base_spec.ts b/packages/angular_devkit/build_angular/src/server/base_spec.ts index 913356bb77f8..b5f6c7a66d9f 100644 --- a/packages/angular_devkit/build_angular/src/server/base_spec.ts +++ b/packages/angular_devkit/build_angular/src/server/base_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { Architect } from '@angular-devkit/architect'; import { ServerBuilderOutput } from '@angular-devkit/build-angular'; import { getSystemPath, join, normalize, virtualFs } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/build_angular/src/server/external_dependencies_spec.ts b/packages/angular_devkit/build_angular/src/server/external_dependencies_spec.ts index e8ddba737bfa..4e8d8fed6f1b 100644 --- a/packages/angular_devkit/build_angular/src/server/external_dependencies_spec.ts +++ b/packages/angular_devkit/build_angular/src/server/external_dependencies_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { Architect } from '@angular-devkit/architect'; import { ServerBuilderOutput } from '@angular-devkit/build-angular'; import { join, normalize, virtualFs } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/build_angular/src/server/index.ts b/packages/angular_devkit/build_angular/src/server/index.ts index 87ad57f2e442..45cbaf308d13 100644 --- a/packages/angular_devkit/build_angular/src/server/index.ts +++ b/packages/angular_devkit/build_angular/src/server/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BuilderContext, BuilderOutput, createBuilder } from '@angular-devkit/architect'; import { runWebpack } from '@angular-devkit/build-webpack'; import { json, tags } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/build_angular/src/server/resources-output-path_spec.ts b/packages/angular_devkit/build_angular/src/server/resources-output-path_spec.ts index 643f1b272cc9..8dd38f240a53 100644 --- a/packages/angular_devkit/build_angular/src/server/resources-output-path_spec.ts +++ b/packages/angular_devkit/build_angular/src/server/resources-output-path_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-big-function import { Architect } from '@angular-devkit/architect'; import { ServerBuilderOutput } from '@angular-devkit/build-angular'; diff --git a/packages/angular_devkit/build_angular/src/test-utils.ts b/packages/angular_devkit/build_angular/src/test-utils.ts index 282053d339e5..f412685ac960 100644 --- a/packages/angular_devkit/build_angular/src/test-utils.ts +++ b/packages/angular_devkit/build_angular/src/test-utils.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect, BuilderOutput, ScheduleOptions, Target } from '@angular-devkit/architect'; import { WorkspaceNodeModulesArchitectHost } from '@angular-devkit/architect/node'; import { TestProjectHost, TestingArchitectHost } from '@angular-devkit/architect/testing'; diff --git a/packages/angular_devkit/build_angular/src/testing/builder-harness.ts b/packages/angular_devkit/build_angular/src/testing/builder-harness.ts index ce3782ec7111..060998eea28a 100644 --- a/packages/angular_devkit/build_angular/src/testing/builder-harness.ts +++ b/packages/angular_devkit/build_angular/src/testing/builder-harness.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BuilderContext, BuilderHandlerFn, diff --git a/packages/angular_devkit/build_angular/src/testing/builder-harness_spec.ts b/packages/angular_devkit/build_angular/src/testing/builder-harness_spec.ts index e82402f02d59..a6f6a2f1bf7f 100644 --- a/packages/angular_devkit/build_angular/src/testing/builder-harness_spec.ts +++ b/packages/angular_devkit/build_angular/src/testing/builder-harness_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { TestProjectHost } from '@angular-devkit/architect/testing'; import { BuilderHarness } from './builder-harness'; diff --git a/packages/angular_devkit/build_angular/src/testing/file-watching.ts b/packages/angular_devkit/build_angular/src/testing/file-watching.ts index e47e6a19d5ff..a09c38dc8645 100644 --- a/packages/angular_devkit/build_angular/src/testing/file-watching.ts +++ b/packages/angular_devkit/build_angular/src/testing/file-watching.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BuilderWatcherCallback, BuilderWatcherFactory, diff --git a/packages/angular_devkit/build_angular/src/testing/index.ts b/packages/angular_devkit/build_angular/src/testing/index.ts index 3300346cf5d4..51bcba582bbc 100644 --- a/packages/angular_devkit/build_angular/src/testing/index.ts +++ b/packages/angular_devkit/build_angular/src/testing/index.ts @@ -1,9 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export { BuilderHarnessExecutionOptions, BuilderHarnessExecutionResult } from './builder-harness'; export { HarnessFileMatchers, describeBuilder } from './jasmine-helpers'; diff --git a/packages/angular_devkit/build_angular/src/testing/jasmine-helpers.ts b/packages/angular_devkit/build_angular/src/testing/jasmine-helpers.ts index e393fa756719..8f93ecad3fd9 100644 --- a/packages/angular_devkit/build_angular/src/testing/jasmine-helpers.ts +++ b/packages/angular_devkit/build_angular/src/testing/jasmine-helpers.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BuilderHandlerFn } from '@angular-devkit/architect'; import { json } from '@angular-devkit/core'; import { readFileSync } from 'fs'; diff --git a/packages/angular_devkit/build_angular/src/transforms.ts b/packages/angular_devkit/build_angular/src/transforms.ts index c724aedab646..bb500c173c25 100644 --- a/packages/angular_devkit/build_angular/src/transforms.ts +++ b/packages/angular_devkit/build_angular/src/transforms.ts @@ -1,8 +1,9 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export type ExecutionTransformer = (input: T) => T | Promise; diff --git a/packages/angular_devkit/build_angular/src/tslint/index.ts b/packages/angular_devkit/build_angular/src/tslint/index.ts index 3f5f4fe9df3b..7d117025e7fc 100644 --- a/packages/angular_devkit/build_angular/src/tslint/index.ts +++ b/packages/angular_devkit/build_angular/src/tslint/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BuilderContext, BuilderOutput, createBuilder } from '@angular-devkit/architect'; import { json } from '@angular-devkit/core'; import { readFileSync } from 'fs'; diff --git a/packages/angular_devkit/build_angular/src/tslint/works_spec.ts b/packages/angular_devkit/build_angular/src/tslint/works_spec.ts index bd4ec4829772..1b3767490f31 100644 --- a/packages/angular_devkit/build_angular/src/tslint/works_spec.ts +++ b/packages/angular_devkit/build_angular/src/tslint/works_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect, Target } from '@angular-devkit/architect'; import { WorkspaceNodeModulesArchitectHost } from '@angular-devkit/architect/node'; import { TestingArchitectHost } from '@angular-devkit/architect/testing'; diff --git a/packages/angular_devkit/build_angular/src/typings.d.ts b/packages/angular_devkit/build_angular/src/typings.d.ts index bdf566191697..e2017cad06fc 100644 --- a/packages/angular_devkit/build_angular/src/typings.d.ts +++ b/packages/angular_devkit/build_angular/src/typings.d.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + declare module '@discoveryjs/json-ext' { export function stringifyStream(value: unknown): import('stream').Readable; } diff --git a/packages/angular_devkit/build_angular/src/utils/action-cache.ts b/packages/angular_devkit/build_angular/src/utils/action-cache.ts index 6aa1b4c9afa6..28e0f72d833a 100644 --- a/packages/angular_devkit/build_angular/src/utils/action-cache.ts +++ b/packages/angular_devkit/build_angular/src/utils/action-cache.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as cacache from 'cacache'; import { createHash } from 'crypto'; import * as fs from 'fs'; diff --git a/packages/angular_devkit/build_angular/src/utils/action-executor.ts b/packages/angular_devkit/build_angular/src/utils/action-executor.ts index a57d59e28d20..c8210d558a9d 100644 --- a/packages/angular_devkit/build_angular/src/utils/action-executor.ts +++ b/packages/angular_devkit/build_angular/src/utils/action-executor.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import JestWorker from 'jest-worker'; import * as os from 'os'; import * as path from 'path'; diff --git a/packages/angular_devkit/build_angular/src/utils/build-browser-features.ts b/packages/angular_devkit/build_angular/src/utils/build-browser-features.ts index f5662b60b7b0..ffd249eed205 100644 --- a/packages/angular_devkit/build_angular/src/utils/build-browser-features.ts +++ b/packages/angular_devkit/build_angular/src/utils/build-browser-features.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import * as browserslist from 'browserslist'; import { feature, features } from 'caniuse-lite'; import * as ts from 'typescript'; diff --git a/packages/angular_devkit/build_angular/src/utils/build-browser-features_spec.ts b/packages/angular_devkit/build_angular/src/utils/build-browser-features_spec.ts index c50e885b4f5e..69220e4dba24 100644 --- a/packages/angular_devkit/build_angular/src/utils/build-browser-features_spec.ts +++ b/packages/angular_devkit/build_angular/src/utils/build-browser-features_spec.ts @@ -1,12 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { TestProjectHost } from '@angular-devkit/architect/testing'; import { getSystemPath, join, normalize } from '@angular-devkit/core'; import { ScriptTarget } from 'typescript'; diff --git a/packages/angular_devkit/build_angular/src/utils/build-options.ts b/packages/angular_devkit/build_angular/src/utils/build-options.ts index 6cfde74ffc66..b478b6c83612 100644 --- a/packages/angular_devkit/build_angular/src/utils/build-options.ts +++ b/packages/angular_devkit/build_angular/src/utils/build-options.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { logging } from '@angular-devkit/core'; import { ParsedConfiguration } from '@angular/compiler-cli'; import { diff --git a/packages/angular_devkit/build_angular/src/utils/bundle-calculator.ts b/packages/angular_devkit/build_angular/src/utils/bundle-calculator.ts index 150085b6239b..94dd2ff067c0 100644 --- a/packages/angular_devkit/build_angular/src/utils/bundle-calculator.ts +++ b/packages/angular_devkit/build_angular/src/utils/bundle-calculator.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { basename } from 'path'; import { StatsAsset, StatsChunk, StatsCompilation } from 'webpack'; import { Budget, Type } from '../browser/schema'; diff --git a/packages/angular_devkit/build_angular/src/utils/bundle-calculator_spec.ts b/packages/angular_devkit/build_angular/src/utils/bundle-calculator_spec.ts index fe628e4bc9c9..68877336d5f7 100644 --- a/packages/angular_devkit/build_angular/src/utils/bundle-calculator_spec.ts +++ b/packages/angular_devkit/build_angular/src/utils/bundle-calculator_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { StatsCompilation } from 'webpack'; import { Budget, Type } from '../browser/schema'; import { ThresholdSeverity, checkBudgets } from './bundle-calculator'; diff --git a/packages/angular_devkit/build_angular/src/utils/cache-path.ts b/packages/angular_devkit/build_angular/src/utils/cache-path.ts index a6eeffdd7495..6738ea01e167 100644 --- a/packages/angular_devkit/build_angular/src/utils/cache-path.ts +++ b/packages/angular_devkit/build_angular/src/utils/cache-path.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as findCacheDirectory from 'find-cache-dir'; import { tmpdir } from 'os'; import { resolve } from 'path'; diff --git a/packages/angular_devkit/build_angular/src/utils/check-port.ts b/packages/angular_devkit/build_angular/src/utils/check-port.ts index 1a21cfa61fb0..ba894f1c90b3 100644 --- a/packages/angular_devkit/build_angular/src/utils/check-port.ts +++ b/packages/angular_devkit/build_angular/src/utils/check-port.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { prompt } from 'inquirer'; import * as net from 'net'; import { isTTY } from './tty'; diff --git a/packages/angular_devkit/build_angular/src/utils/color.ts b/packages/angular_devkit/build_angular/src/utils/color.ts index ad77d8230fc7..8684e19e15a9 100644 --- a/packages/angular_devkit/build_angular/src/utils/color.ts +++ b/packages/angular_devkit/build_angular/src/utils/color.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as ansiColors from 'ansi-colors'; import { WriteStream } from 'tty'; diff --git a/packages/angular_devkit/build_angular/src/utils/copy-assets.ts b/packages/angular_devkit/build_angular/src/utils/copy-assets.ts index 976796ce4cdd..ece6ade43d05 100644 --- a/packages/angular_devkit/build_angular/src/utils/copy-assets.ts +++ b/packages/angular_devkit/build_angular/src/utils/copy-assets.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as fs from 'fs'; import * as glob from 'glob'; import * as path from 'path'; diff --git a/packages/angular_devkit/build_angular/src/utils/copy-file.ts b/packages/angular_devkit/build_angular/src/utils/copy-file.ts index f935599fe95f..de5fd82e2046 100644 --- a/packages/angular_devkit/build_angular/src/utils/copy-file.ts +++ b/packages/angular_devkit/build_angular/src/utils/copy-file.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as fs from 'fs'; // Workaround Node.js issue prior to 10.16 with copyFile on macOS diff --git a/packages/angular_devkit/build_angular/src/utils/default-progress.ts b/packages/angular_devkit/build_angular/src/utils/default-progress.ts index 258412b460f1..b44deaf7a667 100644 --- a/packages/angular_devkit/build_angular/src/utils/default-progress.ts +++ b/packages/angular_devkit/build_angular/src/utils/default-progress.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - export function defaultProgress(progress: boolean | undefined): boolean { if (progress === undefined) { return process.stdout.isTTY === true; diff --git a/packages/angular_devkit/build_angular/src/utils/delete-output-dir.ts b/packages/angular_devkit/build_angular/src/utils/delete-output-dir.ts index bb8c648a1220..07020fbb43c5 100644 --- a/packages/angular_devkit/build_angular/src/utils/delete-output-dir.ts +++ b/packages/angular_devkit/build_angular/src/utils/delete-output-dir.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { resolve } from 'path'; import * as rimraf from 'rimraf'; diff --git a/packages/angular_devkit/build_angular/src/utils/environment-options.ts b/packages/angular_devkit/build_angular/src/utils/environment-options.ts index 2d896edb9389..0603ad907597 100644 --- a/packages/angular_devkit/build_angular/src/utils/environment-options.ts +++ b/packages/angular_devkit/build_angular/src/utils/environment-options.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as path from 'path'; function isDisabled(variable: string): boolean { diff --git a/packages/angular_devkit/build_angular/src/utils/find-up.ts b/packages/angular_devkit/build_angular/src/utils/find-up.ts index d99687c5fdf9..b5d15a1b3da7 100644 --- a/packages/angular_devkit/build_angular/src/utils/find-up.ts +++ b/packages/angular_devkit/build_angular/src/utils/find-up.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { existsSync } from 'fs'; import * as path from 'path'; import { isDirectory } from './is-directory'; diff --git a/packages/angular_devkit/build_angular/src/utils/i18n-inlining.ts b/packages/angular_devkit/build_angular/src/utils/i18n-inlining.ts index ee1fb9e9e49d..bca871523d4b 100644 --- a/packages/angular_devkit/build_angular/src/utils/i18n-inlining.ts +++ b/packages/angular_devkit/build_angular/src/utils/i18n-inlining.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BuilderContext } from '@angular-devkit/architect'; import { EmittedFiles } from '@angular-devkit/build-webpack'; import * as fs from 'fs'; diff --git a/packages/angular_devkit/build_angular/src/utils/i18n-options.ts b/packages/angular_devkit/build_angular/src/utils/i18n-options.ts index 2a803f8fdc66..b468e666f12e 100644 --- a/packages/angular_devkit/build_angular/src/utils/i18n-options.ts +++ b/packages/angular_devkit/build_angular/src/utils/i18n-options.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BuilderContext } from '@angular-devkit/architect'; import { json } from '@angular-devkit/core'; import * as fs from 'fs'; diff --git a/packages/angular_devkit/build_angular/src/utils/index-file/augment-index-html.ts b/packages/angular_devkit/build_angular/src/utils/index-file/augment-index-html.ts index d27516c8c3af..c96a07204cfe 100644 --- a/packages/angular_devkit/build_angular/src/utils/index-file/augment-index-html.ts +++ b/packages/angular_devkit/build_angular/src/utils/index-file/augment-index-html.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { createHash } from 'crypto'; import { htmlRewritingStream } from './html-rewriting-stream'; diff --git a/packages/angular_devkit/build_angular/src/utils/index-file/augment-index-html_spec.ts b/packages/angular_devkit/build_angular/src/utils/index-file/augment-index-html_spec.ts index 0324d56f8e2e..afe4eac52013 100644 --- a/packages/angular_devkit/build_angular/src/utils/index-file/augment-index-html_spec.ts +++ b/packages/angular_devkit/build_angular/src/utils/index-file/augment-index-html_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { tags } from '@angular-devkit/core'; import { AugmentIndexHtmlOptions, FileInfo, augmentIndexHtml } from './augment-index-html'; diff --git a/packages/angular_devkit/build_angular/src/utils/index-file/html-rewriting-stream.ts b/packages/angular_devkit/build_angular/src/utils/index-file/html-rewriting-stream.ts index e9c910019ef8..4da444b990a5 100644 --- a/packages/angular_devkit/build_angular/src/utils/index-file/html-rewriting-stream.ts +++ b/packages/angular_devkit/build_angular/src/utils/index-file/html-rewriting-stream.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { Readable, Writable } from 'stream'; export async function htmlRewritingStream(content: string): Promise<{ diff --git a/packages/angular_devkit/build_angular/src/utils/index-file/index-html-generator.ts b/packages/angular_devkit/build_angular/src/utils/index-file/index-html-generator.ts index 299789721bbb..864ffd8c74c4 100644 --- a/packages/angular_devkit/build_angular/src/utils/index-file/index-html-generator.ts +++ b/packages/angular_devkit/build_angular/src/utils/index-file/index-html-generator.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import * as fs from 'fs'; import { join } from 'path'; import { NormalizedOptimizationOptions } from '../normalize-optimization'; diff --git a/packages/angular_devkit/build_angular/src/utils/index-file/inline-critical-css.ts b/packages/angular_devkit/build_angular/src/utils/index-file/inline-critical-css.ts index dd835688bc35..123dfb1f0816 100644 --- a/packages/angular_devkit/build_angular/src/utils/index-file/inline-critical-css.ts +++ b/packages/angular_devkit/build_angular/src/utils/index-file/inline-critical-css.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import * as fs from 'fs'; const Critters: typeof import('critters').default = require('critters'); diff --git a/packages/angular_devkit/build_angular/src/utils/index-file/inline-critical-css_spec.ts b/packages/angular_devkit/build_angular/src/utils/index-file/inline-critical-css_spec.ts index dd29f5da3019..c58e48a8da9b 100644 --- a/packages/angular_devkit/build_angular/src/utils/index-file/inline-critical-css_spec.ts +++ b/packages/angular_devkit/build_angular/src/utils/index-file/inline-critical-css_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { tags } from '@angular-devkit/core'; import { InlineCriticalCssProcessor } from './inline-critical-css'; diff --git a/packages/angular_devkit/build_angular/src/utils/index-file/inline-fonts.ts b/packages/angular_devkit/build_angular/src/utils/index-file/inline-fonts.ts index e927dd2d0322..5ba3f7b1f11c 100644 --- a/packages/angular_devkit/build_angular/src/utils/index-file/inline-fonts.ts +++ b/packages/angular_devkit/build_angular/src/utils/index-file/inline-fonts.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import * as cacache from 'cacache'; import * as fs from 'fs'; import * as https from 'https'; diff --git a/packages/angular_devkit/build_angular/src/utils/index-file/inline-fonts_spec.ts b/packages/angular_devkit/build_angular/src/utils/index-file/inline-fonts_spec.ts index 506c69fbc229..1baefcfaf976 100644 --- a/packages/angular_devkit/build_angular/src/utils/index-file/inline-fonts_spec.ts +++ b/packages/angular_devkit/build_angular/src/utils/index-file/inline-fonts_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { InlineFontsProcessor } from './inline-fonts'; describe('InlineFontsProcessor', () => { diff --git a/packages/angular_devkit/build_angular/src/utils/index.ts b/packages/angular_devkit/build_angular/src/utils/index.ts index 47bdbc914ce9..4e22641436e8 100644 --- a/packages/angular_devkit/build_angular/src/utils/index.ts +++ b/packages/angular_devkit/build_angular/src/utils/index.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - export * from './build-browser-features'; export * from './default-progress'; export * from './delete-output-dir'; diff --git a/packages/angular_devkit/build_angular/src/utils/is-directory.ts b/packages/angular_devkit/build_angular/src/utils/is-directory.ts index f4636a272531..407d4dac2f01 100644 --- a/packages/angular_devkit/build_angular/src/utils/is-directory.ts +++ b/packages/angular_devkit/build_angular/src/utils/is-directory.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable // TODO: cleanup this file, it's copied as is from Angular CLI. diff --git a/packages/angular_devkit/build_angular/src/utils/load-translations.ts b/packages/angular_devkit/build_angular/src/utils/load-translations.ts index ac78333e0c27..5371a96bdc0a 100644 --- a/packages/angular_devkit/build_angular/src/utils/load-translations.ts +++ b/packages/angular_devkit/build_angular/src/utils/load-translations.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { createHash } from 'crypto'; import * as fs from 'fs'; diff --git a/packages/angular_devkit/build_angular/src/utils/normalize-asset-patterns.ts b/packages/angular_devkit/build_angular/src/utils/normalize-asset-patterns.ts index da17ac8d3568..2ab6b32324ea 100644 --- a/packages/angular_devkit/build_angular/src/utils/normalize-asset-patterns.ts +++ b/packages/angular_devkit/build_angular/src/utils/normalize-asset-patterns.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BaseException, Path, diff --git a/packages/angular_devkit/build_angular/src/utils/normalize-builder-schema.ts b/packages/angular_devkit/build_angular/src/utils/normalize-builder-schema.ts index 1f7f04fca624..34b0c42facba 100644 --- a/packages/angular_devkit/build_angular/src/utils/normalize-builder-schema.ts +++ b/packages/angular_devkit/build_angular/src/utils/normalize-builder-schema.ts @@ -1,13 +1,12 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { Path } from '@angular-devkit/core'; import { AssetPatternClass, diff --git a/packages/angular_devkit/build_angular/src/utils/normalize-file-replacements.ts b/packages/angular_devkit/build_angular/src/utils/normalize-file-replacements.ts index 27d80d7491aa..02e1eb887482 100644 --- a/packages/angular_devkit/build_angular/src/utils/normalize-file-replacements.ts +++ b/packages/angular_devkit/build_angular/src/utils/normalize-file-replacements.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { BaseException, Path, diff --git a/packages/angular_devkit/build_angular/src/utils/normalize-optimization.ts b/packages/angular_devkit/build_angular/src/utils/normalize-optimization.ts index 8f72b05b1c9c..aef8823ebebd 100644 --- a/packages/angular_devkit/build_angular/src/utils/normalize-optimization.ts +++ b/packages/angular_devkit/build_angular/src/utils/normalize-optimization.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { FontsClass, OptimizationClass, OptimizationUnion, StylesClass } from '../browser/schema'; export type NormalizedOptimizationOptions = Required> & { diff --git a/packages/angular_devkit/build_angular/src/utils/normalize-source-maps.ts b/packages/angular_devkit/build_angular/src/utils/normalize-source-maps.ts index ca873b59fa95..c371bb0df80e 100644 --- a/packages/angular_devkit/build_angular/src/utils/normalize-source-maps.ts +++ b/packages/angular_devkit/build_angular/src/utils/normalize-source-maps.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { SourceMapClass, SourceMapUnion } from '../browser/schema'; export function normalizeSourceMaps(sourceMap: SourceMapUnion): SourceMapClass { diff --git a/packages/angular_devkit/build_angular/src/utils/output-paths.ts b/packages/angular_devkit/build_angular/src/utils/output-paths.ts index 78e34299c801..8df35931e590 100644 --- a/packages/angular_devkit/build_angular/src/utils/output-paths.ts +++ b/packages/angular_devkit/build_angular/src/utils/output-paths.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { existsSync, mkdirSync } from 'fs'; import { join } from 'path'; import { I18nOptions } from './i18n-options'; diff --git a/packages/angular_devkit/build_angular/src/utils/package-chunk-sort.ts b/packages/angular_devkit/build_angular/src/utils/package-chunk-sort.ts index 982c3f294c54..2e01414414cd 100644 --- a/packages/angular_devkit/build_angular/src/utils/package-chunk-sort.ts +++ b/packages/angular_devkit/build_angular/src/utils/package-chunk-sort.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { ExtraEntryPoint } from '../browser/schema'; import { normalizeExtraEntryPoints } from '../webpack/utils/helpers'; diff --git a/packages/angular_devkit/build_angular/src/utils/process-bundle-bootstrap.js b/packages/angular_devkit/build_angular/src/utils/process-bundle-bootstrap.js index b2b1965f4c67..7ff6bb28fcdc 100644 --- a/packages/angular_devkit/build_angular/src/utils/process-bundle-bootstrap.js +++ b/packages/angular_devkit/build_angular/src/utils/process-bundle-bootstrap.js @@ -1,9 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + require('../../../../../lib/bootstrap-local'); -module.exports = require('./process-bundle.ts'); \ No newline at end of file +module.exports = require('./process-bundle.ts'); diff --git a/packages/angular_devkit/build_angular/src/utils/process-bundle.ts b/packages/angular_devkit/build_angular/src/utils/process-bundle.ts index 88e0cc55ae56..60c4418c94bb 100644 --- a/packages/angular_devkit/build_angular/src/utils/process-bundle.ts +++ b/packages/angular_devkit/build_angular/src/utils/process-bundle.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { NodePath, ParseResult, diff --git a/packages/angular_devkit/build_angular/src/utils/read-tsconfig.ts b/packages/angular_devkit/build_angular/src/utils/read-tsconfig.ts index 9d58349af889..a9345739143d 100644 --- a/packages/angular_devkit/build_angular/src/utils/read-tsconfig.ts +++ b/packages/angular_devkit/build_angular/src/utils/read-tsconfig.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { ParsedConfiguration } from '@angular/compiler-cli'; import * as path from 'path'; diff --git a/packages/angular_devkit/build_angular/src/utils/run-module-as-observable-fork.ts b/packages/angular_devkit/build_angular/src/utils/run-module-as-observable-fork.ts index ab13efdb0e2b..63ad5351a8c3 100644 --- a/packages/angular_devkit/build_angular/src/utils/run-module-as-observable-fork.ts +++ b/packages/angular_devkit/build_angular/src/utils/run-module-as-observable-fork.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BuilderOutput } from '@angular-devkit/architect'; import { ForkOptions, fork } from 'child_process'; import { resolve } from 'path'; diff --git a/packages/angular_devkit/build_angular/src/utils/run-module-worker.js b/packages/angular_devkit/build_angular/src/utils/run-module-worker.js index 2370abead79b..d1be8e869590 100644 --- a/packages/angular_devkit/build_angular/src/utils/run-module-worker.js +++ b/packages/angular_devkit/build_angular/src/utils/run-module-worker.js @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - process.on('message', (message) => { // Only process messages with the hash in 'run-module-as-observable-fork.ts'. if (message.hash === '5d4b9a5c0a4e0f9977598437b0e85bcc') { @@ -17,4 +16,3 @@ process.on('message', (message) => { } } }); - diff --git a/packages/angular_devkit/build_angular/src/utils/service-worker.ts b/packages/angular_devkit/build_angular/src/utils/service-worker.ts index 10eb38973855..136a829e5703 100644 --- a/packages/angular_devkit/build_angular/src/utils/service-worker.ts +++ b/packages/angular_devkit/build_angular/src/utils/service-worker.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Path, getSystemPath, normalize } from '@angular-devkit/core'; import { Config, Filesystem, Generator } from '@angular/service-worker/config'; import * as crypto from 'crypto'; diff --git a/packages/angular_devkit/build_angular/src/utils/spinner.ts b/packages/angular_devkit/build_angular/src/utils/spinner.ts index 35c16486832d..92d96cd1c1d7 100644 --- a/packages/angular_devkit/build_angular/src/utils/spinner.ts +++ b/packages/angular_devkit/build_angular/src/utils/spinner.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import * as ora from 'ora'; import { colors } from './color'; diff --git a/packages/angular_devkit/build_angular/src/utils/strip-bom.ts b/packages/angular_devkit/build_angular/src/utils/strip-bom.ts index f4aba38228b3..b8dd0ba3f7a1 100644 --- a/packages/angular_devkit/build_angular/src/utils/strip-bom.ts +++ b/packages/angular_devkit/build_angular/src/utils/strip-bom.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable // TODO: cleanup this file, it's copied as is from Angular CLI. diff --git a/packages/angular_devkit/build_angular/src/utils/tty.ts b/packages/angular_devkit/build_angular/src/utils/tty.ts index dd5931e26fb6..58ac0a405514 100644 --- a/packages/angular_devkit/build_angular/src/utils/tty.ts +++ b/packages/angular_devkit/build_angular/src/utils/tty.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - function _isTruthy(value: undefined | string): boolean { // Returns true if value is a string that is anything but 0 or false. return value !== undefined && value !== '0' && value.toUpperCase() !== 'FALSE'; diff --git a/packages/angular_devkit/build_angular/src/utils/url.ts b/packages/angular_devkit/build_angular/src/utils/url.ts index 39b047b407bb..dcf713db3fe1 100644 --- a/packages/angular_devkit/build_angular/src/utils/url.ts +++ b/packages/angular_devkit/build_angular/src/utils/url.ts @@ -1,12 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - export function urlJoin(...parts: string[]): string { const [p, ...rest] = parts; diff --git a/packages/angular_devkit/build_angular/src/utils/url_spec.ts b/packages/angular_devkit/build_angular/src/utils/url_spec.ts index ca0d7935a741..7eef5cc4d070 100644 --- a/packages/angular_devkit/build_angular/src/utils/url_spec.ts +++ b/packages/angular_devkit/build_angular/src/utils/url_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { urlJoin } from './url'; describe('urlJoin', () => { diff --git a/packages/angular_devkit/build_angular/src/utils/version.ts b/packages/angular_devkit/build_angular/src/utils/version.ts index 0217bcca6147..879f94c1e539 100644 --- a/packages/angular_devkit/build_angular/src/utils/version.ts +++ b/packages/angular_devkit/build_angular/src/utils/version.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { logging, tags } from '@angular-devkit/core'; import { SemVer, gte, satisfies } from 'semver'; diff --git a/packages/angular_devkit/build_angular/src/utils/webpack-browser-config.ts b/packages/angular_devkit/build_angular/src/utils/webpack-browser-config.ts index d9890f05df16..25463d031241 100644 --- a/packages/angular_devkit/build_angular/src/utils/webpack-browser-config.ts +++ b/packages/angular_devkit/build_angular/src/utils/webpack-browser-config.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BuilderContext } from '@angular-devkit/architect'; import { getSystemPath, diff --git a/packages/angular_devkit/build_angular/src/utils/webpack-diagnostics.ts b/packages/angular_devkit/build_angular/src/utils/webpack-diagnostics.ts index ac9b5cbc7c38..41584a617e82 100644 --- a/packages/angular_devkit/build_angular/src/utils/webpack-diagnostics.ts +++ b/packages/angular_devkit/build_angular/src/utils/webpack-diagnostics.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license -*/ + */ + import { Compilation, WebpackError } from 'webpack'; export function addWarning(compilation: Compilation, message: string): void { diff --git a/packages/angular_devkit/build_angular/src/utils/workers.ts b/packages/angular_devkit/build_angular/src/utils/workers.ts index 83b4c778fff8..b670c8b5ecdc 100644 --- a/packages/angular_devkit/build_angular/src/utils/workers.ts +++ b/packages/angular_devkit/build_angular/src/utils/workers.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { cpus } from 'os'; /** * Use CPU count -1 with limit to 7 for workers not to clog the system. diff --git a/packages/angular_devkit/build_angular/src/webpack/configs/browser.ts b/packages/angular_devkit/build_angular/src/webpack/configs/browser.ts index 08d81c29a814..fd0bfd8eb8aa 100644 --- a/packages/angular_devkit/build_angular/src/webpack/configs/browser.ts +++ b/packages/angular_devkit/build_angular/src/webpack/configs/browser.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { ScriptTarget } from 'typescript'; import * as webpack from 'webpack'; import { BuildBrowserFeatures } from '../../utils'; diff --git a/packages/angular_devkit/build_angular/src/webpack/configs/common.ts b/packages/angular_devkit/build_angular/src/webpack/configs/common.ts index f3e0e7132a39..9525184b4fbb 100644 --- a/packages/angular_devkit/build_angular/src/webpack/configs/common.ts +++ b/packages/angular_devkit/build_angular/src/webpack/configs/common.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BuildOptimizerWebpackPlugin, buildOptimizerLoaderPath, diff --git a/packages/angular_devkit/build_angular/src/webpack/configs/dev-server.ts b/packages/angular_devkit/build_angular/src/webpack/configs/dev-server.ts index e940ee92007e..9f42fdb3a471 100644 --- a/packages/angular_devkit/build_angular/src/webpack/configs/dev-server.ts +++ b/packages/angular_devkit/build_angular/src/webpack/configs/dev-server.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { logging, tags } from '@angular-devkit/core'; import { existsSync, readFileSync } from 'fs'; import { posix, resolve } from 'path'; diff --git a/packages/angular_devkit/build_angular/src/webpack/configs/index.ts b/packages/angular_devkit/build_angular/src/webpack/configs/index.ts index badd91583a97..5797d2d2db2a 100644 --- a/packages/angular_devkit/build_angular/src/webpack/configs/index.ts +++ b/packages/angular_devkit/build_angular/src/webpack/configs/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export * from './browser'; export * from './common'; export * from './dev-server'; diff --git a/packages/angular_devkit/build_angular/src/webpack/configs/server.ts b/packages/angular_devkit/build_angular/src/webpack/configs/server.ts index ca19993a0c6d..d78e89679f38 100644 --- a/packages/angular_devkit/build_angular/src/webpack/configs/server.ts +++ b/packages/angular_devkit/build_angular/src/webpack/configs/server.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { isAbsolute } from 'path'; import { Configuration, ContextReplacementPlugin } from 'webpack'; import { WebpackConfigOptions } from '../../utils/build-options'; diff --git a/packages/angular_devkit/build_angular/src/webpack/configs/stats.ts b/packages/angular_devkit/build_angular/src/webpack/configs/stats.ts index dca47f16a4d1..a5d880d001ad 100644 --- a/packages/angular_devkit/build_angular/src/webpack/configs/stats.ts +++ b/packages/angular_devkit/build_angular/src/webpack/configs/stats.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { WebpackConfigOptions } from '../../utils/build-options'; const webpackOutputOptions = { diff --git a/packages/angular_devkit/build_angular/src/webpack/configs/styles.ts b/packages/angular_devkit/build_angular/src/webpack/configs/styles.ts index 1af53b2b913a..a298818f4569 100644 --- a/packages/angular_devkit/build_angular/src/webpack/configs/styles.ts +++ b/packages/angular_devkit/build_angular/src/webpack/configs/styles.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as fs from 'fs'; import * as path from 'path'; import * as webpack from 'webpack'; diff --git a/packages/angular_devkit/build_angular/src/webpack/configs/test.ts b/packages/angular_devkit/build_angular/src/webpack/configs/test.ts index ab89bb017d2b..a25983a7ec84 100644 --- a/packages/angular_devkit/build_angular/src/webpack/configs/test.ts +++ b/packages/angular_devkit/build_angular/src/webpack/configs/test.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import * as glob from 'glob'; import * as path from 'path'; import * as webpack from 'webpack'; diff --git a/packages/angular_devkit/build_angular/src/webpack/configs/typescript.ts b/packages/angular_devkit/build_angular/src/webpack/configs/typescript.ts index 1554588acaa6..4262fdedcc02 100644 --- a/packages/angular_devkit/build_angular/src/webpack/configs/typescript.ts +++ b/packages/angular_devkit/build_angular/src/webpack/configs/typescript.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { getSystemPath } from '@angular-devkit/core'; import { CompilerOptions } from '@angular/compiler-cli'; import { AngularWebpackLoaderPath, AngularWebpackPlugin } from '@ngtools/webpack'; diff --git a/packages/angular_devkit/build_angular/src/webpack/configs/worker.ts b/packages/angular_devkit/build_angular/src/webpack/configs/worker.ts index 96145c4d21fb..fb60b4f1df44 100644 --- a/packages/angular_devkit/build_angular/src/webpack/configs/worker.ts +++ b/packages/angular_devkit/build_angular/src/webpack/configs/worker.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { resolve } from 'path'; import { Configuration } from 'webpack'; import { WebpackConfigOptions } from '../../utils/build-options'; diff --git a/packages/angular_devkit/build_angular/src/webpack/es5-jit-polyfills.js b/packages/angular_devkit/build_angular/src/webpack/es5-jit-polyfills.js index febcbb5329c9..43d7cc718aed 100644 --- a/packages/angular_devkit/build_angular/src/webpack/es5-jit-polyfills.js +++ b/packages/angular_devkit/build_angular/src/webpack/es5-jit-polyfills.js @@ -1,8 +1,9 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import 'core-js/es/reflect'; diff --git a/packages/angular_devkit/build_angular/src/webpack/es5-polyfills.js b/packages/angular_devkit/build_angular/src/webpack/es5-polyfills.js index caa670e6268e..5b57b1e86960 100644 --- a/packages/angular_devkit/build_angular/src/webpack/es5-polyfills.js +++ b/packages/angular_devkit/build_angular/src/webpack/es5-polyfills.js @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - // ES2015 symbol capabilities import 'core-js/es/symbol'; @@ -114,4 +113,4 @@ import 'core-js/modules/es.json.to-string-tag'; import 'regenerator-runtime/runtime'; // Zone.js -import 'zone.js/plugins/zone-legacy'; \ No newline at end of file +import 'zone.js/plugins/zone-legacy'; diff --git a/packages/angular_devkit/build_angular/src/webpack/jit-polyfills.js b/packages/angular_devkit/build_angular/src/webpack/jit-polyfills.js index b57ee9bd423a..5df753e031d4 100644 --- a/packages/angular_devkit/build_angular/src/webpack/jit-polyfills.js +++ b/packages/angular_devkit/build_angular/src/webpack/jit-polyfills.js @@ -1,8 +1,9 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import 'core-js/proposals/reflect-metadata'; diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/analytics.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/analytics.ts index 6bd22c04bc8d..d0bc5256166f 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/analytics.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/analytics.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { analytics } from '@angular-devkit/core'; import { Compilation, Compiler, Module, NormalModule, Stats } from 'webpack'; diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/analytics_spec.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/analytics_spec.ts index e0266f68bdee..d5ebdaba0b30 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/analytics_spec.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/analytics_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { countOccurrences } from './analytics'; diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/any-component-style-budget-checker.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/any-component-style-budget-checker.ts index 32c3d863132f..093fb06b8bf7 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/any-component-style-budget-checker.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/any-component-style-budget-checker.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import * as path from 'path'; import { Compilation, Compiler } from 'webpack'; import { Budget, Type } from '../../browser/schema'; diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/builder-watch-plugin.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/builder-watch-plugin.ts index 3d9a41b70553..1e75cffb6512 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/builder-watch-plugin.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/builder-watch-plugin.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Compiler } from 'webpack'; export type BuilderWatcherCallback = ( diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/common-js-usage-warn-plugin.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/common-js-usage-warn-plugin.ts index 46b6ef783205..222c0d9f3446 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/common-js-usage-warn-plugin.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/common-js-usage-warn-plugin.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { isAbsolute } from 'path'; import { Compilation, Compiler, Dependency, Module, NormalModule } from 'webpack'; import { addWarning } from '../../utils/webpack-diagnostics'; diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/dedupe-module-resolve-plugin.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/dedupe-module-resolve-plugin.ts index 144520906f4b..86386dcaf28d 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/dedupe-module-resolve-plugin.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/dedupe-module-resolve-plugin.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Compiler } from 'webpack'; import { addWarning } from '../../utils/webpack-diagnostics'; diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/hmr/hmr-accept.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/hmr/hmr-accept.ts index 10aee6b52427..c46e33d9c40d 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/hmr/hmr-accept.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/hmr/hmr-accept.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - // tslint:disable-next-line: no-implicit-dependencies import { ApplicationRef, PlatformRef, Type, isDevMode, ɵresetCompiledComponents } from '@angular/core'; import { filter, take } from 'rxjs/operators'; diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/hmr/hmr-loader.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/hmr/hmr-loader.ts index cc7b813c5809..417c5cec2007 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/hmr/hmr-loader.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/hmr/hmr-loader.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { join } from 'path'; export const HmrLoader = __filename; diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/index-html-webpack-plugin.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/index-html-webpack-plugin.ts index 0bf19d407a1c..ca966e2b9a17 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/index-html-webpack-plugin.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/index-html-webpack-plugin.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { basename, dirname, extname } from 'path'; import { Compilation, Compiler, sources } from 'webpack'; import { FileInfo } from '../../utils/index-file/augment-index-html'; diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/index.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/index.ts index 802f415ff460..3b701aeba3af 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/index.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/index.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - // Exports the webpack plugins we use internally. export { AnyComponentStyleBudgetChecker } from './any-component-style-budget-checker'; export { OptimizeCssWebpackPlugin, OptimizeCssWebpackPluginOptions } from './optimize-css-webpack-plugin'; diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/karma/karma.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/karma/karma.ts index bad75b62559f..bfcf1d2b6420 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/karma/karma.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/karma/karma.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable // TODO: cleanup this file, it's copied as is from Angular CLI. import * as http from 'http'; diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/optimize-css-webpack-plugin.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/optimize-css-webpack-plugin.ts index 9c7d51368927..5e0cbd4e6839 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/optimize-css-webpack-plugin.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/optimize-css-webpack-plugin.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as cssNano from 'cssnano'; import { ProcessOptions, Result } from 'postcss'; import { Compilation, Compiler, sources } from 'webpack'; diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/postcss-cli-resources.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/postcss-cli-resources.ts index 9294fde4ea65..f12ec4f47bf0 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/postcss-cli-resources.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/postcss-cli-resources.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { interpolateName } from 'loader-utils'; import * as path from 'path'; import { Declaration, Plugin } from 'postcss'; diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/remove-hash-plugin.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/remove-hash-plugin.ts index b1fcee81627d..cf4e675ce5a5 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/remove-hash-plugin.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/remove-hash-plugin.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Compiler } from 'webpack'; import { HashFormat } from '../utils/helpers'; diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/scripts-webpack-plugin.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/scripts-webpack-plugin.ts index 294fbb7c168d..76b579c5d2b2 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/scripts-webpack-plugin.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/scripts-webpack-plugin.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { interpolateName } from 'loader-utils'; import * as path from 'path'; import { Chunk, Compilation, Compiler, sources as webpackSources } from 'webpack'; diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/single-test-transform.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/single-test-transform.ts index da69e3bba2d5..e99060fd6129 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/single-test-transform.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/single-test-transform.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { logging, tags } from '@angular-devkit/core'; import { getOptions } from 'loader-utils'; import { extname } from 'path'; diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/suppress-entry-chunks-webpack-plugin.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/suppress-entry-chunks-webpack-plugin.ts index a0a2617ad6d8..5658f9659fd1 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/suppress-entry-chunks-webpack-plugin.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/suppress-entry-chunks-webpack-plugin.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - /** * Remove .js files from entry points consisting entirely of stylesheets. * To be used together with mini-css-extract-plugin. diff --git a/packages/angular_devkit/build_angular/src/webpack/utils/async-chunks.ts b/packages/angular_devkit/build_angular/src/webpack/utils/async-chunks.ts index 73186b22b123..ab216f968b9c 100644 --- a/packages/angular_devkit/build_angular/src/webpack/utils/async-chunks.ts +++ b/packages/angular_devkit/build_angular/src/webpack/utils/async-chunks.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { StatsChunk, StatsCompilation } from 'webpack'; import { NormalizedEntryPoint } from './helpers'; diff --git a/packages/angular_devkit/build_angular/src/webpack/utils/async-chunks_spec.ts b/packages/angular_devkit/build_angular/src/webpack/utils/async-chunks_spec.ts index 2b7eaee389c4..248aadc93fdb 100644 --- a/packages/angular_devkit/build_angular/src/webpack/utils/async-chunks_spec.ts +++ b/packages/angular_devkit/build_angular/src/webpack/utils/async-chunks_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as webpack from 'webpack'; import { markAsyncChunksNonInitial } from './async-chunks'; diff --git a/packages/angular_devkit/build_angular/src/webpack/utils/helpers.ts b/packages/angular_devkit/build_angular/src/webpack/utils/helpers.ts index e133a495dd91..1ddd609832b4 100644 --- a/packages/angular_devkit/build_angular/src/webpack/utils/helpers.ts +++ b/packages/angular_devkit/build_angular/src/webpack/utils/helpers.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { basename, normalize } from '@angular-devkit/core'; import * as path from 'path'; import { ScriptTarget } from 'typescript'; diff --git a/packages/angular_devkit/build_angular/src/webpack/utils/stats.ts b/packages/angular_devkit/build_angular/src/webpack/utils/stats.ts index e00571debd33..8a5f89f651af 100644 --- a/packages/angular_devkit/build_angular/src/webpack/utils/stats.ts +++ b/packages/angular_devkit/build_angular/src/webpack/utils/stats.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { WebpackLoggingCallback } from '@angular-devkit/build-webpack'; import { logging, tags } from '@angular-devkit/core'; import * as path from 'path'; diff --git a/packages/angular_devkit/build_angular/test/hello-world-app/e2e/app.e2e-spec.ts b/packages/angular_devkit/build_angular/test/hello-world-app/e2e/app.e2e-spec.ts index 390560bd37dc..6cfa9f72cb21 100644 --- a/packages/angular_devkit/build_angular/test/hello-world-app/e2e/app.e2e-spec.ts +++ b/packages/angular_devkit/build_angular/test/hello-world-app/e2e/app.e2e-spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { AppPage } from './app.po'; describe('hello-world-app App', () => { diff --git a/packages/angular_devkit/build_angular/test/hello-world-app/e2e/app.po.ts b/packages/angular_devkit/build_angular/test/hello-world-app/e2e/app.po.ts index a38be4b23cde..dcbf96793adc 100644 --- a/packages/angular_devkit/build_angular/test/hello-world-app/e2e/app.po.ts +++ b/packages/angular_devkit/build_angular/test/hello-world-app/e2e/app.po.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { browser, by, element } from 'protractor'; export class AppPage { diff --git a/packages/angular_devkit/build_angular/test/hello-world-app/karma.conf.js b/packages/angular_devkit/build_angular/test/hello-world-app/karma.conf.js index 1b6b10b70e7c..9e0431095e65 100644 --- a/packages/angular_devkit/build_angular/test/hello-world-app/karma.conf.js +++ b/packages/angular_devkit/build_angular/test/hello-world-app/karma.conf.js @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html diff --git a/packages/angular_devkit/build_angular/test/hello-world-app/protractor.conf.js b/packages/angular_devkit/build_angular/test/hello-world-app/protractor.conf.js index 58a5d0170c76..9b57663994c9 100644 --- a/packages/angular_devkit/build_angular/test/hello-world-app/protractor.conf.js +++ b/packages/angular_devkit/build_angular/test/hello-world-app/protractor.conf.js @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // Protractor configuration file, see link for more information // https://github.com/angular/protractor/blob/master/lib/config.ts diff --git a/packages/angular_devkit/build_angular/test/hello-world-app/src/app/app.component.spec.ts b/packages/angular_devkit/build_angular/test/hello-world-app/src/app/app.component.spec.ts index d3dde56aacc1..56f6ecbf22fa 100644 --- a/packages/angular_devkit/build_angular/test/hello-world-app/src/app/app.component.spec.ts +++ b/packages/angular_devkit/build_angular/test/hello-world-app/src/app/app.component.spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { TestBed } from '@angular/core/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { diff --git a/packages/angular_devkit/build_angular/test/hello-world-app/src/app/app.component.ts b/packages/angular_devkit/build_angular/test/hello-world-app/src/app/app.component.ts index 7ea162bf0946..aef2940f181f 100644 --- a/packages/angular_devkit/build_angular/test/hello-world-app/src/app/app.component.ts +++ b/packages/angular_devkit/build_angular/test/hello-world-app/src/app/app.component.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Component } from '@angular/core'; @Component({ diff --git a/packages/angular_devkit/build_angular/test/hello-world-app/src/app/app.module.ts b/packages/angular_devkit/build_angular/test/hello-world-app/src/app/app.module.ts index c61881ebb3eb..09f4f6fa82bd 100644 --- a/packages/angular_devkit/build_angular/test/hello-world-app/src/app/app.module.ts +++ b/packages/angular_devkit/build_angular/test/hello-world-app/src/app/app.module.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; diff --git a/packages/angular_devkit/build_angular/test/hello-world-app/src/app/app.server.module.ts b/packages/angular_devkit/build_angular/test/hello-world-app/src/app/app.server.module.ts index bb56e2795c22..cddaa2d485ce 100644 --- a/packages/angular_devkit/build_angular/test/hello-world-app/src/app/app.server.module.ts +++ b/packages/angular_devkit/build_angular/test/hello-world-app/src/app/app.server.module.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { NgModule } from '@angular/core'; import { ServerModule } from '@angular/platform-server'; diff --git a/packages/angular_devkit/build_angular/test/hello-world-app/src/environments/environment.prod.ts b/packages/angular_devkit/build_angular/test/hello-world-app/src/environments/environment.prod.ts index 585b70e8c518..e0818f2e9056 100644 --- a/packages/angular_devkit/build_angular/test/hello-world-app/src/environments/environment.prod.ts +++ b/packages/angular_devkit/build_angular/test/hello-world-app/src/environments/environment.prod.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export const environment = { production: true, }; diff --git a/packages/angular_devkit/build_angular/test/hello-world-app/src/environments/environment.ts b/packages/angular_devkit/build_angular/test/hello-world-app/src/environments/environment.ts index 7a2b5a1e7ce5..a922b2b6e660 100644 --- a/packages/angular_devkit/build_angular/test/hello-world-app/src/environments/environment.ts +++ b/packages/angular_devkit/build_angular/test/hello-world-app/src/environments/environment.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // The file contents for the current environment will overwrite these during build. // The build system defaults to the dev environment which uses `environment.ts`, but if you do // `ng build --env=prod` then `environment.prod.ts` will be used instead. diff --git a/packages/angular_devkit/build_angular/test/hello-world-app/src/main.server.ts b/packages/angular_devkit/build_angular/test/hello-world-app/src/main.server.ts index 340dffcdf657..385a12d1a665 100644 --- a/packages/angular_devkit/build_angular/test/hello-world-app/src/main.server.ts +++ b/packages/angular_devkit/build_angular/test/hello-world-app/src/main.server.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import '@angular/localize/init'; import { enableProdMode } from '@angular/core'; diff --git a/packages/angular_devkit/build_angular/test/hello-world-app/src/main.ts b/packages/angular_devkit/build_angular/test/hello-world-app/src/main.ts index cb8269cc1ad4..fdde6bed1f3f 100644 --- a/packages/angular_devkit/build_angular/test/hello-world-app/src/main.ts +++ b/packages/angular_devkit/build_angular/test/hello-world-app/src/main.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { enableProdMode } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; diff --git a/packages/angular_devkit/build_angular/test/hello-world-app/src/polyfills.ts b/packages/angular_devkit/build_angular/test/hello-world-app/src/polyfills.ts index 345f7b9d8005..eb6530df1887 100644 --- a/packages/angular_devkit/build_angular/test/hello-world-app/src/polyfills.ts +++ b/packages/angular_devkit/build_angular/test/hello-world-app/src/polyfills.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + /** * This file includes polyfills needed by Angular and is loaded before the app. * You can add your own extra polyfills to this file. diff --git a/packages/angular_devkit/build_angular/test/hello-world-app/src/test.ts b/packages/angular_devkit/build_angular/test/hello-world-app/src/test.ts index 6355082bbf2a..8a8bf0e3bc49 100644 --- a/packages/angular_devkit/build_angular/test/hello-world-app/src/test.ts +++ b/packages/angular_devkit/build_angular/test/hello-world-app/src/test.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // This file is required by karma.conf.js and loads recursively all the .spec and framework files import 'zone.js/testing'; diff --git a/packages/angular_devkit/build_angular/test/hello-world-app/src/typings.d.ts b/packages/angular_devkit/build_angular/test/hello-world-app/src/typings.d.ts index fe59b01a3b02..9ba8f77b9c67 100644 --- a/packages/angular_devkit/build_angular/test/hello-world-app/src/typings.d.ts +++ b/packages/angular_devkit/build_angular/test/hello-world-app/src/typings.d.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + /* SystemJS module definition */ declare var module: NodeModule; interface NodeModule { diff --git a/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/karma.conf.js b/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/karma.conf.js index 80b89d8439ac..a0e81b921f61 100644 --- a/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/karma.conf.js +++ b/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/karma.conf.js @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html diff --git a/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/lib/lib.component.spec.ts b/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/lib/lib.component.spec.ts index 2694b8dea5a2..3757410c6510 100644 --- a/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/lib/lib.component.spec.ts +++ b/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/lib/lib.component.spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { ComponentFixture, TestBed } from '@angular/core/testing'; import { LibComponent } from './lib.component'; diff --git a/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/lib/lib.component.ts b/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/lib/lib.component.ts index 3fcbd0a37c78..345514700ee8 100644 --- a/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/lib/lib.component.ts +++ b/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/lib/lib.component.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Component, OnInit } from '@angular/core'; @Component({ diff --git a/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/lib/lib.module.ts b/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/lib/lib.module.ts index 4db2feed5ae3..22f2b46c3e66 100644 --- a/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/lib/lib.module.ts +++ b/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/lib/lib.module.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { NgModule } from '@angular/core'; import { LibComponent } from './lib.component'; import { LibService } from './lib.service'; diff --git a/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/lib/lib.service.spec.ts b/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/lib/lib.service.spec.ts index a808deee36e3..480f827b6999 100644 --- a/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/lib/lib.service.spec.ts +++ b/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/lib/lib.service.spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { TestBed, inject } from '@angular/core/testing'; import { LibService } from './lib.service'; diff --git a/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/lib/lib.service.ts b/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/lib/lib.service.ts index e8be2fbdc25e..c4745e811a63 100644 --- a/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/lib/lib.service.ts +++ b/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/lib/lib.service.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Injectable } from '@angular/core'; @Injectable() diff --git a/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/public-api.ts b/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/public-api.ts index d3a2dc0db030..8b8ca08454c2 100644 --- a/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/public-api.ts +++ b/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/public-api.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + /* * Public API Surface of lib */ diff --git a/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/test.ts b/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/test.ts index 798ae95022a0..1b0764875268 100644 --- a/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/test.ts +++ b/packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/src/test.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // This file is required by karma.conf.js and loads recursively all the .spec and framework files import 'zone.js'; diff --git a/packages/angular_devkit/build_optimizer/src/_golden-api.ts b/packages/angular_devkit/build_optimizer/src/_golden-api.ts index 06e63e7a2c84..65ddeea15a51 100644 --- a/packages/angular_devkit/build_optimizer/src/_golden-api.ts +++ b/packages/angular_devkit/build_optimizer/src/_golden-api.ts @@ -1,9 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export * from './index'; export { default } from './build-optimizer/webpack-loader'; diff --git a/packages/angular_devkit/build_optimizer/src/build-optimizer/build-optimizer.ts b/packages/angular_devkit/build_optimizer/src/build-optimizer/build-optimizer.ts index d1e79fc67abf..d006c5c1983e 100644 --- a/packages/angular_devkit/build_optimizer/src/build-optimizer/build-optimizer.ts +++ b/packages/angular_devkit/build_optimizer/src/build-optimizer/build-optimizer.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { readFileSync } from 'fs'; import { TransformJavascriptOptions, diff --git a/packages/angular_devkit/build_optimizer/src/build-optimizer/build-optimizer_spec.ts b/packages/angular_devkit/build_optimizer/src/build-optimizer/build-optimizer_spec.ts index e86217806082..4793bb9c0742 100644 --- a/packages/angular_devkit/build_optimizer/src/build-optimizer/build-optimizer_spec.ts +++ b/packages/angular_devkit/build_optimizer/src/build-optimizer/build-optimizer_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-big-function // tslint:disable-next-line:no-implicit-dependencies import { tags } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/build_optimizer/src/build-optimizer/cli.ts b/packages/angular_devkit/build_optimizer/src/build-optimizer/cli.ts index f09f53defddc..5e0579a9c868 100644 --- a/packages/angular_devkit/build_optimizer/src/build-optimizer/cli.ts +++ b/packages/angular_devkit/build_optimizer/src/build-optimizer/cli.ts @@ -1,11 +1,12 @@ #!/usr/bin/env node /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { writeFileSync } from 'fs'; import { join } from 'path'; import { buildOptimizer } from './build-optimizer'; diff --git a/packages/angular_devkit/build_optimizer/src/build-optimizer/rollup-plugin.ts b/packages/angular_devkit/build_optimizer/src/build-optimizer/rollup-plugin.ts index cb661c66abbe..9e3e784b2f34 100644 --- a/packages/angular_devkit/build_optimizer/src/build-optimizer/rollup-plugin.ts +++ b/packages/angular_devkit/build_optimizer/src/build-optimizer/rollup-plugin.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - /** * @fileoverview This adapts the buildOptimizer to run over each file as it is * processed by Rollup. We must do this since buildOptimizer expects to see the diff --git a/packages/angular_devkit/build_optimizer/src/build-optimizer/webpack-loader.ts b/packages/angular_devkit/build_optimizer/src/build-optimizer/webpack-loader.ts index 1fc6fcdb423c..e8ea09bfd342 100644 --- a/packages/angular_devkit/build_optimizer/src/build-optimizer/webpack-loader.ts +++ b/packages/angular_devkit/build_optimizer/src/build-optimizer/webpack-loader.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { RawSourceMap } from 'source-map'; import { sources } from 'webpack'; import { buildOptimizer } from './build-optimizer'; diff --git a/packages/angular_devkit/build_optimizer/src/build-optimizer/webpack-plugin.ts b/packages/angular_devkit/build_optimizer/src/build-optimizer/webpack-plugin.ts index 29aa1ffbbc7f..06e6528c002a 100644 --- a/packages/angular_devkit/build_optimizer/src/build-optimizer/webpack-plugin.ts +++ b/packages/angular_devkit/build_optimizer/src/build-optimizer/webpack-plugin.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import type { Compiler, Module } from 'webpack'; interface ModuleData { diff --git a/packages/angular_devkit/build_optimizer/src/helpers/ast-utils.ts b/packages/angular_devkit/build_optimizer/src/helpers/ast-utils.ts index d035dda72612..65da2487601d 100644 --- a/packages/angular_devkit/build_optimizer/src/helpers/ast-utils.ts +++ b/packages/angular_devkit/build_optimizer/src/helpers/ast-utils.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as tslib from 'tslib'; import * as ts from 'typescript'; diff --git a/packages/angular_devkit/build_optimizer/src/helpers/transform-javascript.ts b/packages/angular_devkit/build_optimizer/src/helpers/transform-javascript.ts index 91628bee2acf..f7554feb0a93 100644 --- a/packages/angular_devkit/build_optimizer/src/helpers/transform-javascript.ts +++ b/packages/angular_devkit/build_optimizer/src/helpers/transform-javascript.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { RawSourceMap } from 'source-map'; import * as ts from 'typescript'; diff --git a/packages/angular_devkit/build_optimizer/src/index.ts b/packages/angular_devkit/build_optimizer/src/index.ts index 4d4c11ab9c79..56c257a3a78a 100644 --- a/packages/angular_devkit/build_optimizer/src/index.ts +++ b/packages/angular_devkit/build_optimizer/src/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as ts from 'typescript'; import { createScrubFileTransformerFactory } from './transforms/scrub-file'; diff --git a/packages/angular_devkit/build_optimizer/src/transforms/prefix-classes.ts b/packages/angular_devkit/build_optimizer/src/transforms/prefix-classes.ts index 77d01ab12491..1f8d36424a63 100644 --- a/packages/angular_devkit/build_optimizer/src/transforms/prefix-classes.ts +++ b/packages/angular_devkit/build_optimizer/src/transforms/prefix-classes.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as ts from 'typescript'; import { addPureComment } from '../helpers/ast-utils'; diff --git a/packages/angular_devkit/build_optimizer/src/transforms/prefix-classes_spec.ts b/packages/angular_devkit/build_optimizer/src/transforms/prefix-classes_spec.ts index 21149b28bf00..5c52e21d9b86 100644 --- a/packages/angular_devkit/build_optimizer/src/transforms/prefix-classes_spec.ts +++ b/packages/angular_devkit/build_optimizer/src/transforms/prefix-classes_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-big-function // tslint:disable-next-line:no-implicit-dependencies import { tags } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/build_optimizer/src/transforms/prefix-functions.ts b/packages/angular_devkit/build_optimizer/src/transforms/prefix-functions.ts index d058047284f9..2de77060952b 100644 --- a/packages/angular_devkit/build_optimizer/src/transforms/prefix-functions.ts +++ b/packages/angular_devkit/build_optimizer/src/transforms/prefix-functions.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as ts from 'typescript'; import { addPureComment, getCleanHelperName, hasPureComment } from '../helpers/ast-utils'; diff --git a/packages/angular_devkit/build_optimizer/src/transforms/prefix-functions_spec.ts b/packages/angular_devkit/build_optimizer/src/transforms/prefix-functions_spec.ts index ec7bb8fd0fdd..bcc04556de7b 100644 --- a/packages/angular_devkit/build_optimizer/src/transforms/prefix-functions_spec.ts +++ b/packages/angular_devkit/build_optimizer/src/transforms/prefix-functions_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable-next-line:no-implicit-dependencies import { tags } from '@angular-devkit/core'; import { transformJavascript } from '../helpers/transform-javascript'; diff --git a/packages/angular_devkit/build_optimizer/src/transforms/scrub-file.ts b/packages/angular_devkit/build_optimizer/src/transforms/scrub-file.ts index afdbdee7ad01..1239bd70a1e5 100644 --- a/packages/angular_devkit/build_optimizer/src/transforms/scrub-file.ts +++ b/packages/angular_devkit/build_optimizer/src/transforms/scrub-file.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as ts from 'typescript'; import { collectDeepNodes } from '../helpers/ast-utils'; diff --git a/packages/angular_devkit/build_optimizer/src/transforms/scrub-file_spec.ts b/packages/angular_devkit/build_optimizer/src/transforms/scrub-file_spec.ts index 80c045ef430c..2001a16f0015 100644 --- a/packages/angular_devkit/build_optimizer/src/transforms/scrub-file_spec.ts +++ b/packages/angular_devkit/build_optimizer/src/transforms/scrub-file_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-big-function // tslint:disable-next-line:no-implicit-dependencies import { tags } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/build_optimizer/src/transforms/wrap-enums.ts b/packages/angular_devkit/build_optimizer/src/transforms/wrap-enums.ts index 2105cc6b6186..550b29f2655a 100644 --- a/packages/angular_devkit/build_optimizer/src/transforms/wrap-enums.ts +++ b/packages/angular_devkit/build_optimizer/src/transforms/wrap-enums.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as ts from 'typescript'; import { addPureComment } from '../helpers/ast-utils'; diff --git a/packages/angular_devkit/build_optimizer/src/transforms/wrap-enums_spec.ts b/packages/angular_devkit/build_optimizer/src/transforms/wrap-enums_spec.ts index 0789b1c5643b..8d7e492f8c41 100644 --- a/packages/angular_devkit/build_optimizer/src/transforms/wrap-enums_spec.ts +++ b/packages/angular_devkit/build_optimizer/src/transforms/wrap-enums_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable-next-line:no-implicit-dependencies import { tags } from '@angular-devkit/core'; import { transformJavascript } from '../helpers/transform-javascript'; diff --git a/packages/angular_devkit/build_webpack/src/index.ts b/packages/angular_devkit/build_webpack/src/index.ts index fbd92d0eb827..107e3c99d535 100644 --- a/packages/angular_devkit/build_webpack/src/index.ts +++ b/packages/angular_devkit/build_webpack/src/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export * from './webpack'; export * from './webpack-dev-server'; export { EmittedFiles } from './utils'; diff --git a/packages/angular_devkit/build_webpack/src/utils.ts b/packages/angular_devkit/build_webpack/src/utils.ts index 64609278b0ac..f8cda1df1975 100644 --- a/packages/angular_devkit/build_webpack/src/utils.ts +++ b/packages/angular_devkit/build_webpack/src/utils.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import * as path from 'path'; import * as webpack from 'webpack'; diff --git a/packages/angular_devkit/build_webpack/src/webpack-dev-server/index.ts b/packages/angular_devkit/build_webpack/src/webpack-dev-server/index.ts index 5a02f9a71149..2444526a0886 100644 --- a/packages/angular_devkit/build_webpack/src/webpack-dev-server/index.ts +++ b/packages/angular_devkit/build_webpack/src/webpack-dev-server/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BuilderContext, createBuilder } from '@angular-devkit/architect'; import * as net from 'net'; import { resolve as pathResolve } from 'path'; diff --git a/packages/angular_devkit/build_webpack/src/webpack-dev-server/index_spec.ts b/packages/angular_devkit/build_webpack/src/webpack-dev-server/index_spec.ts index c8294fd0f1f5..a1e8a4eb61a9 100644 --- a/packages/angular_devkit/build_webpack/src/webpack-dev-server/index_spec.ts +++ b/packages/angular_devkit/build_webpack/src/webpack-dev-server/index_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect } from '@angular-devkit/architect'; import { WorkspaceNodeModulesArchitectHost } from '@angular-devkit/architect/node'; import { TestingArchitectHost } from '@angular-devkit/architect/testing'; diff --git a/packages/angular_devkit/build_webpack/src/webpack/index.ts b/packages/angular_devkit/build_webpack/src/webpack/index.ts index 0f99f565be37..c6afe18613b8 100644 --- a/packages/angular_devkit/build_webpack/src/webpack/index.ts +++ b/packages/angular_devkit/build_webpack/src/webpack/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BuilderContext, BuilderOutput, createBuilder } from '@angular-devkit/architect'; import { resolve as pathResolve } from 'path'; import { Observable, from, isObservable, of } from 'rxjs'; diff --git a/packages/angular_devkit/build_webpack/src/webpack/index_spec.ts b/packages/angular_devkit/build_webpack/src/webpack/index_spec.ts index 537e36729ee4..6dd90ccba9d7 100644 --- a/packages/angular_devkit/build_webpack/src/webpack/index_spec.ts +++ b/packages/angular_devkit/build_webpack/src/webpack/index_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Architect } from '@angular-devkit/architect'; import { WorkspaceNodeModulesArchitectHost } from '@angular-devkit/architect/node'; import { TestingArchitectHost } from '@angular-devkit/architect/testing'; diff --git a/packages/angular_devkit/build_webpack/test/angular-app/src/app/app.component.spec.ts b/packages/angular_devkit/build_webpack/test/angular-app/src/app/app.component.spec.ts index 869493ff9aeb..b2b7679f8448 100644 --- a/packages/angular_devkit/build_webpack/test/angular-app/src/app/app.component.spec.ts +++ b/packages/angular_devkit/build_webpack/test/angular-app/src/app/app.component.spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { TestBed } from '@angular/core/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { diff --git a/packages/angular_devkit/build_webpack/test/angular-app/src/app/app.component.ts b/packages/angular_devkit/build_webpack/test/angular-app/src/app/app.component.ts index 8366380cf61a..9e92a9098730 100644 --- a/packages/angular_devkit/build_webpack/test/angular-app/src/app/app.component.ts +++ b/packages/angular_devkit/build_webpack/test/angular-app/src/app/app.component.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Component } from '@angular/core'; @Component({ diff --git a/packages/angular_devkit/build_webpack/test/angular-app/src/app/app.module.ts b/packages/angular_devkit/build_webpack/test/angular-app/src/app/app.module.ts index c61881ebb3eb..09f4f6fa82bd 100644 --- a/packages/angular_devkit/build_webpack/test/angular-app/src/app/app.module.ts +++ b/packages/angular_devkit/build_webpack/test/angular-app/src/app/app.module.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; diff --git a/packages/angular_devkit/build_webpack/test/angular-app/src/environments/environment.prod.ts b/packages/angular_devkit/build_webpack/test/angular-app/src/environments/environment.prod.ts index fac764c6d237..b4f04f0ca8c4 100644 --- a/packages/angular_devkit/build_webpack/test/angular-app/src/environments/environment.prod.ts +++ b/packages/angular_devkit/build_webpack/test/angular-app/src/environments/environment.prod.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export const environment = { production: true }; diff --git a/packages/angular_devkit/build_webpack/test/angular-app/src/environments/environment.ts b/packages/angular_devkit/build_webpack/test/angular-app/src/environments/environment.ts index a3fe55067a9c..e57b1ed2e986 100644 --- a/packages/angular_devkit/build_webpack/test/angular-app/src/environments/environment.ts +++ b/packages/angular_devkit/build_webpack/test/angular-app/src/environments/environment.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // The file contents for the current environment will overwrite these during build. // The build system defaults to the dev environment which uses `environment.ts`, but if you do // `ng build --env=prod` then `environment.prod.ts` will be used instead. diff --git a/packages/angular_devkit/build_webpack/test/angular-app/src/main.ts b/packages/angular_devkit/build_webpack/test/angular-app/src/main.ts index 3d8f375e6f4f..6375df6261b6 100644 --- a/packages/angular_devkit/build_webpack/test/angular-app/src/main.ts +++ b/packages/angular_devkit/build_webpack/test/angular-app/src/main.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { enableProdMode } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; diff --git a/packages/angular_devkit/build_webpack/test/angular-app/src/polyfills.ts b/packages/angular_devkit/build_webpack/test/angular-app/src/polyfills.ts index 1b2d66b61857..59c1c787f88c 100644 --- a/packages/angular_devkit/build_webpack/test/angular-app/src/polyfills.ts +++ b/packages/angular_devkit/build_webpack/test/angular-app/src/polyfills.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + /** * This file includes polyfills needed by Angular and is loaded before the app. * You can add your own extra polyfills to this file. diff --git a/packages/angular_devkit/core/node/_golden-api.ts b/packages/angular_devkit/core/node/_golden-api.ts index 1e8277d996a8..d9d3254e32e6 100644 --- a/packages/angular_devkit/core/node/_golden-api.ts +++ b/packages/angular_devkit/core/node/_golden-api.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - // Start experimental namespace // Start jobs namespace export * from './experimental/jobs/job-registry'; diff --git a/packages/angular_devkit/core/node/cli-logger.ts b/packages/angular_devkit/core/node/cli-logger.ts index 07cb5ef39aa9..aac8b779e0c3 100644 --- a/packages/angular_devkit/core/node/cli-logger.ts +++ b/packages/angular_devkit/core/node/cli-logger.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { filter } from 'rxjs/operators'; import { logging } from '../src'; diff --git a/packages/angular_devkit/core/node/experimental/index.ts b/packages/angular_devkit/core/node/experimental/index.ts index 012ac72a4ae5..6f6300c76aa9 100644 --- a/packages/angular_devkit/core/node/experimental/index.ts +++ b/packages/angular_devkit/core/node/experimental/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as jobs from './jobs'; export { diff --git a/packages/angular_devkit/core/node/experimental/jobs/index.ts b/packages/angular_devkit/core/node/experimental/jobs/index.ts index d931a0289414..1038877cd091 100644 --- a/packages/angular_devkit/core/node/experimental/jobs/index.ts +++ b/packages/angular_devkit/core/node/experimental/jobs/index.ts @@ -1,8 +1,9 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export * from './job-registry'; diff --git a/packages/angular_devkit/core/node/experimental/jobs/job-registry.ts b/packages/angular_devkit/core/node/experimental/jobs/job-registry.ts index 6c60ef8c5069..b5a9c239110c 100644 --- a/packages/angular_devkit/core/node/experimental/jobs/job-registry.ts +++ b/packages/angular_devkit/core/node/experimental/jobs/job-registry.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Observable, of } from 'rxjs'; import { JsonValue, experimental as core_experimental, schema } from '../../../src'; diff --git a/packages/angular_devkit/core/node/experimental/jobs/job-registry_spec.ts b/packages/angular_devkit/core/node/experimental/jobs/job-registry_spec.ts index 2a46aa873995..dc219802dffe 100644 --- a/packages/angular_devkit/core/node/experimental/jobs/job-registry_spec.ts +++ b/packages/angular_devkit/core/node/experimental/jobs/job-registry_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as path from 'path'; import { experimental as core_experimental } from '../../../src'; import { NodeModuleJobRegistry } from './job-registry'; diff --git a/packages/angular_devkit/core/node/fs.ts b/packages/angular_devkit/core/node/fs.ts index a09048e9a87d..1eccf093eac9 100644 --- a/packages/angular_devkit/core/node/fs.ts +++ b/packages/angular_devkit/core/node/fs.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { statSync } from 'fs'; /** @deprecated Since v11.0, unused by the Angular tooling */ diff --git a/packages/angular_devkit/core/node/host.ts b/packages/angular_devkit/core/node/host.ts index 6a525e079827..3136fbd89ecd 100644 --- a/packages/angular_devkit/core/node/host.ts +++ b/packages/angular_devkit/core/node/host.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { PathLike, Stats, diff --git a/packages/angular_devkit/core/node/host_spec.ts b/packages/angular_devkit/core/node/host_spec.ts index 7ac9615b5db3..12d93c814fbe 100644 --- a/packages/angular_devkit/core/node/host_spec.ts +++ b/packages/angular_devkit/core/node/host_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-any // tslint:disable:no-non-null-assertion // tslint:disable:no-implicit-dependencies diff --git a/packages/angular_devkit/core/node/index.ts b/packages/angular_devkit/core/node/index.ts index 3f3e175f4315..cbe47df95016 100644 --- a/packages/angular_devkit/core/node/index.ts +++ b/packages/angular_devkit/core/node/index.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import * as experimental from './experimental/jobs/job-registry'; import * as fs from './fs'; export * from './cli-logger'; diff --git a/packages/angular_devkit/core/node/testing/index.ts b/packages/angular_devkit/core/node/testing/index.ts index d8a7dbea4c6b..3e4424e262a9 100644 --- a/packages/angular_devkit/core/node/testing/index.ts +++ b/packages/angular_devkit/core/node/testing/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as fs from 'fs'; import * as os from 'os'; import * as path from 'path'; diff --git a/packages/angular_devkit/core/src/_golden-api.ts b/packages/angular_devkit/core/src/_golden-api.ts index 0c8c1c52f68d..b3221a3b8ced 100644 --- a/packages/angular_devkit/core/src/_golden-api.ts +++ b/packages/angular_devkit/core/src/_golden-api.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - export * from './exception/exception'; // Start json namespace diff --git a/packages/angular_devkit/core/src/analytics/api.ts b/packages/angular_devkit/core/src/analytics/api.ts index f538d1ba088a..5bce57099418 100644 --- a/packages/angular_devkit/core/src/analytics/api.ts +++ b/packages/angular_devkit/core/src/analytics/api.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export interface CustomDimensionsAndMetricsOptions { dimensions?: (boolean | number | string)[]; metrics?: (boolean | number | string)[]; diff --git a/packages/angular_devkit/core/src/analytics/forwarder.ts b/packages/angular_devkit/core/src/analytics/forwarder.ts index 8c1ba6de6a92..50c50fa0a5a5 100644 --- a/packages/angular_devkit/core/src/analytics/forwarder.ts +++ b/packages/angular_devkit/core/src/analytics/forwarder.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { JsonObject } from '../json'; import { Analytics, EventOptions, PageviewOptions, ScreenviewOptions, TimingOptions } from './api'; diff --git a/packages/angular_devkit/core/src/analytics/index.ts b/packages/angular_devkit/core/src/analytics/index.ts index a6ca6c5f1c00..38c996be3914 100644 --- a/packages/angular_devkit/core/src/analytics/index.ts +++ b/packages/angular_devkit/core/src/analytics/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export * from './api'; export * from './forwarder'; export * from './logging'; diff --git a/packages/angular_devkit/core/src/analytics/logging.ts b/packages/angular_devkit/core/src/analytics/logging.ts index e19785727ffe..2811d8b47717 100644 --- a/packages/angular_devkit/core/src/analytics/logging.ts +++ b/packages/angular_devkit/core/src/analytics/logging.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Logger } from '../logger'; import { Analytics, EventOptions, PageviewOptions, ScreenviewOptions, TimingOptions } from './api'; diff --git a/packages/angular_devkit/core/src/analytics/multi.ts b/packages/angular_devkit/core/src/analytics/multi.ts index 141f0db38e0b..46ae1dc1eae9 100644 --- a/packages/angular_devkit/core/src/analytics/multi.ts +++ b/packages/angular_devkit/core/src/analytics/multi.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { Analytics, EventOptions, PageviewOptions, ScreenviewOptions, TimingOptions } from './api'; /** diff --git a/packages/angular_devkit/core/src/analytics/noop.ts b/packages/angular_devkit/core/src/analytics/noop.ts index a4592a75c174..f3eb07d39e27 100644 --- a/packages/angular_devkit/core/src/analytics/noop.ts +++ b/packages/angular_devkit/core/src/analytics/noop.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Analytics } from './api'; /** diff --git a/packages/angular_devkit/core/src/exception/exception.ts b/packages/angular_devkit/core/src/exception/exception.ts index 31dc67badb1a..11aa8dc7b9f4 100644 --- a/packages/angular_devkit/core/src/exception/exception.ts +++ b/packages/angular_devkit/core/src/exception/exception.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - export class BaseException extends Error { constructor(message = '') { super(message); diff --git a/packages/angular_devkit/core/src/exception/index.ts b/packages/angular_devkit/core/src/exception/index.ts index b335f36dcb1d..38889c9cb8e2 100644 --- a/packages/angular_devkit/core/src/exception/index.ts +++ b/packages/angular_devkit/core/src/exception/index.ts @@ -1,9 +1,8 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - export * from './exception'; diff --git a/packages/angular_devkit/core/src/experimental.ts b/packages/angular_devkit/core/src/experimental.ts index 320138422f53..406e88c996c6 100644 --- a/packages/angular_devkit/core/src/experimental.ts +++ b/packages/angular_devkit/core/src/experimental.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as jobs from './experimental/jobs/index'; export { diff --git a/packages/angular_devkit/core/src/experimental/jobs/api.ts b/packages/angular_devkit/core/src/experimental/jobs/api.ts index 2a5297833cf8..efc8e8862efe 100644 --- a/packages/angular_devkit/core/src/experimental/jobs/api.ts +++ b/packages/angular_devkit/core/src/experimental/jobs/api.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Observable, Observer } from 'rxjs'; import { JsonObject, JsonValue, schema } from '../../json/index'; import { DeepReadonly } from '../../utils/index'; diff --git a/packages/angular_devkit/core/src/experimental/jobs/create-job-handler.ts b/packages/angular_devkit/core/src/experimental/jobs/create-job-handler.ts index 08f381dc081f..f6bd266e68c5 100644 --- a/packages/angular_devkit/core/src/experimental/jobs/create-job-handler.ts +++ b/packages/angular_devkit/core/src/experimental/jobs/create-job-handler.ts @@ -1,11 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - * */ + import { Observable, Observer, Subject, Subscription, from, isObservable, of } from 'rxjs'; import { switchMap, tap } from 'rxjs/operators'; import { BaseException } from '../../exception/index'; diff --git a/packages/angular_devkit/core/src/experimental/jobs/dispatcher.ts b/packages/angular_devkit/core/src/experimental/jobs/dispatcher.ts index c1dce056ed30..f120c28e0228 100644 --- a/packages/angular_devkit/core/src/experimental/jobs/dispatcher.ts +++ b/packages/angular_devkit/core/src/experimental/jobs/dispatcher.ts @@ -1,11 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license - * */ + import { JsonValue } from '../../json/index'; import { Readwrite } from '../../utils/index'; import { diff --git a/packages/angular_devkit/core/src/experimental/jobs/dispatcher_spec.ts b/packages/angular_devkit/core/src/experimental/jobs/dispatcher_spec.ts index 94a12cc53d07..86f121c791ec 100644 --- a/packages/angular_devkit/core/src/experimental/jobs/dispatcher_spec.ts +++ b/packages/angular_devkit/core/src/experimental/jobs/dispatcher_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { JsonValue } from '../../json'; import { JobHandler } from './api'; import { createJobHandler } from './create-job-handler'; diff --git a/packages/angular_devkit/core/src/experimental/jobs/exception.ts b/packages/angular_devkit/core/src/experimental/jobs/exception.ts index 0fcb761a978f..a439172917e7 100644 --- a/packages/angular_devkit/core/src/experimental/jobs/exception.ts +++ b/packages/angular_devkit/core/src/experimental/jobs/exception.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BaseException } from '../../exception/index'; import { JobName } from './api'; diff --git a/packages/angular_devkit/core/src/experimental/jobs/fallback-registry.ts b/packages/angular_devkit/core/src/experimental/jobs/fallback-registry.ts index 4d2fa84dd658..1d9fbf659e7a 100644 --- a/packages/angular_devkit/core/src/experimental/jobs/fallback-registry.ts +++ b/packages/angular_devkit/core/src/experimental/jobs/fallback-registry.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Observable, from } from 'rxjs'; import { concatMap, first } from 'rxjs/operators'; import { JsonValue } from '../../json'; diff --git a/packages/angular_devkit/core/src/experimental/jobs/index.ts b/packages/angular_devkit/core/src/experimental/jobs/index.ts index 70210cb22e9f..521078d6d0de 100644 --- a/packages/angular_devkit/core/src/experimental/jobs/index.ts +++ b/packages/angular_devkit/core/src/experimental/jobs/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export * from './api'; export * from './create-job-handler'; export * from './exception'; diff --git a/packages/angular_devkit/core/src/experimental/jobs/simple-registry.ts b/packages/angular_devkit/core/src/experimental/jobs/simple-registry.ts index e5594fd0a05d..92349b4d957f 100644 --- a/packages/angular_devkit/core/src/experimental/jobs/simple-registry.ts +++ b/packages/angular_devkit/core/src/experimental/jobs/simple-registry.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Observable, of } from 'rxjs'; import { JsonValue, schema } from '../../json'; import { JobDescription, JobHandler, JobName, Registry, isJobHandler } from './api'; diff --git a/packages/angular_devkit/core/src/experimental/jobs/simple-registry_spec.ts b/packages/angular_devkit/core/src/experimental/jobs/simple-registry_spec.ts index 8683f6314171..80a1271b6ef2 100644 --- a/packages/angular_devkit/core/src/experimental/jobs/simple-registry_spec.ts +++ b/packages/angular_devkit/core/src/experimental/jobs/simple-registry_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-big-function no-non-null-assertion import { createJobHandler } from './create-job-handler'; import { SimpleJobRegistry } from './simple-registry'; diff --git a/packages/angular_devkit/core/src/experimental/jobs/simple-scheduler.ts b/packages/angular_devkit/core/src/experimental/jobs/simple-scheduler.ts index 5bff342f66ed..0736e2b3f291 100644 --- a/packages/angular_devkit/core/src/experimental/jobs/simple-scheduler.ts +++ b/packages/angular_devkit/core/src/experimental/jobs/simple-scheduler.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { EMPTY, MonoTypeOperatorFunction, diff --git a/packages/angular_devkit/core/src/experimental/jobs/simple-scheduler_spec.ts b/packages/angular_devkit/core/src/experimental/jobs/simple-scheduler_spec.ts index 7c174d8f93ff..fbeedd45d588 100644 --- a/packages/angular_devkit/core/src/experimental/jobs/simple-scheduler_spec.ts +++ b/packages/angular_devkit/core/src/experimental/jobs/simple-scheduler_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-big-function no-non-null-assertion import { EMPTY, Observable, of, timer } from 'rxjs'; import { map, take, toArray } from 'rxjs/operators'; diff --git a/packages/angular_devkit/core/src/experimental/jobs/strategy.ts b/packages/angular_devkit/core/src/experimental/jobs/strategy.ts index aa538dcfb8b7..d45048c73c82 100644 --- a/packages/angular_devkit/core/src/experimental/jobs/strategy.ts +++ b/packages/angular_devkit/core/src/experimental/jobs/strategy.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Observable, Subject, concat, of } from 'rxjs'; import { finalize, ignoreElements, share, shareReplay, tap } from 'rxjs/operators'; import { JsonValue } from '../../json'; diff --git a/packages/angular_devkit/core/src/experimental/jobs/strategy_spec.ts b/packages/angular_devkit/core/src/experimental/jobs/strategy_spec.ts index dba165d4be5e..bffc45e13e1b 100644 --- a/packages/angular_devkit/core/src/experimental/jobs/strategy_spec.ts +++ b/packages/angular_devkit/core/src/experimental/jobs/strategy_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { promisify } from 'util'; import { JobState } from './api'; import { createJobHandler } from './create-job-handler'; diff --git a/packages/angular_devkit/core/src/index.ts b/packages/angular_devkit/core/src/index.ts index 2df15fc70f9f..1fbdfb4594c4 100644 --- a/packages/angular_devkit/core/src/index.ts +++ b/packages/angular_devkit/core/src/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as analytics from './analytics'; import * as experimental from './experimental'; import * as json from './json/index'; diff --git a/packages/angular_devkit/core/src/json/index.ts b/packages/angular_devkit/core/src/json/index.ts index 16bc0d1ff55c..fb530ab81e16 100644 --- a/packages/angular_devkit/core/src/json/index.ts +++ b/packages/angular_devkit/core/src/json/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export * from './interface'; export * from './parser'; diff --git a/packages/angular_devkit/core/src/json/interface.ts b/packages/angular_devkit/core/src/json/interface.ts index 8769239695cf..ee65bc747b5a 100644 --- a/packages/angular_devkit/core/src/json/interface.ts +++ b/packages/angular_devkit/core/src/json/interface.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export interface Position { readonly offset: number; diff --git a/packages/angular_devkit/core/src/json/parser.ts b/packages/angular_devkit/core/src/json/parser.ts index 243b51c4f0ea..2dd609e43c08 100644 --- a/packages/angular_devkit/core/src/json/parser.ts +++ b/packages/angular_devkit/core/src/json/parser.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BaseException } from '../exception'; import { JsonArray, diff --git a/packages/angular_devkit/core/src/json/parser_spec.ts b/packages/angular_devkit/core/src/json/parser_spec.ts index 56405eb03aed..be1bf778bc9f 100644 --- a/packages/angular_devkit/core/src/json/parser_spec.ts +++ b/packages/angular_devkit/core/src/json/parser_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-big-function import { JsonParseMode, parseJson, parseJsonAst } from './parser'; diff --git a/packages/angular_devkit/core/src/json/schema/index.ts b/packages/angular_devkit/core/src/json/schema/index.ts index 92a977ffe736..ca996bb459f4 100644 --- a/packages/angular_devkit/core/src/json/schema/index.ts +++ b/packages/angular_devkit/core/src/json/schema/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export * from './interface'; export * from './pointer'; export * from './registry'; diff --git a/packages/angular_devkit/core/src/json/schema/interface.ts b/packages/angular_devkit/core/src/json/schema/interface.ts index 42c581e8d026..64c70f9458d7 100644 --- a/packages/angular_devkit/core/src/json/schema/interface.ts +++ b/packages/angular_devkit/core/src/json/schema/interface.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { ErrorObject, Format } from 'ajv'; import { Observable, SubscribableOrPromise } from 'rxjs'; import { JsonArray, JsonObject, JsonValue } from '../interface'; diff --git a/packages/angular_devkit/core/src/json/schema/pointer.ts b/packages/angular_devkit/core/src/json/schema/pointer.ts index 39d054169801..5795b291154a 100644 --- a/packages/angular_devkit/core/src/json/schema/pointer.ts +++ b/packages/angular_devkit/core/src/json/schema/pointer.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { JsonPointer } from './interface'; diff --git a/packages/angular_devkit/core/src/json/schema/prompt_spec.ts b/packages/angular_devkit/core/src/json/schema/prompt_spec.ts index b22b26b7a567..6a86233fc456 100644 --- a/packages/angular_devkit/core/src/json/schema/prompt_spec.ts +++ b/packages/angular_devkit/core/src/json/schema/prompt_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-any no-big-function import { map, mergeMap } from 'rxjs/operators'; import { CoreSchemaRegistry } from './registry'; diff --git a/packages/angular_devkit/core/src/json/schema/registry.ts b/packages/angular_devkit/core/src/json/schema/registry.ts index 4e7c6a9e3e17..d70e5d30e7dd 100644 --- a/packages/angular_devkit/core/src/json/schema/registry.ts +++ b/packages/angular_devkit/core/src/json/schema/registry.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import Ajv, { ValidateFunction } from 'ajv'; import ajvAddFormats from 'ajv-formats'; import * as http from 'http'; diff --git a/packages/angular_devkit/core/src/json/schema/registry_spec.ts b/packages/angular_devkit/core/src/json/schema/registry_spec.ts index 5790bdce095a..18852faa9f04 100644 --- a/packages/angular_devkit/core/src/json/schema/registry_spec.ts +++ b/packages/angular_devkit/core/src/json/schema/registry_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-any non-null-operator no-big-function import { of as observableOf } from 'rxjs'; import { map, mergeMap } from 'rxjs/operators'; diff --git a/packages/angular_devkit/core/src/json/schema/schema.ts b/packages/angular_devkit/core/src/json/schema/schema.ts index fab3ff69e978..b05156346e45 100644 --- a/packages/angular_devkit/core/src/json/schema/schema.ts +++ b/packages/angular_devkit/core/src/json/schema/schema.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { JsonObject, JsonValue, isJsonObject } from '../interface'; /** diff --git a/packages/angular_devkit/core/src/json/schema/transforms.ts b/packages/angular_devkit/core/src/json/schema/transforms.ts index 0148b3efb51c..32c5a6463429 100644 --- a/packages/angular_devkit/core/src/json/schema/transforms.ts +++ b/packages/angular_devkit/core/src/json/schema/transforms.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { JsonObject, JsonValue, isJsonArray, isJsonObject } from '../interface'; import { JsonPointer } from './interface'; import { JsonSchema } from './schema'; diff --git a/packages/angular_devkit/core/src/json/schema/transforms_spec.ts b/packages/angular_devkit/core/src/json/schema/transforms_spec.ts index 2e2e5a564a03..470eefa861fe 100644 --- a/packages/angular_devkit/core/src/json/schema/transforms_spec.ts +++ b/packages/angular_devkit/core/src/json/schema/transforms_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { mergeMap } from 'rxjs/operators'; import { CoreSchemaRegistry } from './registry'; import { addUndefinedDefaults } from './transforms'; diff --git a/packages/angular_devkit/core/src/json/schema/utility.ts b/packages/angular_devkit/core/src/json/schema/utility.ts index 00b4a8278343..9e0c76c6e3b9 100644 --- a/packages/angular_devkit/core/src/json/schema/utility.ts +++ b/packages/angular_devkit/core/src/json/schema/utility.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { JsonObject, isJsonArray, isJsonObject } from '../interface'; import { JsonSchema } from './schema'; diff --git a/packages/angular_devkit/core/src/json/schema/visitor.ts b/packages/angular_devkit/core/src/json/schema/visitor.ts index 194c29eef4fe..2f8d6e142427 100644 --- a/packages/angular_devkit/core/src/json/schema/visitor.ts +++ b/packages/angular_devkit/core/src/json/schema/visitor.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Observable, concat, from, isObservable, of as observableOf } from 'rxjs'; import { concatMap, ignoreElements, mergeMap, tap } from 'rxjs/operators'; import { JsonArray, JsonObject, JsonValue } from '../interface'; diff --git a/packages/angular_devkit/core/src/json/schema/visitor_spec.ts b/packages/angular_devkit/core/src/json/schema/visitor_spec.ts index e938ccd56216..0efc5f952ad4 100644 --- a/packages/angular_devkit/core/src/json/schema/visitor_spec.ts +++ b/packages/angular_devkit/core/src/json/schema/visitor_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Observable, from } from 'rxjs'; import { JsonObject, JsonValue } from '..'; import { visitJson } from './visitor'; diff --git a/packages/angular_devkit/core/src/logger/indent.ts b/packages/angular_devkit/core/src/logger/indent.ts index 7eb1958fc855..739a212c34a4 100644 --- a/packages/angular_devkit/core/src/logger/indent.ts +++ b/packages/angular_devkit/core/src/logger/indent.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { map } from 'rxjs/operators'; import { Logger } from './logger'; diff --git a/packages/angular_devkit/core/src/logger/indent_spec.ts b/packages/angular_devkit/core/src/logger/indent_spec.ts index a35ed3307a96..2201f6c45656 100644 --- a/packages/angular_devkit/core/src/logger/indent_spec.ts +++ b/packages/angular_devkit/core/src/logger/indent_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-any import { toArray } from 'rxjs/operators'; import { IndentLogger } from './indent'; diff --git a/packages/angular_devkit/core/src/logger/index.ts b/packages/angular_devkit/core/src/logger/index.ts index 63bc0860b0c8..02fb1e32bd1c 100644 --- a/packages/angular_devkit/core/src/logger/index.ts +++ b/packages/angular_devkit/core/src/logger/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export * from './indent'; export * from './level'; export * from './logger'; diff --git a/packages/angular_devkit/core/src/logger/level.ts b/packages/angular_devkit/core/src/logger/level.ts index 7de3255d90c5..1ae3d6baa49a 100644 --- a/packages/angular_devkit/core/src/logger/level.ts +++ b/packages/angular_devkit/core/src/logger/level.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { JsonObject } from '../json/interface'; import { LogLevel, Logger } from './logger'; diff --git a/packages/angular_devkit/core/src/logger/logger.ts b/packages/angular_devkit/core/src/logger/logger.ts index f684b2427299..0d1d6c66b59c 100644 --- a/packages/angular_devkit/core/src/logger/logger.ts +++ b/packages/angular_devkit/core/src/logger/logger.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Observable, Operator, PartialObserver, Subject, Subscription, empty } from 'rxjs'; import { JsonObject } from '../json/interface'; diff --git a/packages/angular_devkit/core/src/logger/logger_spec.ts b/packages/angular_devkit/core/src/logger/logger_spec.ts index 50439ca9a452..2c43ce17d213 100644 --- a/packages/angular_devkit/core/src/logger/logger_spec.ts +++ b/packages/angular_devkit/core/src/logger/logger_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-any import { toArray } from 'rxjs/operators'; import { JsonValue } from '../json/interface'; diff --git a/packages/angular_devkit/core/src/logger/null-logger.ts b/packages/angular_devkit/core/src/logger/null-logger.ts index 4a687840a1c3..63e683a9bb45 100644 --- a/packages/angular_devkit/core/src/logger/null-logger.ts +++ b/packages/angular_devkit/core/src/logger/null-logger.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { EMPTY } from 'rxjs'; import { Logger, LoggerApi } from './logger'; diff --git a/packages/angular_devkit/core/src/logger/null-logger_spec.ts b/packages/angular_devkit/core/src/logger/null-logger_spec.ts index 52f1936e48f9..69c0b52a0b53 100644 --- a/packages/angular_devkit/core/src/logger/null-logger_spec.ts +++ b/packages/angular_devkit/core/src/logger/null-logger_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { toArray } from 'rxjs/operators'; import { LogEntry, Logger } from './logger'; import { NullLogger } from './null-logger'; diff --git a/packages/angular_devkit/core/src/logger/transform-logger.ts b/packages/angular_devkit/core/src/logger/transform-logger.ts index 4d024fd2ffb2..cde057bc42d9 100644 --- a/packages/angular_devkit/core/src/logger/transform-logger.ts +++ b/packages/angular_devkit/core/src/logger/transform-logger.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Observable } from 'rxjs'; import { LogEntry, Logger } from './logger'; diff --git a/packages/angular_devkit/core/src/logger/transform-logger_spec.ts b/packages/angular_devkit/core/src/logger/transform-logger_spec.ts index d99e2f87269c..a550f85b715d 100644 --- a/packages/angular_devkit/core/src/logger/transform-logger_spec.ts +++ b/packages/angular_devkit/core/src/logger/transform-logger_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-any import { filter, map, toArray } from 'rxjs/operators'; import { LogEntry } from './logger'; diff --git a/packages/angular_devkit/core/src/utils/array.ts b/packages/angular_devkit/core/src/utils/array.ts index adb896d69cfb..0dc92b98b423 100644 --- a/packages/angular_devkit/core/src/utils/array.ts +++ b/packages/angular_devkit/core/src/utils/array.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - /** @deprecated Since v12.0, unused by the Angular tooling */ export function clean(array: Array): Array { return array.filter(x => x !== undefined) as Array; diff --git a/packages/angular_devkit/core/src/utils/index.ts b/packages/angular_devkit/core/src/utils/index.ts index 5e6749ee9b95..1017ef5d9716 100644 --- a/packages/angular_devkit/core/src/utils/index.ts +++ b/packages/angular_devkit/core/src/utils/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as tags from './literals'; import * as strings from './strings'; diff --git a/packages/angular_devkit/core/src/utils/lang.ts b/packages/angular_devkit/core/src/utils/lang.ts index 032010566a7a..8b6d07dd6d22 100644 --- a/packages/angular_devkit/core/src/utils/lang.ts +++ b/packages/angular_devkit/core/src/utils/lang.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // Borrowed from @angular/core /** diff --git a/packages/angular_devkit/core/src/utils/literals.ts b/packages/angular_devkit/core/src/utils/literals.ts index bfa16c201c98..2706574501e1 100644 --- a/packages/angular_devkit/core/src/utils/literals.ts +++ b/packages/angular_devkit/core/src/utils/literals.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export interface TemplateTag { // Any is the only way here. // tslint:disable-next-line:no-any diff --git a/packages/angular_devkit/core/src/utils/literals_spec.ts b/packages/angular_devkit/core/src/utils/literals_spec.ts index 0883eb685535..c88978434d61 100644 --- a/packages/angular_devkit/core/src/utils/literals_spec.ts +++ b/packages/angular_devkit/core/src/utils/literals_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { oneLine, stripIndent, stripIndents, trimNewlines } from './literals'; describe('literals', () => { diff --git a/packages/angular_devkit/core/src/utils/object.ts b/packages/angular_devkit/core/src/utils/object.ts index ee5523d8a4b0..64cc80e818be 100644 --- a/packages/angular_devkit/core/src/utils/object.ts +++ b/packages/angular_devkit/core/src/utils/object.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - /** @deprecated Since v12.0, unused by the Angular tooling */ export function mapObject(obj: { [k: string]: T }, mapper: (k: string, v: T) => V): { [k: string]: V } { diff --git a/packages/angular_devkit/core/src/utils/object_spec.ts b/packages/angular_devkit/core/src/utils/object_spec.ts index 67756e5f31b7..c8b4dc595b97 100644 --- a/packages/angular_devkit/core/src/utils/object_spec.ts +++ b/packages/angular_devkit/core/src/utils/object_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-any import { deepCopy } from './object'; diff --git a/packages/angular_devkit/core/src/utils/partially-ordered-set.ts b/packages/angular_devkit/core/src/utils/partially-ordered-set.ts index 2127f521eef2..a14f70087e39 100644 --- a/packages/angular_devkit/core/src/utils/partially-ordered-set.ts +++ b/packages/angular_devkit/core/src/utils/partially-ordered-set.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BaseException } from '../exception'; export class DependencyNotFoundException extends BaseException { diff --git a/packages/angular_devkit/core/src/utils/partially-ordered-set_spec.ts b/packages/angular_devkit/core/src/utils/partially-ordered-set_spec.ts index 31aa667cb54e..6fdaf470466d 100644 --- a/packages/angular_devkit/core/src/utils/partially-ordered-set_spec.ts +++ b/packages/angular_devkit/core/src/utils/partially-ordered-set_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { PartiallyOrderedSet } from './partially-ordered-set'; describe('PartiallyOrderedSet', () => { diff --git a/packages/angular_devkit/core/src/utils/priority-queue.ts b/packages/angular_devkit/core/src/utils/priority-queue.ts index 9d5008487d47..0be087457e02 100644 --- a/packages/angular_devkit/core/src/utils/priority-queue.ts +++ b/packages/angular_devkit/core/src/utils/priority-queue.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - /** Naive priority queue; not intended for large datasets */ export class PriorityQueue { private _items = new Array(); diff --git a/packages/angular_devkit/core/src/utils/priority-queue_spec.ts b/packages/angular_devkit/core/src/utils/priority-queue_spec.ts index ef850273de4e..6dd307e7fe8a 100644 --- a/packages/angular_devkit/core/src/utils/priority-queue_spec.ts +++ b/packages/angular_devkit/core/src/utils/priority-queue_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { PriorityQueue } from './priority-queue'; diff --git a/packages/angular_devkit/core/src/utils/strings.ts b/packages/angular_devkit/core/src/utils/strings.ts index ff3c0ce7cec3..823a24b18756 100644 --- a/packages/angular_devkit/core/src/utils/strings.ts +++ b/packages/angular_devkit/core/src/utils/strings.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + const STRING_DASHERIZE_REGEXP = (/[ _]/g); const STRING_DECAMELIZE_REGEXP = (/([a-z\d])([A-Z])/g); const STRING_CAMELIZE_REGEXP = (/(-|_|\.|\s)+(.)?/g); diff --git a/packages/angular_devkit/core/src/utils/template.ts b/packages/angular_devkit/core/src/utils/template.ts index 1ed86bd81098..2f62cac8deb6 100644 --- a/packages/angular_devkit/core/src/utils/template.ts +++ b/packages/angular_devkit/core/src/utils/template.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Position, SourceNode } from 'source-map'; // Matches <%= expr %>. This does not support structural JavaScript (for/if/...). diff --git a/packages/angular_devkit/core/src/virtual-fs/host/alias.ts b/packages/angular_devkit/core/src/virtual-fs/host/alias.ts index 4df9c6b1fbe2..657b44e4ca1e 100644 --- a/packages/angular_devkit/core/src/virtual-fs/host/alias.ts +++ b/packages/angular_devkit/core/src/virtual-fs/host/alias.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { NormalizedRoot, Path, PathFragment, join, split } from '../path'; import { ResolverHost } from './resolver'; diff --git a/packages/angular_devkit/core/src/virtual-fs/host/alias_spec.ts b/packages/angular_devkit/core/src/virtual-fs/host/alias_spec.ts index ff852af9910e..eed5e4ec3227 100644 --- a/packages/angular_devkit/core/src/virtual-fs/host/alias_spec.ts +++ b/packages/angular_devkit/core/src/virtual-fs/host/alias_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { normalize } from '..'; import { AliasHost } from './alias'; import { stringToFileBuffer } from './buffer'; diff --git a/packages/angular_devkit/core/src/virtual-fs/host/buffer.ts b/packages/angular_devkit/core/src/virtual-fs/host/buffer.ts index 08a988d25306..dd07f205dee5 100644 --- a/packages/angular_devkit/core/src/virtual-fs/host/buffer.ts +++ b/packages/angular_devkit/core/src/virtual-fs/host/buffer.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { TemplateTag } from '../../utils/literals'; import { FileBuffer } from './interface'; diff --git a/packages/angular_devkit/core/src/virtual-fs/host/create.ts b/packages/angular_devkit/core/src/virtual-fs/host/create.ts index 8002f1dea48b..5e8e3cd38148 100644 --- a/packages/angular_devkit/core/src/virtual-fs/host/create.ts +++ b/packages/angular_devkit/core/src/virtual-fs/host/create.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Observable } from 'rxjs'; import { Path, PathFragment } from '../path'; import { FileBuffer, FileBufferLike, Host, HostCapabilities, Stats } from './interface'; diff --git a/packages/angular_devkit/core/src/virtual-fs/host/empty.ts b/packages/angular_devkit/core/src/virtual-fs/host/empty.ts index 791b27c6e7cf..3a9a20a2ef11 100644 --- a/packages/angular_devkit/core/src/virtual-fs/host/empty.ts +++ b/packages/angular_devkit/core/src/virtual-fs/host/empty.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Observable, of, throwError } from 'rxjs'; import { FileDoesNotExistException } from '../../exception'; import { Path, PathFragment } from '../path'; diff --git a/packages/angular_devkit/core/src/virtual-fs/host/index.ts b/packages/angular_devkit/core/src/virtual-fs/host/index.ts index a795f4209fc6..bc44ca9ef6cc 100644 --- a/packages/angular_devkit/core/src/virtual-fs/host/index.ts +++ b/packages/angular_devkit/core/src/virtual-fs/host/index.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - export * from './alias'; export * from './buffer'; export * from './create'; diff --git a/packages/angular_devkit/core/src/virtual-fs/host/interface.ts b/packages/angular_devkit/core/src/virtual-fs/host/interface.ts index 9c48e58f5d0d..67f74592047e 100644 --- a/packages/angular_devkit/core/src/virtual-fs/host/interface.ts +++ b/packages/angular_devkit/core/src/virtual-fs/host/interface.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Observable } from 'rxjs'; import { Path, PathFragment } from '../path'; diff --git a/packages/angular_devkit/core/src/virtual-fs/host/memory.ts b/packages/angular_devkit/core/src/virtual-fs/host/memory.ts index ca80bc7ea916..4327cf3a8e3e 100644 --- a/packages/angular_devkit/core/src/virtual-fs/host/memory.ts +++ b/packages/angular_devkit/core/src/virtual-fs/host/memory.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Observable, Subject } from 'rxjs'; import { FileAlreadyExistException, diff --git a/packages/angular_devkit/core/src/virtual-fs/host/memory_spec.ts b/packages/angular_devkit/core/src/virtual-fs/host/memory_spec.ts index bf9df7a106c9..2d7b1f81c882 100644 --- a/packages/angular_devkit/core/src/virtual-fs/host/memory_spec.ts +++ b/packages/angular_devkit/core/src/virtual-fs/host/memory_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-implicit-dependencies // tslint:disable:no-non-null-assertion import { fragment, normalize } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/core/src/virtual-fs/host/pattern.ts b/packages/angular_devkit/core/src/virtual-fs/host/pattern.ts index 9880c1e67903..57f0aa0acdb1 100644 --- a/packages/angular_devkit/core/src/virtual-fs/host/pattern.ts +++ b/packages/angular_devkit/core/src/virtual-fs/host/pattern.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Path } from '../path'; import { ResolverHost } from './resolver'; diff --git a/packages/angular_devkit/core/src/virtual-fs/host/pattern_spec.ts b/packages/angular_devkit/core/src/virtual-fs/host/pattern_spec.ts index eb10ea21c1e0..841b3312aff8 100644 --- a/packages/angular_devkit/core/src/virtual-fs/host/pattern_spec.ts +++ b/packages/angular_devkit/core/src/virtual-fs/host/pattern_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { normalize } from '..'; import { stringToFileBuffer } from './buffer'; import { SimpleMemoryHost } from './memory'; diff --git a/packages/angular_devkit/core/src/virtual-fs/host/record.ts b/packages/angular_devkit/core/src/virtual-fs/host/record.ts index 899c445d735e..0fc2b80bcbe1 100644 --- a/packages/angular_devkit/core/src/virtual-fs/host/record.ts +++ b/packages/angular_devkit/core/src/virtual-fs/host/record.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { EMPTY, Observable, diff --git a/packages/angular_devkit/core/src/virtual-fs/host/record_spec.ts b/packages/angular_devkit/core/src/virtual-fs/host/record_spec.ts index 2500cc66bb5d..150b69768afb 100644 --- a/packages/angular_devkit/core/src/virtual-fs/host/record_spec.ts +++ b/packages/angular_devkit/core/src/virtual-fs/host/record_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-any no-big-function import { path } from '../path'; import { fileBuffer } from './buffer'; diff --git a/packages/angular_devkit/core/src/virtual-fs/host/resolver.ts b/packages/angular_devkit/core/src/virtual-fs/host/resolver.ts index 69c53d642e2f..2a77239a0e92 100644 --- a/packages/angular_devkit/core/src/virtual-fs/host/resolver.ts +++ b/packages/angular_devkit/core/src/virtual-fs/host/resolver.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Observable } from 'rxjs'; import { Path, PathFragment } from '../path'; import { diff --git a/packages/angular_devkit/core/src/virtual-fs/host/safe.ts b/packages/angular_devkit/core/src/virtual-fs/host/safe.ts index fd4ef719261c..bcfbc85c82fb 100644 --- a/packages/angular_devkit/core/src/virtual-fs/host/safe.ts +++ b/packages/angular_devkit/core/src/virtual-fs/host/safe.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Observable, of } from 'rxjs'; import { catchError } from 'rxjs/operators'; import { Path, PathFragment } from '../path'; diff --git a/packages/angular_devkit/core/src/virtual-fs/host/scoped.ts b/packages/angular_devkit/core/src/virtual-fs/host/scoped.ts index da6e884bc266..0dfe6a26ad51 100644 --- a/packages/angular_devkit/core/src/virtual-fs/host/scoped.ts +++ b/packages/angular_devkit/core/src/virtual-fs/host/scoped.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { NormalizedRoot, Path, join } from '../path'; import { Host } from './interface'; import { ResolverHost } from './resolver'; diff --git a/packages/angular_devkit/core/src/virtual-fs/host/sync.ts b/packages/angular_devkit/core/src/virtual-fs/host/sync.ts index cbc8629081cc..1546af96a8b3 100644 --- a/packages/angular_devkit/core/src/virtual-fs/host/sync.ts +++ b/packages/angular_devkit/core/src/virtual-fs/host/sync.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Observable } from 'rxjs'; import { BaseException } from '../../exception'; import { Path, PathFragment } from '../path'; diff --git a/packages/angular_devkit/core/src/virtual-fs/host/test.ts b/packages/angular_devkit/core/src/virtual-fs/host/test.ts index 4e90c409e3c1..dbd906568872 100644 --- a/packages/angular_devkit/core/src/virtual-fs/host/test.ts +++ b/packages/angular_devkit/core/src/virtual-fs/host/test.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Observable } from 'rxjs'; import { Path, PathFragment, join, normalize } from '../path'; import { fileBufferToString, stringToFileBuffer } from './buffer'; diff --git a/packages/angular_devkit/core/src/virtual-fs/host/test_spec.ts b/packages/angular_devkit/core/src/virtual-fs/host/test_spec.ts index 4e0cb296a155..92c771c57956 100644 --- a/packages/angular_devkit/core/src/virtual-fs/host/test_spec.ts +++ b/packages/angular_devkit/core/src/virtual-fs/host/test_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { test } from './test'; diff --git a/packages/angular_devkit/core/src/virtual-fs/index.ts b/packages/angular_devkit/core/src/virtual-fs/index.ts index 988c3b40d449..84f72b6e11e9 100644 --- a/packages/angular_devkit/core/src/virtual-fs/index.ts +++ b/packages/angular_devkit/core/src/virtual-fs/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export * from './path'; import * as virtualFs from './host/index'; diff --git a/packages/angular_devkit/core/src/virtual-fs/path.ts b/packages/angular_devkit/core/src/virtual-fs/path.ts index d5edd6da300a..19ad7eab97ae 100644 --- a/packages/angular_devkit/core/src/virtual-fs/path.ts +++ b/packages/angular_devkit/core/src/virtual-fs/path.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BaseException } from '../exception'; import { TemplateTag } from '../utils/literals'; diff --git a/packages/angular_devkit/core/src/virtual-fs/path_spec.ts b/packages/angular_devkit/core/src/virtual-fs/path_spec.ts index 3e66387cd38e..03f16bc1c932 100644 --- a/packages/angular_devkit/core/src/virtual-fs/path_spec.ts +++ b/packages/angular_devkit/core/src/virtual-fs/path_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { InvalidPathException, Path, diff --git a/packages/angular_devkit/core/src/workspace/core.ts b/packages/angular_devkit/core/src/workspace/core.ts index ad5ae8be981f..ddb7dc515a74 100644 --- a/packages/angular_devkit/core/src/workspace/core.ts +++ b/packages/angular_devkit/core/src/workspace/core.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { basename, getSystemPath, join, normalize } from '../virtual-fs'; import { WorkspaceDefinition } from './definitions'; import { WorkspaceHost } from './host'; diff --git a/packages/angular_devkit/core/src/workspace/core_spec.ts b/packages/angular_devkit/core/src/workspace/core_spec.ts index f92170be2586..b3edd74c5cd4 100644 --- a/packages/angular_devkit/core/src/workspace/core_spec.ts +++ b/packages/angular_devkit/core/src/workspace/core_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-big-function import { getSystemPath, join, normalize } from '../virtual-fs'; import { diff --git a/packages/angular_devkit/core/src/workspace/definitions.ts b/packages/angular_devkit/core/src/workspace/definitions.ts index f27b1b5af1af..d8f40f289555 100644 --- a/packages/angular_devkit/core/src/workspace/definitions.ts +++ b/packages/angular_devkit/core/src/workspace/definitions.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { JsonValue } from '../json'; export interface WorkspaceDefinition { diff --git a/packages/angular_devkit/core/src/workspace/definitions_spec.ts b/packages/angular_devkit/core/src/workspace/definitions_spec.ts index 9c640e2f5eb6..b6bfcf97d7c0 100644 --- a/packages/angular_devkit/core/src/workspace/definitions_spec.ts +++ b/packages/angular_devkit/core/src/workspace/definitions_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-big-function import { ProjectDefinition, diff --git a/packages/angular_devkit/core/src/workspace/host.ts b/packages/angular_devkit/core/src/workspace/host.ts index d9d75c0cf171..e0c84b789a76 100644 --- a/packages/angular_devkit/core/src/workspace/host.ts +++ b/packages/angular_devkit/core/src/workspace/host.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { normalize, virtualFs } from '../virtual-fs'; export interface WorkspaceHost { diff --git a/packages/angular_devkit/core/src/workspace/host_spec.ts b/packages/angular_devkit/core/src/workspace/host_spec.ts index 079885b60d25..e4808831a576 100644 --- a/packages/angular_devkit/core/src/workspace/host_spec.ts +++ b/packages/angular_devkit/core/src/workspace/host_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { test } from '../virtual-fs/host'; import { WorkspaceHost, createWorkspaceHost } from './host'; diff --git a/packages/angular_devkit/core/src/workspace/index.ts b/packages/angular_devkit/core/src/workspace/index.ts index 88c1071ae2f7..395a411dbba3 100644 --- a/packages/angular_devkit/core/src/workspace/index.ts +++ b/packages/angular_devkit/core/src/workspace/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export * from './definitions'; export { WorkspaceHost, createWorkspaceHost } from './host'; export { WorkspaceFormat, readWorkspace, writeWorkspace } from './core'; diff --git a/packages/angular_devkit/core/src/workspace/json/metadata.ts b/packages/angular_devkit/core/src/workspace/json/metadata.ts index bc7d2c58bd5d..f49525c74d63 100644 --- a/packages/angular_devkit/core/src/workspace/json/metadata.ts +++ b/packages/angular_devkit/core/src/workspace/json/metadata.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { JsonAstArray, JsonAstKeyValue, JsonAstNode, JsonAstObject, JsonValue } from '../../json'; import { ProjectDefinition, TargetDefinition, WorkspaceDefinition } from '../definitions'; diff --git a/packages/angular_devkit/core/src/workspace/json/reader.ts b/packages/angular_devkit/core/src/workspace/json/reader.ts index 42b410f8e8dd..5178192657b5 100644 --- a/packages/angular_devkit/core/src/workspace/json/reader.ts +++ b/packages/angular_devkit/core/src/workspace/json/reader.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { JsonAstKeyValue, JsonAstNode, diff --git a/packages/angular_devkit/core/src/workspace/json/reader_spec.ts b/packages/angular_devkit/core/src/workspace/json/reader_spec.ts index b6ac75b95971..5a5986aa94a2 100644 --- a/packages/angular_devkit/core/src/workspace/json/reader_spec.ts +++ b/packages/angular_devkit/core/src/workspace/json/reader_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-non-null-assertion no-big-function import { readFileSync } from 'fs'; import { JsonObject } from '../../json'; diff --git a/packages/angular_devkit/core/src/workspace/json/utilities.ts b/packages/angular_devkit/core/src/workspace/json/utilities.ts index df25d3bc064b..773bd7a075da 100644 --- a/packages/angular_devkit/core/src/workspace/json/utilities.ts +++ b/packages/angular_devkit/core/src/workspace/json/utilities.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { JsonAstArray, JsonAstKeyValue, diff --git a/packages/angular_devkit/core/src/workspace/json/writer.ts b/packages/angular_devkit/core/src/workspace/json/writer.ts index 0b253f917a53..7908cc1c1a06 100644 --- a/packages/angular_devkit/core/src/workspace/json/writer.ts +++ b/packages/angular_devkit/core/src/workspace/json/writer.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import MagicString from 'magic-string'; import { JsonAstKeyValue, JsonAstNode, JsonObject, JsonValue } from '../../json'; import { ProjectDefinition, TargetDefinition, WorkspaceDefinition } from '../definitions'; diff --git a/packages/angular_devkit/core/src/workspace/json/writer_spec.ts b/packages/angular_devkit/core/src/workspace/json/writer_spec.ts index 23af2d1c525f..7bc1fc99e7a5 100644 --- a/packages/angular_devkit/core/src/workspace/json/writer_spec.ts +++ b/packages/angular_devkit/core/src/workspace/json/writer_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-big-function import { readFileSync } from 'fs'; import { join } from 'path'; diff --git a/packages/angular_devkit/schematics/src/_golden-api.ts b/packages/angular_devkit/schematics/src/_golden-api.ts index 9d9ea4ddacbe..ca0984c9d910 100644 --- a/packages/angular_devkit/schematics/src/_golden-api.ts +++ b/packages/angular_devkit/schematics/src/_golden-api.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - export * from './index'; export * from './formats/index'; diff --git a/packages/angular_devkit/schematics/src/engine/engine.ts b/packages/angular_devkit/schematics/src/engine/engine.ts index a3ca4caa515e..34db2ad0f4c4 100644 --- a/packages/angular_devkit/schematics/src/engine/engine.ts +++ b/packages/angular_devkit/schematics/src/engine/engine.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BaseException, PriorityQueue, logging } from '@angular-devkit/core'; import { Observable, from as observableFrom } from 'rxjs'; import { concatMap } from 'rxjs/operators'; diff --git a/packages/angular_devkit/schematics/src/engine/index.ts b/packages/angular_devkit/schematics/src/engine/index.ts index 9f8b476cc297..28afcc8f9f2f 100644 --- a/packages/angular_devkit/schematics/src/engine/index.ts +++ b/packages/angular_devkit/schematics/src/engine/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export * from './engine'; export * from './interface'; export * from './schematic'; diff --git a/packages/angular_devkit/schematics/src/engine/interface.ts b/packages/angular_devkit/schematics/src/engine/interface.ts index dea18164acac..e63142415d80 100644 --- a/packages/angular_devkit/schematics/src/engine/interface.ts +++ b/packages/angular_devkit/schematics/src/engine/interface.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { analytics, logging } from '@angular-devkit/core'; import { Observable } from 'rxjs'; import { Url } from 'url'; diff --git a/packages/angular_devkit/schematics/src/engine/schematic.ts b/packages/angular_devkit/schematics/src/engine/schematic.ts index ba16af352624..784c1965d4f9 100644 --- a/packages/angular_devkit/schematics/src/engine/schematic.ts +++ b/packages/angular_devkit/schematics/src/engine/schematic.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BaseException } from '@angular-devkit/core'; import { Observable, of as observableOf } from 'rxjs'; import { concatMap, first, map } from 'rxjs/operators'; diff --git a/packages/angular_devkit/schematics/src/engine/schematic_spec.ts b/packages/angular_devkit/schematics/src/engine/schematic_spec.ts index 5f16ed347644..110a899750df 100644 --- a/packages/angular_devkit/schematics/src/engine/schematic_spec.ts +++ b/packages/angular_devkit/schematics/src/engine/schematic_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-non-null-assertion import { logging } from '@angular-devkit/core'; import { of as observableOf } from 'rxjs'; diff --git a/packages/angular_devkit/schematics/src/exception/exception.ts b/packages/angular_devkit/schematics/src/exception/exception.ts index f7f419bfc145..8affce1b6f42 100644 --- a/packages/angular_devkit/schematics/src/exception/exception.ts +++ b/packages/angular_devkit/schematics/src/exception/exception.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BaseException } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/schematics/src/formats/format-validator.ts b/packages/angular_devkit/schematics/src/formats/format-validator.ts index 863a5b3e214a..b442688a50ee 100644 --- a/packages/angular_devkit/schematics/src/formats/format-validator.ts +++ b/packages/angular_devkit/schematics/src/formats/format-validator.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { JsonObject, JsonValue, schema } from '@angular-devkit/core'; import { Observable } from 'rxjs'; import { mergeMap } from 'rxjs/operators'; diff --git a/packages/angular_devkit/schematics/src/formats/html-selector.ts b/packages/angular_devkit/schematics/src/formats/html-selector.ts index dbea9afbb627..8c74db0f10c5 100644 --- a/packages/angular_devkit/schematics/src/formats/html-selector.ts +++ b/packages/angular_devkit/schematics/src/formats/html-selector.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { schema } from '@angular-devkit/core'; // As per https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name diff --git a/packages/angular_devkit/schematics/src/formats/html-selector_spec.ts b/packages/angular_devkit/schematics/src/formats/html-selector_spec.ts index 411d1df67df9..a261dd478ba6 100644 --- a/packages/angular_devkit/schematics/src/formats/html-selector_spec.ts +++ b/packages/angular_devkit/schematics/src/formats/html-selector_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { map } from 'rxjs/operators'; import { formatValidator } from './format-validator'; import { htmlSelectorFormat } from './html-selector'; diff --git a/packages/angular_devkit/schematics/src/formats/index.ts b/packages/angular_devkit/schematics/src/formats/index.ts index 2cfab19db670..3a0b9e1356e8 100644 --- a/packages/angular_devkit/schematics/src/formats/index.ts +++ b/packages/angular_devkit/schematics/src/formats/index.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { schema } from '@angular-devkit/core'; import { htmlSelectorFormat } from './html-selector'; export { htmlSelectorFormat } from './html-selector'; diff --git a/packages/angular_devkit/schematics/src/formats/path.ts b/packages/angular_devkit/schematics/src/formats/path.ts index 0c854957f15a..c482b8746028 100644 --- a/packages/angular_devkit/schematics/src/formats/path.ts +++ b/packages/angular_devkit/schematics/src/formats/path.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { normalize, schema } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/schematics/src/formats/path_spec.ts b/packages/angular_devkit/schematics/src/formats/path_spec.ts index 24901f08a72f..a1281e521871 100644 --- a/packages/angular_devkit/schematics/src/formats/path_spec.ts +++ b/packages/angular_devkit/schematics/src/formats/path_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { map } from 'rxjs/operators'; import { formatValidator } from './format-validator'; import { pathFormat } from './path'; diff --git a/packages/angular_devkit/schematics/src/index.ts b/packages/angular_devkit/schematics/src/index.ts index d0951eb363ad..d98ad1507a71 100644 --- a/packages/angular_devkit/schematics/src/index.ts +++ b/packages/angular_devkit/schematics/src/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { FilePredicate, MergeStrategy, Tree as TreeInterface } from './tree/interface'; import { branch, empty, merge, partition } from './tree/static'; diff --git a/packages/angular_devkit/schematics/src/rules/base.ts b/packages/angular_devkit/schematics/src/rules/base.ts index d5c390026145..1b10b9870a46 100644 --- a/packages/angular_devkit/schematics/src/rules/base.ts +++ b/packages/angular_devkit/schematics/src/rules/base.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Observable, concat } from 'rxjs'; import { map, mapTo, toArray } from 'rxjs/operators'; import { FileOperator, Rule, Source } from '../engine/interface'; diff --git a/packages/angular_devkit/schematics/src/rules/base_spec.ts b/packages/angular_devkit/schematics/src/rules/base_spec.ts index 3f199ab9dbef..54089cfe01ef 100644 --- a/packages/angular_devkit/schematics/src/rules/base_spec.ts +++ b/packages/angular_devkit/schematics/src/rules/base_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-implicit-dependencies // tslint:disable:no-non-null-assertion import { Path, virtualFs } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/schematics/src/rules/call.ts b/packages/angular_devkit/schematics/src/rules/call.ts index a9f2762e3c96..551569f6b46e 100644 --- a/packages/angular_devkit/schematics/src/rules/call.ts +++ b/packages/angular_devkit/schematics/src/rules/call.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BaseException, isPromise } from '@angular-devkit/core'; import { Observable, from, isObservable, of as observableOf, throwError } from 'rxjs'; import { defaultIfEmpty, last, mergeMap, tap } from 'rxjs/operators'; diff --git a/packages/angular_devkit/schematics/src/rules/call_spec.ts b/packages/angular_devkit/schematics/src/rules/call_spec.ts index b4ec2d4b43e5..240aa4b31da9 100644 --- a/packages/angular_devkit/schematics/src/rules/call_spec.ts +++ b/packages/angular_devkit/schematics/src/rules/call_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-non-null-assertion // tslint:disable:no-any // tslint:disable:no-implicit-dependencies diff --git a/packages/angular_devkit/schematics/src/rules/move.ts b/packages/angular_devkit/schematics/src/rules/move.ts index 211d00f01837..fe20b3dde85b 100644 --- a/packages/angular_devkit/schematics/src/rules/move.ts +++ b/packages/angular_devkit/schematics/src/rules/move.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { join, normalize } from '@angular-devkit/core'; import { Rule } from '../engine/interface'; import { noop } from './base'; diff --git a/packages/angular_devkit/schematics/src/rules/move_spec.ts b/packages/angular_devkit/schematics/src/rules/move_spec.ts index 96bfcc896331..52f3146c74fd 100644 --- a/packages/angular_devkit/schematics/src/rules/move_spec.ts +++ b/packages/angular_devkit/schematics/src/rules/move_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-non-null-assertion import { of as observableOf } from 'rxjs'; import { SchematicContext } from '../engine/interface'; diff --git a/packages/angular_devkit/schematics/src/rules/random.ts b/packages/angular_devkit/schematics/src/rules/random.ts index a2575f57a5b0..9e4830d3556a 100644 --- a/packages/angular_devkit/schematics/src/rules/random.ts +++ b/packages/angular_devkit/schematics/src/rules/random.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Source } from '../engine/interface'; import { HostTree } from '../tree/host-tree'; diff --git a/packages/angular_devkit/schematics/src/rules/rename.ts b/packages/angular_devkit/schematics/src/rules/rename.ts index 2405d5302273..2dd7e2c9e7cd 100644 --- a/packages/angular_devkit/schematics/src/rules/rename.ts +++ b/packages/angular_devkit/schematics/src/rules/rename.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { normalize } from '@angular-devkit/core'; import { Rule } from '../engine/interface'; import { FilePredicate } from '../tree/interface'; diff --git a/packages/angular_devkit/schematics/src/rules/rename_spec.ts b/packages/angular_devkit/schematics/src/rules/rename_spec.ts index c9fdda3cdd4a..627a3fe42817 100644 --- a/packages/angular_devkit/schematics/src/rules/rename_spec.ts +++ b/packages/angular_devkit/schematics/src/rules/rename_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-non-null-assertion import { of as observableOf } from 'rxjs'; import { SchematicContext } from '../engine/interface'; diff --git a/packages/angular_devkit/schematics/src/rules/schematic.ts b/packages/angular_devkit/schematics/src/rules/schematic.ts index 22002c131ff6..8d694a7606d4 100644 --- a/packages/angular_devkit/schematics/src/rules/schematic.ts +++ b/packages/angular_devkit/schematics/src/rules/schematic.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { of as observableOf } from 'rxjs'; import { last, map } from 'rxjs/operators'; import { ExecutionOptions, Rule, SchematicContext } from '../engine/interface'; diff --git a/packages/angular_devkit/schematics/src/rules/template.ts b/packages/angular_devkit/schematics/src/rules/template.ts index 5b34acf90444..f012c32a8cba 100644 --- a/packages/angular_devkit/schematics/src/rules/template.ts +++ b/packages/angular_devkit/schematics/src/rules/template.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BaseException, normalize, template as templateImpl } from '@angular-devkit/core'; import { TextDecoder } from 'util'; import { FileOperator, Rule } from '../engine/interface'; diff --git a/packages/angular_devkit/schematics/src/rules/template_spec.ts b/packages/angular_devkit/schematics/src/rules/template_spec.ts index 56e99f9a90dd..c558e51f426a 100644 --- a/packages/angular_devkit/schematics/src/rules/template_spec.ts +++ b/packages/angular_devkit/schematics/src/rules/template_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-implicit-dependencies import { normalize } from '@angular-devkit/core'; import { UnitTestTree } from '@angular-devkit/schematics/testing'; diff --git a/packages/angular_devkit/schematics/src/rules/url.ts b/packages/angular_devkit/schematics/src/rules/url.ts index 027bf62a4f90..a54e51aaa9d9 100644 --- a/packages/angular_devkit/schematics/src/rules/url.ts +++ b/packages/angular_devkit/schematics/src/rules/url.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { parse } from 'url'; import { SchematicContext, Source } from '../engine/interface'; diff --git a/packages/angular_devkit/schematics/src/sink/dryrun.ts b/packages/angular_devkit/schematics/src/sink/dryrun.ts index b17ddff12aa9..94d4802094e1 100644 --- a/packages/angular_devkit/schematics/src/sink/dryrun.ts +++ b/packages/angular_devkit/schematics/src/sink/dryrun.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { normalize, virtualFs } from '@angular-devkit/core'; import { NodeJsSyncHost } from '@angular-devkit/core/node'; import { Observable, Subject, of } from 'rxjs'; diff --git a/packages/angular_devkit/schematics/src/sink/dryrun_spec.ts b/packages/angular_devkit/schematics/src/sink/dryrun_spec.ts index 9f624137865e..76503fdad967 100644 --- a/packages/angular_devkit/schematics/src/sink/dryrun_spec.ts +++ b/packages/angular_devkit/schematics/src/sink/dryrun_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-implicit-dependencies import { Path, normalize, virtualFs } from '@angular-devkit/core'; import { toArray } from 'rxjs/operators'; diff --git a/packages/angular_devkit/schematics/src/sink/host.ts b/packages/angular_devkit/schematics/src/sink/host.ts index aa498ea2a60a..b25ab59b9e72 100644 --- a/packages/angular_devkit/schematics/src/sink/host.ts +++ b/packages/angular_devkit/schematics/src/sink/host.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Path, virtualFs } from '@angular-devkit/core'; import { EMPTY, diff --git a/packages/angular_devkit/schematics/src/sink/host_spec.ts b/packages/angular_devkit/schematics/src/sink/host_spec.ts index 8ad2ef8c8cbb..374139e28e00 100644 --- a/packages/angular_devkit/schematics/src/sink/host_spec.ts +++ b/packages/angular_devkit/schematics/src/sink/host_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-implicit-dependencies import { normalize, virtualFs } from '@angular-devkit/core'; import { HostSink } from '@angular-devkit/schematics'; diff --git a/packages/angular_devkit/schematics/src/sink/sink.ts b/packages/angular_devkit/schematics/src/sink/sink.ts index fe0c2d5adff6..7952945f6119 100644 --- a/packages/angular_devkit/schematics/src/sink/sink.ts +++ b/packages/angular_devkit/schematics/src/sink/sink.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Observable, concat, diff --git a/packages/angular_devkit/schematics/src/tree/action.ts b/packages/angular_devkit/schematics/src/tree/action.ts index 30dace1305db..f8b33c912634 100644 --- a/packages/angular_devkit/schematics/src/tree/action.ts +++ b/packages/angular_devkit/schematics/src/tree/action.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BaseException, Path } from '@angular-devkit/core'; diff --git a/packages/angular_devkit/schematics/src/tree/action_spec.ts b/packages/angular_devkit/schematics/src/tree/action_spec.ts index 20c76278a026..194ba95222ac 100644 --- a/packages/angular_devkit/schematics/src/tree/action_spec.ts +++ b/packages/angular_devkit/schematics/src/tree/action_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { normalize } from '@angular-devkit/core'; import { Action, ActionList } from './action'; diff --git a/packages/angular_devkit/schematics/src/tree/common_spec.ts b/packages/angular_devkit/schematics/src/tree/common_spec.ts index 141a744a24a6..c86bd4334879 100644 --- a/packages/angular_devkit/schematics/src/tree/common_spec.ts +++ b/packages/angular_devkit/schematics/src/tree/common_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-non-null-assertion import { normalize } from '@angular-devkit/core'; import { Tree } from './interface'; diff --git a/packages/angular_devkit/schematics/src/tree/delegate.ts b/packages/angular_devkit/schematics/src/tree/delegate.ts index 5e51ac7b1547..8ce438cf50db 100644 --- a/packages/angular_devkit/schematics/src/tree/delegate.ts +++ b/packages/angular_devkit/schematics/src/tree/delegate.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Action } from './action'; import { DirEntry, diff --git a/packages/angular_devkit/schematics/src/tree/empty.ts b/packages/angular_devkit/schematics/src/tree/empty.ts index 04f598841368..9fedabe346b2 100644 --- a/packages/angular_devkit/schematics/src/tree/empty.ts +++ b/packages/angular_devkit/schematics/src/tree/empty.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { HostTree } from './host-tree'; diff --git a/packages/angular_devkit/schematics/src/tree/entry.ts b/packages/angular_devkit/schematics/src/tree/entry.ts index a4dd2c02d723..9962729e79a2 100644 --- a/packages/angular_devkit/schematics/src/tree/entry.ts +++ b/packages/angular_devkit/schematics/src/tree/entry.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Path } from '@angular-devkit/core'; import { FileEntry } from './interface'; diff --git a/packages/angular_devkit/schematics/src/tree/host-tree.ts b/packages/angular_devkit/schematics/src/tree/host-tree.ts index f6cd47f88850..a4bb2f0eb215 100644 --- a/packages/angular_devkit/schematics/src/tree/host-tree.ts +++ b/packages/angular_devkit/schematics/src/tree/host-tree.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Path, PathFragment, diff --git a/packages/angular_devkit/schematics/src/tree/host-tree_spec.ts b/packages/angular_devkit/schematics/src/tree/host-tree_spec.ts index a6d0c6c231cf..8412d23b9e95 100644 --- a/packages/angular_devkit/schematics/src/tree/host-tree_spec.ts +++ b/packages/angular_devkit/schematics/src/tree/host-tree_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { normalize, virtualFs } from '@angular-devkit/core'; import { FilterHostTree, HostTree } from './host-tree'; import { MergeStrategy } from './interface'; diff --git a/packages/angular_devkit/schematics/src/tree/interface.ts b/packages/angular_devkit/schematics/src/tree/interface.ts index df763916b351..25f6b8b73085 100644 --- a/packages/angular_devkit/schematics/src/tree/interface.ts +++ b/packages/angular_devkit/schematics/src/tree/interface.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Path, PathFragment } from '@angular-devkit/core'; import { Action } from './action'; diff --git a/packages/angular_devkit/schematics/src/tree/null.ts b/packages/angular_devkit/schematics/src/tree/null.ts index cd0a9ba535d4..a3255ceeb39e 100644 --- a/packages/angular_devkit/schematics/src/tree/null.ts +++ b/packages/angular_devkit/schematics/src/tree/null.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BaseException, Path, diff --git a/packages/angular_devkit/schematics/src/tree/recorder.ts b/packages/angular_devkit/schematics/src/tree/recorder.ts index 8b18b8182e55..379d64ea47c8 100644 --- a/packages/angular_devkit/schematics/src/tree/recorder.ts +++ b/packages/angular_devkit/schematics/src/tree/recorder.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { ContentHasMutatedException } from '../exception/exception'; import { UpdateBuffer } from '../utility/update-buffer'; import { FileEntry, UpdateRecorder } from './interface'; diff --git a/packages/angular_devkit/schematics/src/tree/recorder_spec.ts b/packages/angular_devkit/schematics/src/tree/recorder_spec.ts index 0840191ceb1c..740966f58933 100644 --- a/packages/angular_devkit/schematics/src/tree/recorder_spec.ts +++ b/packages/angular_devkit/schematics/src/tree/recorder_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { normalize } from '@angular-devkit/core'; import { SimpleFileEntry } from './entry'; import { UpdateRecorderBase, UpdateRecorderBom } from './recorder'; diff --git a/packages/angular_devkit/schematics/src/tree/scoped.ts b/packages/angular_devkit/schematics/src/tree/scoped.ts index e503d76878f1..a42f7f067c6d 100644 --- a/packages/angular_devkit/schematics/src/tree/scoped.ts +++ b/packages/angular_devkit/schematics/src/tree/scoped.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { NormalizedRoot, Path, diff --git a/packages/angular_devkit/schematics/src/tree/scoped_spec.ts b/packages/angular_devkit/schematics/src/tree/scoped_spec.ts index 35fb3ae3a83e..cc2b1fef1a99 100644 --- a/packages/angular_devkit/schematics/src/tree/scoped_spec.ts +++ b/packages/angular_devkit/schematics/src/tree/scoped_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { UnitTestTree } from '../../testing'; import { HostTree } from './host-tree'; import { ScopedTree } from './scoped'; diff --git a/packages/angular_devkit/schematics/src/tree/static.ts b/packages/angular_devkit/schematics/src/tree/static.ts index 516169abee24..aab073851862 100644 --- a/packages/angular_devkit/schematics/src/tree/static.ts +++ b/packages/angular_devkit/schematics/src/tree/static.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { SchematicsException } from '../exception/exception'; import { FilterHostTree, HostTree } from './host-tree'; import { FilePredicate, MergeStrategy, Tree } from './interface'; diff --git a/packages/angular_devkit/schematics/src/utility/linked-list.ts b/packages/angular_devkit/schematics/src/utility/linked-list.ts index 39b57a4a69ab..f11468a0ca75 100644 --- a/packages/angular_devkit/schematics/src/utility/linked-list.ts +++ b/packages/angular_devkit/schematics/src/utility/linked-list.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - export class LinkedList { constructor(private _head: T) {} diff --git a/packages/angular_devkit/schematics/src/utility/update-buffer.ts b/packages/angular_devkit/schematics/src/utility/update-buffer.ts index 4389f8ab2471..04bdbeaa38bc 100644 --- a/packages/angular_devkit/schematics/src/utility/update-buffer.ts +++ b/packages/angular_devkit/schematics/src/utility/update-buffer.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BaseException } from '@angular-devkit/core'; import { LinkedList } from './linked-list'; diff --git a/packages/angular_devkit/schematics/src/utility/update-buffer_spec.ts b/packages/angular_devkit/schematics/src/utility/update-buffer_spec.ts index 64e650feeb29..9b8c7a343919 100644 --- a/packages/angular_devkit/schematics/src/utility/update-buffer_spec.ts +++ b/packages/angular_devkit/schematics/src/utility/update-buffer_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { UpdateBuffer } from './update-buffer'; describe('UpdateBuffer', () => { diff --git a/packages/angular_devkit/schematics/src/workflow/base.ts b/packages/angular_devkit/schematics/src/workflow/base.ts index 54d58d00e08f..38bb15f171cb 100644 --- a/packages/angular_devkit/schematics/src/workflow/base.ts +++ b/packages/angular_devkit/schematics/src/workflow/base.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { logging, schema, virtualFs } from '@angular-devkit/core'; import { EMPTY, Observable, Subject, concat, from, of, throwError } from 'rxjs'; import { concatMap, defaultIfEmpty, ignoreElements, last, tap } from 'rxjs/operators'; diff --git a/packages/angular_devkit/schematics/src/workflow/index.ts b/packages/angular_devkit/schematics/src/workflow/index.ts index bec7bf5d64d4..8acc747621df 100644 --- a/packages/angular_devkit/schematics/src/workflow/index.ts +++ b/packages/angular_devkit/schematics/src/workflow/index.ts @@ -1,9 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export * from './base'; export * from './interface'; diff --git a/packages/angular_devkit/schematics/src/workflow/interface.ts b/packages/angular_devkit/schematics/src/workflow/interface.ts index 01de696707ce..a4b853bb6e45 100644 --- a/packages/angular_devkit/schematics/src/workflow/interface.ts +++ b/packages/angular_devkit/schematics/src/workflow/interface.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { logging } from '@angular-devkit/core'; import { Observable } from 'rxjs'; diff --git a/packages/angular_devkit/schematics/tasks/index.ts b/packages/angular_devkit/schematics/tasks/index.ts index 893b35b83e4a..1f0b22aef666 100644 --- a/packages/angular_devkit/schematics/tasks/index.ts +++ b/packages/angular_devkit/schematics/tasks/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export { NodePackageInstallTask } from './package-manager/install-task'; export { NodePackageLinkTask } from './package-manager/link-task'; export { RepositoryInitializerTask } from './repo-init/init-task'; diff --git a/packages/angular_devkit/schematics/tasks/node/index.ts b/packages/angular_devkit/schematics/tasks/node/index.ts index d711d291803b..2378c4f8c3f9 100644 --- a/packages/angular_devkit/schematics/tasks/node/index.ts +++ b/packages/angular_devkit/schematics/tasks/node/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { TaskExecutor, TaskExecutorFactory } from '../../src'; import { NodePackageName, NodePackageTaskFactoryOptions } from '../package-manager/options'; import { diff --git a/packages/angular_devkit/schematics/tasks/package-manager/executor.ts b/packages/angular_devkit/schematics/tasks/package-manager/executor.ts index fa6d199949fb..857cd13504bf 100644 --- a/packages/angular_devkit/schematics/tasks/package-manager/executor.ts +++ b/packages/angular_devkit/schematics/tasks/package-manager/executor.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BaseException } from '@angular-devkit/core'; import { SpawnOptions, spawn } from 'child_process'; import * as ora from 'ora'; diff --git a/packages/angular_devkit/schematics/tasks/package-manager/install-task.ts b/packages/angular_devkit/schematics/tasks/package-manager/install-task.ts index 028e6da74f9a..fcd0da21d215 100644 --- a/packages/angular_devkit/schematics/tasks/package-manager/install-task.ts +++ b/packages/angular_devkit/schematics/tasks/package-manager/install-task.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { TaskConfiguration, TaskConfigurationGenerator } from '../../src'; import { NodePackageName, NodePackageTaskOptions } from './options'; diff --git a/packages/angular_devkit/schematics/tasks/package-manager/link-task.ts b/packages/angular_devkit/schematics/tasks/package-manager/link-task.ts index 900a47f9ff20..114aa8658813 100644 --- a/packages/angular_devkit/schematics/tasks/package-manager/link-task.ts +++ b/packages/angular_devkit/schematics/tasks/package-manager/link-task.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { TaskConfiguration, TaskConfigurationGenerator } from '../../src'; import { NodePackageName, NodePackageTaskOptions } from './options'; diff --git a/packages/angular_devkit/schematics/tasks/package-manager/options.ts b/packages/angular_devkit/schematics/tasks/package-manager/options.ts index e9a665424d90..d584f3630a72 100644 --- a/packages/angular_devkit/schematics/tasks/package-manager/options.ts +++ b/packages/angular_devkit/schematics/tasks/package-manager/options.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export const NodePackageName = 'node-package'; export interface NodePackageTaskFactoryOptions { diff --git a/packages/angular_devkit/schematics/tasks/repo-init/executor.ts b/packages/angular_devkit/schematics/tasks/repo-init/executor.ts index de1ef00933f2..3a3dab5a1e9f 100644 --- a/packages/angular_devkit/schematics/tasks/repo-init/executor.ts +++ b/packages/angular_devkit/schematics/tasks/repo-init/executor.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { tags } from '@angular-devkit/core'; import { SpawnOptions, spawn } from 'child_process'; import * as path from 'path'; diff --git a/packages/angular_devkit/schematics/tasks/repo-init/init-task.ts b/packages/angular_devkit/schematics/tasks/repo-init/init-task.ts index df2a2888d4bd..66bf4504153a 100644 --- a/packages/angular_devkit/schematics/tasks/repo-init/init-task.ts +++ b/packages/angular_devkit/schematics/tasks/repo-init/init-task.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { TaskConfiguration, TaskConfigurationGenerator } from '../../src'; import { RepositoryInitializerName, RepositoryInitializerTaskOptions } from './options'; diff --git a/packages/angular_devkit/schematics/tasks/repo-init/options.ts b/packages/angular_devkit/schematics/tasks/repo-init/options.ts index 8153764058f8..beab8ed5ac78 100644 --- a/packages/angular_devkit/schematics/tasks/repo-init/options.ts +++ b/packages/angular_devkit/schematics/tasks/repo-init/options.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export const RepositoryInitializerName = 'repo-init'; export interface RepositoryInitializerTaskFactoryOptions { diff --git a/packages/angular_devkit/schematics/tasks/run-schematic/executor.ts b/packages/angular_devkit/schematics/tasks/run-schematic/executor.ts index 4aae9a071c8e..43064327f616 100644 --- a/packages/angular_devkit/schematics/tasks/run-schematic/executor.ts +++ b/packages/angular_devkit/schematics/tasks/run-schematic/executor.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { SchematicContext, TaskExecutor } from '../../src'; import { RunSchematicTaskOptions } from './options'; diff --git a/packages/angular_devkit/schematics/tasks/run-schematic/options.ts b/packages/angular_devkit/schematics/tasks/run-schematic/options.ts index a7d90f632755..8034753f266a 100644 --- a/packages/angular_devkit/schematics/tasks/run-schematic/options.ts +++ b/packages/angular_devkit/schematics/tasks/run-schematic/options.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export const RunSchematicName = 'run-schematic'; export interface RunSchematicTaskOptions { diff --git a/packages/angular_devkit/schematics/tasks/run-schematic/task.ts b/packages/angular_devkit/schematics/tasks/run-schematic/task.ts index b8f17d307802..2c7fdb605007 100644 --- a/packages/angular_devkit/schematics/tasks/run-schematic/task.ts +++ b/packages/angular_devkit/schematics/tasks/run-schematic/task.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { TaskConfiguration, TaskConfigurationGenerator } from '../../src'; import { RunSchematicName, RunSchematicTaskOptions } from './options'; diff --git a/packages/angular_devkit/schematics/tasks/tslint-fix/executor.ts b/packages/angular_devkit/schematics/tasks/tslint-fix/executor.ts index 793b19a5756f..c54d57a6170c 100644 --- a/packages/angular_devkit/schematics/tasks/tslint-fix/executor.ts +++ b/packages/angular_devkit/schematics/tasks/tslint-fix/executor.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as fs from 'fs'; import * as path from 'path'; import * as tsLint from 'tslint'; // tslint:disable-line:no-implicit-dependencies diff --git a/packages/angular_devkit/schematics/tasks/tslint-fix/executor_spec.ts b/packages/angular_devkit/schematics/tasks/tslint-fix/executor_spec.ts index a25497ec6a50..c1e740b44d8f 100644 --- a/packages/angular_devkit/schematics/tasks/tslint-fix/executor_spec.ts +++ b/packages/angular_devkit/schematics/tasks/tslint-fix/executor_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-implicit-dependencies import { getSystemPath, normalize, virtualFs } from '@angular-devkit/core'; import { TempScopedNodeJsSyncHost } from '@angular-devkit/core/node/testing'; diff --git a/packages/angular_devkit/schematics/tasks/tslint-fix/options.ts b/packages/angular_devkit/schematics/tasks/tslint-fix/options.ts index 5071dc305c8e..707e9686d03c 100644 --- a/packages/angular_devkit/schematics/tasks/tslint-fix/options.ts +++ b/packages/angular_devkit/schematics/tasks/tslint-fix/options.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { JsonObject } from '@angular-devkit/core'; /** @deprecated since version 11. Use `ng lint --fix` directly instead. */ diff --git a/packages/angular_devkit/schematics/tasks/tslint-fix/task.ts b/packages/angular_devkit/schematics/tasks/tslint-fix/task.ts index 12ad5c4e1e20..7c2775a3d131 100644 --- a/packages/angular_devkit/schematics/tasks/tslint-fix/task.ts +++ b/packages/angular_devkit/schematics/tasks/tslint-fix/task.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { JsonObject } from '@angular-devkit/core'; import { TaskConfiguration, TaskConfigurationGenerator } from '../../src'; import { TslintFixName, TslintFixTaskOptions, TslintFixTaskOptionsBase } from './options'; diff --git a/packages/angular_devkit/schematics/tasks/tslint-fix/test/custom-rule.ts b/packages/angular_devkit/schematics/tasks/tslint-fix/test/custom-rule.ts index d8c233911864..c6d276ae8432 100644 --- a/packages/angular_devkit/schematics/tasks/tslint-fix/test/custom-rule.ts +++ b/packages/angular_devkit/schematics/tasks/tslint-fix/test/custom-rule.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Rule, SchematicContext, diff --git a/packages/angular_devkit/schematics/tasks/tslint-fix/test/rules/customRuleRule.js b/packages/angular_devkit/schematics/tasks/tslint-fix/test/rules/customRuleRule.js index 68c4882e0f5a..4c7272b1c3d9 100644 --- a/packages/angular_devkit/schematics/tasks/tslint-fix/test/rules/customRuleRule.js +++ b/packages/angular_devkit/schematics/tasks/tslint-fix/test/rules/customRuleRule.js @@ -1,11 +1,12 @@ "use strict"; /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + Object.defineProperty(exports, "__esModule", { value: true }); const Lint = require('tslint'); diff --git a/packages/angular_devkit/schematics/tasks/tslint-fix/test/run-task.ts b/packages/angular_devkit/schematics/tasks/tslint-fix/test/run-task.ts index 571c08d978e3..5a15e2df4289 100644 --- a/packages/angular_devkit/schematics/tasks/tslint-fix/test/run-task.ts +++ b/packages/angular_devkit/schematics/tasks/tslint-fix/test/run-task.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Rule, SchematicContext, diff --git a/packages/angular_devkit/schematics/testing/index.ts b/packages/angular_devkit/schematics/testing/index.ts index 05ba43117ca3..10c31ba36626 100644 --- a/packages/angular_devkit/schematics/testing/index.ts +++ b/packages/angular_devkit/schematics/testing/index.ts @@ -1,8 +1,9 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export * from './schematic-test-runner'; diff --git a/packages/angular_devkit/schematics/testing/schematic-test-runner.ts b/packages/angular_devkit/schematics/testing/schematic-test-runner.ts index bae056e799f4..f6d4226d38d0 100644 --- a/packages/angular_devkit/schematics/testing/schematic-test-runner.ts +++ b/packages/angular_devkit/schematics/testing/schematic-test-runner.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { logging, schema } from '@angular-devkit/core'; import { Observable, of as observableOf } from 'rxjs'; import { map } from 'rxjs/operators'; diff --git a/packages/angular_devkit/schematics/tools/description.ts b/packages/angular_devkit/schematics/tools/description.ts index 52ee09d13f7c..5bb57150b74e 100644 --- a/packages/angular_devkit/schematics/tools/description.ts +++ b/packages/angular_devkit/schematics/tools/description.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { JsonObject } from '@angular-devkit/core'; import { Collection, diff --git a/packages/angular_devkit/schematics/tools/export-ref.ts b/packages/angular_devkit/schematics/tools/export-ref.ts index a4bf7b89e759..9232195abffd 100644 --- a/packages/angular_devkit/schematics/tools/export-ref.ts +++ b/packages/angular_devkit/schematics/tools/export-ref.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { dirname, resolve } from 'path'; diff --git a/packages/angular_devkit/schematics/tools/export-ref_spec.ts b/packages/angular_devkit/schematics/tools/export-ref_spec.ts index 782464c65cce..51c1b6185a5a 100644 --- a/packages/angular_devkit/schematics/tools/export-ref_spec.ts +++ b/packages/angular_devkit/schematics/tools/export-ref_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as path from 'path'; import { CollectionCannotBeResolvedException } from '.'; import { ExportStringRef } from './export-ref'; diff --git a/packages/angular_devkit/schematics/tools/fallback-engine-host.ts b/packages/angular_devkit/schematics/tools/fallback-engine-host.ts index d6d0c61eeb22..a1ad72b416ae 100644 --- a/packages/angular_devkit/schematics/tools/fallback-engine-host.ts +++ b/packages/angular_devkit/schematics/tools/fallback-engine-host.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Observable, of as observableOf, throwError } from 'rxjs'; import { mergeMap } from 'rxjs/operators'; import { Url } from 'url'; diff --git a/packages/angular_devkit/schematics/tools/file-system-engine-host-base.ts b/packages/angular_devkit/schematics/tools/file-system-engine-host-base.ts index bae042aa74d8..0ba831b25c30 100644 --- a/packages/angular_devkit/schematics/tools/file-system-engine-host-base.ts +++ b/packages/angular_devkit/schematics/tools/file-system-engine-host-base.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BaseException, InvalidJsonCharacterException, diff --git a/packages/angular_devkit/schematics/tools/file-system-engine-host.ts b/packages/angular_devkit/schematics/tools/file-system-engine-host.ts index 3b200afe7a05..b1496b7f5c06 100644 --- a/packages/angular_devkit/schematics/tools/file-system-engine-host.ts +++ b/packages/angular_devkit/schematics/tools/file-system-engine-host.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { existsSync } from 'fs'; import { join } from 'path'; import { Observable, from, throwError } from 'rxjs'; diff --git a/packages/angular_devkit/schematics/tools/file-system-engine-host_spec.ts b/packages/angular_devkit/schematics/tools/file-system-engine-host_spec.ts index 905525e2aa79..b9d5566af0a5 100644 --- a/packages/angular_devkit/schematics/tools/file-system-engine-host_spec.ts +++ b/packages/angular_devkit/schematics/tools/file-system-engine-host_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-any no-big-function no-implicit-dependencies import { normalize, virtualFs } from '@angular-devkit/core'; import { HostSink, HostTree, SchematicEngine } from '@angular-devkit/schematics'; diff --git a/packages/angular_devkit/schematics/tools/file-system-utility.ts b/packages/angular_devkit/schematics/tools/file-system-utility.ts index 06784b347254..c94994b94c95 100644 --- a/packages/angular_devkit/schematics/tools/file-system-utility.ts +++ b/packages/angular_devkit/schematics/tools/file-system-utility.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { FileDoesNotExistException, JsonParseMode, diff --git a/packages/angular_devkit/schematics/tools/index.ts b/packages/angular_devkit/schematics/tools/index.ts index 97c7b85d7338..0b982b87f6f0 100644 --- a/packages/angular_devkit/schematics/tools/index.ts +++ b/packages/angular_devkit/schematics/tools/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export * from './description'; export * from './export-ref'; export * from './file-system-engine-host-base'; diff --git a/packages/angular_devkit/schematics/tools/node-module-engine-host.ts b/packages/angular_devkit/schematics/tools/node-module-engine-host.ts index df203880699c..1b5b460aa431 100644 --- a/packages/angular_devkit/schematics/tools/node-module-engine-host.ts +++ b/packages/angular_devkit/schematics/tools/node-module-engine-host.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { BaseException, InvalidJsonCharacterException, diff --git a/packages/angular_devkit/schematics/tools/node-module-engine-host_spec.ts b/packages/angular_devkit/schematics/tools/node-module-engine-host_spec.ts index 7e02d9ff585e..46d740f26605 100644 --- a/packages/angular_devkit/schematics/tools/node-module-engine-host_spec.ts +++ b/packages/angular_devkit/schematics/tools/node-module-engine-host_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - // tslint:disable:no-implicit-dependencies import { SchematicEngine } from '@angular-devkit/schematics'; diff --git a/packages/angular_devkit/schematics/tools/node-modules-test-engine-host.ts b/packages/angular_devkit/schematics/tools/node-modules-test-engine-host.ts index a2b336695287..078755c5d3eb 100644 --- a/packages/angular_devkit/schematics/tools/node-modules-test-engine-host.ts +++ b/packages/angular_devkit/schematics/tools/node-modules-test-engine-host.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { TaskConfiguration, TaskConfigurationGenerator, TaskId } from '../src/engine'; import { FileSystemSchematicContext } from './description'; import { NodeModulesEngineHost } from './node-module-engine-host'; diff --git a/packages/angular_devkit/schematics/tools/schema-option-transform.ts b/packages/angular_devkit/schematics/tools/schema-option-transform.ts index 1c7491ecb60a..e4bd8d85ca1c 100644 --- a/packages/angular_devkit/schematics/tools/schema-option-transform.ts +++ b/packages/angular_devkit/schematics/tools/schema-option-transform.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { deepCopy, schema } from '@angular-devkit/core'; import { Observable, of as observableOf } from 'rxjs'; import { first, map, mergeMap } from 'rxjs/operators'; diff --git a/packages/angular_devkit/schematics/tools/workflow/node-workflow.ts b/packages/angular_devkit/schematics/tools/workflow/node-workflow.ts index 8f20d6ccd71f..9aef4479657c 100644 --- a/packages/angular_devkit/schematics/tools/workflow/node-workflow.ts +++ b/packages/angular_devkit/schematics/tools/workflow/node-workflow.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Path, getSystemPath, normalize, schema, virtualFs } from '@angular-devkit/core'; import { NodeJsSyncHost } from '@angular-devkit/core/node'; import { diff --git a/packages/angular_devkit/schematics/tools/workflow/node-workflow_spec.ts b/packages/angular_devkit/schematics/tools/workflow/node-workflow_spec.ts index df2af3c9d94c..fb136a27177c 100644 --- a/packages/angular_devkit/schematics/tools/workflow/node-workflow_spec.ts +++ b/packages/angular_devkit/schematics/tools/workflow/node-workflow_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-implicit-dependencies import { NodeJsSyncHost } from '@angular-devkit/core/node'; import { NodeWorkflow } from '@angular-devkit/schematics/tools'; diff --git a/packages/angular_devkit/schematics_cli/bin/schematics.ts b/packages/angular_devkit/schematics_cli/bin/schematics.ts index c509f2cf4e2b..5d6ab1653621 100644 --- a/packages/angular_devkit/schematics_cli/bin/schematics.ts +++ b/packages/angular_devkit/schematics_cli/bin/schematics.ts @@ -1,12 +1,11 @@ #!/usr/bin/env node /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - // symbol polyfill must go first import 'symbol-observable'; // tslint:disable-next-line:ordered-imports import-groups diff --git a/packages/angular_devkit/schematics_cli/bin/schematics_spec.ts b/packages/angular_devkit/schematics_cli/bin/schematics_spec.ts index 1955aac0777f..78e2a285c2d0 100644 --- a/packages/angular_devkit/schematics_cli/bin/schematics_spec.ts +++ b/packages/angular_devkit/schematics_cli/bin/schematics_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { main } from './schematics'; // We only care about the write method in these mocks of NodeJS.WriteStream. diff --git a/packages/angular_devkit/schematics_cli/blank/factory.ts b/packages/angular_devkit/schematics_cli/blank/factory.ts index 996b0522e217..cec54209c29b 100644 --- a/packages/angular_devkit/schematics_cli/blank/factory.ts +++ b/packages/angular_devkit/schematics_cli/blank/factory.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { JsonAstObject, JsonObject, diff --git a/packages/angular_devkit/schematics_cli/schematic/factory.ts b/packages/angular_devkit/schematics_cli/schematic/factory.ts index 46fedd3a11d6..9f8583b3cb71 100644 --- a/packages/angular_devkit/schematics_cli/schematic/factory.ts +++ b/packages/angular_devkit/schematics_cli/schematic/factory.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { strings } from '@angular-devkit/core'; import { Rule, diff --git a/packages/ngtools/webpack/src/benchmark.ts b/packages/ngtools/webpack/src/benchmark.ts index b54f5d39f5fb..090d9b06de73 100644 --- a/packages/ngtools/webpack/src/benchmark.ts +++ b/packages/ngtools/webpack/src/benchmark.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // Internal benchmark reporting flag. // Use with CLI --no-progress flag for best results. // This should be false for commited code. diff --git a/packages/ngtools/webpack/src/index.ts b/packages/ngtools/webpack/src/index.ts index 9d7da50295de..3295f7071a81 100644 --- a/packages/ngtools/webpack/src/index.ts +++ b/packages/ngtools/webpack/src/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as ivyInternal from './ivy'; export { AngularWebpackLoaderPath, diff --git a/packages/ngtools/webpack/src/ivy/cache.ts b/packages/ngtools/webpack/src/ivy/cache.ts index b6363a0351d8..c3fac83e8f9b 100644 --- a/packages/ngtools/webpack/src/ivy/cache.ts +++ b/packages/ngtools/webpack/src/ivy/cache.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as ts from 'typescript'; import { normalizePath } from './paths'; diff --git a/packages/ngtools/webpack/src/ivy/diagnostics.ts b/packages/ngtools/webpack/src/ivy/diagnostics.ts index 6146fc13326e..8be12997726d 100644 --- a/packages/ngtools/webpack/src/ivy/diagnostics.ts +++ b/packages/ngtools/webpack/src/ivy/diagnostics.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Diagnostics, formatDiagnostics } from '@angular/compiler-cli'; import { DiagnosticCategory } from 'typescript'; import { Compilation } from 'webpack'; diff --git a/packages/ngtools/webpack/src/ivy/host.ts b/packages/ngtools/webpack/src/ivy/host.ts index 8dbb9e818810..50e65cf4a85e 100644 --- a/packages/ngtools/webpack/src/ivy/host.ts +++ b/packages/ngtools/webpack/src/ivy/host.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { CompilerHost } from '@angular/compiler-cli'; import { createHash } from 'crypto'; import * as path from 'path'; diff --git a/packages/ngtools/webpack/src/ivy/index.ts b/packages/ngtools/webpack/src/ivy/index.ts index 132e9f84c75d..bf7595bd847e 100644 --- a/packages/ngtools/webpack/src/ivy/index.ts +++ b/packages/ngtools/webpack/src/ivy/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export { angularWebpackLoader as default } from './loader'; export { AngularWebpackPluginOptions, AngularWebpackPlugin } from './plugin'; diff --git a/packages/ngtools/webpack/src/ivy/loader.ts b/packages/ngtools/webpack/src/ivy/loader.ts index a69412294929..00e3760741cb 100644 --- a/packages/ngtools/webpack/src/ivy/loader.ts +++ b/packages/ngtools/webpack/src/ivy/loader.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as path from 'path'; import { AngularPluginSymbol, FileEmitterCollection } from './symbol'; diff --git a/packages/ngtools/webpack/src/ivy/paths.ts b/packages/ngtools/webpack/src/ivy/paths.ts index ff3b9e1b2800..bddc20ce306f 100644 --- a/packages/ngtools/webpack/src/ivy/paths.ts +++ b/packages/ngtools/webpack/src/ivy/paths.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as nodePath from 'path'; const normalizationCache = new Map(); diff --git a/packages/ngtools/webpack/src/ivy/plugin.ts b/packages/ngtools/webpack/src/ivy/plugin.ts index 970d826b2eee..c8ca3767b8fb 100644 --- a/packages/ngtools/webpack/src/ivy/plugin.ts +++ b/packages/ngtools/webpack/src/ivy/plugin.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { CompilerHost, CompilerOptions, readConfiguration } from '@angular/compiler-cli'; import { NgtscProgram } from '@angular/compiler-cli/src/ngtsc/program'; import { createHash } from 'crypto'; diff --git a/packages/ngtools/webpack/src/ivy/symbol.ts b/packages/ngtools/webpack/src/ivy/symbol.ts index 451946ff52ca..4f7ad08793fa 100644 --- a/packages/ngtools/webpack/src/ivy/symbol.ts +++ b/packages/ngtools/webpack/src/ivy/symbol.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export const AngularPluginSymbol = Symbol.for('@angular-devkit/build-angular[angular-compiler]'); export interface EmitFileResult { diff --git a/packages/ngtools/webpack/src/ivy/system.ts b/packages/ngtools/webpack/src/ivy/system.ts index 811ec369360f..27ca17942d82 100644 --- a/packages/ngtools/webpack/src/ivy/system.ts +++ b/packages/ngtools/webpack/src/ivy/system.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as ts from 'typescript'; import { Compiler } from 'webpack'; import { externalizePath } from './paths'; diff --git a/packages/ngtools/webpack/src/ivy/transformation.ts b/packages/ngtools/webpack/src/ivy/transformation.ts index 1e34732564cc..b36c63bcd70b 100644 --- a/packages/ngtools/webpack/src/ivy/transformation.ts +++ b/packages/ngtools/webpack/src/ivy/transformation.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { constructorParametersDownlevelTransform } from '@angular/compiler-cli'; import * as ts from 'typescript'; import { elideImports } from '../transformers/elide_imports'; diff --git a/packages/ngtools/webpack/src/ngcc_processor.ts b/packages/ngtools/webpack/src/ngcc_processor.ts index cf0ca3df4b06..1598d5ea02d0 100644 --- a/packages/ngtools/webpack/src/ngcc_processor.ts +++ b/packages/ngtools/webpack/src/ngcc_processor.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { LogLevel, Logger, process as mainNgcc } from '@angular/compiler-cli/ngcc'; import { spawnSync } from 'child_process'; import { createHash } from 'crypto'; diff --git a/packages/ngtools/webpack/src/paths-plugin.ts b/packages/ngtools/webpack/src/paths-plugin.ts index f802cf698138..77907a6d3413 100644 --- a/packages/ngtools/webpack/src/paths-plugin.ts +++ b/packages/ngtools/webpack/src/paths-plugin.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as path from 'path'; import { CompilerOptions, MapLike } from 'typescript'; diff --git a/packages/ngtools/webpack/src/resource_loader.ts b/packages/ngtools/webpack/src/resource_loader.ts index 84f1bda45744..b29cbba8634d 100644 --- a/packages/ngtools/webpack/src/resource_loader.ts +++ b/packages/ngtools/webpack/src/resource_loader.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { createHash } from 'crypto'; import * as path from 'path'; import * as vm from 'vm'; diff --git a/packages/ngtools/webpack/src/transformers/elide_imports.ts b/packages/ngtools/webpack/src/transformers/elide_imports.ts index 5a1daa6292a9..34d1eb01ba58 100644 --- a/packages/ngtools/webpack/src/transformers/elide_imports.ts +++ b/packages/ngtools/webpack/src/transformers/elide_imports.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as ts from 'typescript'; import { RemoveNodeOperation, TransformOperation } from './interfaces'; diff --git a/packages/ngtools/webpack/src/transformers/elide_imports_spec.ts b/packages/ngtools/webpack/src/transformers/elide_imports_spec.ts index 133c08abb758..2d00789b06cd 100644 --- a/packages/ngtools/webpack/src/transformers/elide_imports_spec.ts +++ b/packages/ngtools/webpack/src/transformers/elide_imports_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-big-function import { tags } from '@angular-devkit/core'; // tslint:disable-line:no-implicit-dependencies import * as ts from 'typescript'; diff --git a/packages/ngtools/webpack/src/transformers/index.ts b/packages/ngtools/webpack/src/transformers/index.ts index e188ac203749..9c7be8001baf 100644 --- a/packages/ngtools/webpack/src/transformers/index.ts +++ b/packages/ngtools/webpack/src/transformers/index.ts @@ -1,9 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export * from './elide_imports'; export * from './replace_resources'; diff --git a/packages/ngtools/webpack/src/transformers/interfaces.ts b/packages/ngtools/webpack/src/transformers/interfaces.ts index 4eb35afcae88..462041a2fd64 100644 --- a/packages/ngtools/webpack/src/transformers/interfaces.ts +++ b/packages/ngtools/webpack/src/transformers/interfaces.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as ts from 'typescript'; export enum OPERATION_KIND { diff --git a/packages/ngtools/webpack/src/transformers/remove-ivy-jit-support-calls.ts b/packages/ngtools/webpack/src/transformers/remove-ivy-jit-support-calls.ts index 0abcbc29a9ac..5fc82f0a54a4 100644 --- a/packages/ngtools/webpack/src/transformers/remove-ivy-jit-support-calls.ts +++ b/packages/ngtools/webpack/src/transformers/remove-ivy-jit-support-calls.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as ts from 'typescript'; import { elideImports } from './elide_imports'; diff --git a/packages/ngtools/webpack/src/transformers/remove-ivy-jit-support-calls_spec.ts b/packages/ngtools/webpack/src/transformers/remove-ivy-jit-support-calls_spec.ts index 99145f97f53e..610456c4fdeb 100644 --- a/packages/ngtools/webpack/src/transformers/remove-ivy-jit-support-calls_spec.ts +++ b/packages/ngtools/webpack/src/transformers/remove-ivy-jit-support-calls_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { tags } from '@angular-devkit/core'; // tslint:disable-line:no-implicit-dependencies import * as ts from 'typescript'; import { removeIvyJitSupportCalls } from './remove-ivy-jit-support-calls'; diff --git a/packages/ngtools/webpack/src/transformers/replace_resources.ts b/packages/ngtools/webpack/src/transformers/replace_resources.ts index 200b4e928e92..387e78885b7f 100644 --- a/packages/ngtools/webpack/src/transformers/replace_resources.ts +++ b/packages/ngtools/webpack/src/transformers/replace_resources.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as ts from 'typescript'; export function replaceResources( diff --git a/packages/ngtools/webpack/src/transformers/replace_resources_spec.ts b/packages/ngtools/webpack/src/transformers/replace_resources_spec.ts index b34f458c8a73..6d1a6384c3a7 100644 --- a/packages/ngtools/webpack/src/transformers/replace_resources_spec.ts +++ b/packages/ngtools/webpack/src/transformers/replace_resources_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { tags } from '@angular-devkit/core'; // tslint:disable-line:no-implicit-dependencies import * as ts from 'typescript'; import { replaceResources } from './replace_resources'; diff --git a/packages/ngtools/webpack/src/transformers/spec_helpers.ts b/packages/ngtools/webpack/src/transformers/spec_helpers.ts index 674d809c068e..33575ad2de1b 100644 --- a/packages/ngtools/webpack/src/transformers/spec_helpers.ts +++ b/packages/ngtools/webpack/src/transformers/spec_helpers.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { basename } from 'path'; import * as ts from 'typescript'; diff --git a/packages/ngtools/webpack/src/webpack-diagnostics.ts b/packages/ngtools/webpack/src/webpack-diagnostics.ts index ac9b5cbc7c38..41584a617e82 100644 --- a/packages/ngtools/webpack/src/webpack-diagnostics.ts +++ b/packages/ngtools/webpack/src/webpack-diagnostics.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license -*/ + */ + import { Compilation, WebpackError } from 'webpack'; export function addWarning(compilation: Compilation, message: string): void { diff --git a/packages/schematics/angular/app-shell/index.ts b/packages/schematics/angular/app-shell/index.ts index 8a1fc629af56..72fe11a246a9 100644 --- a/packages/schematics/angular/app-shell/index.ts +++ b/packages/schematics/angular/app-shell/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { dirname, join, normalize } from '@angular-devkit/core'; import { Rule, diff --git a/packages/schematics/angular/app-shell/index_spec.ts b/packages/schematics/angular/app-shell/index_spec.ts index 25227f0ddb68..b0b5e846fe30 100644 --- a/packages/schematics/angular/app-shell/index_spec.ts +++ b/packages/schematics/angular/app-shell/index_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { Schema as ApplicationOptions } from '../application/schema'; import { Schema as WorkspaceOptions } from '../workspace/schema'; diff --git a/packages/schematics/angular/application/index.ts b/packages/schematics/angular/application/index.ts index d46d508b0596..3931f6bfe02f 100644 --- a/packages/schematics/angular/application/index.ts +++ b/packages/schematics/angular/application/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { JsonObject, join, diff --git a/packages/schematics/angular/application/index_spec.ts b/packages/schematics/angular/application/index_spec.ts index f0c141c700d8..de1d2d90c343 100644 --- a/packages/schematics/angular/application/index_spec.ts +++ b/packages/schematics/angular/application/index_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-big-function import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { parse as parseJson } from 'jsonc-parser'; diff --git a/packages/schematics/angular/class/index.ts b/packages/schematics/angular/class/index.ts index d01184b655a8..5ab012273a53 100644 --- a/packages/schematics/angular/class/index.ts +++ b/packages/schematics/angular/class/index.ts @@ -1,10 +1,11 @@ /** -* @license -* Copyright Google Inc. All Rights Reserved. -* -* Use of this source code is governed by an MIT-style license that can be -* found in the LICENSE file at https://angular.io/license -*/ + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import { strings } from '@angular-devkit/core'; import { Rule, diff --git a/packages/schematics/angular/class/index_spec.ts b/packages/schematics/angular/class/index_spec.ts index 674d083d759d..f9a658854595 100644 --- a/packages/schematics/angular/class/index_spec.ts +++ b/packages/schematics/angular/class/index_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { Schema as ApplicationOptions } from '../application/schema'; import { Schema as WorkspaceOptions } from '../workspace/schema'; diff --git a/packages/schematics/angular/component/index.ts b/packages/schematics/angular/component/index.ts index 0505fb1fd4e2..1f86374a3f3e 100644 --- a/packages/schematics/angular/component/index.ts +++ b/packages/schematics/angular/component/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { strings } from '@angular-devkit/core'; import { FileOperator, diff --git a/packages/schematics/angular/component/index_spec.ts b/packages/schematics/angular/component/index_spec.ts index fa6e76b3628f..34d7a9d2bbd4 100644 --- a/packages/schematics/angular/component/index_spec.ts +++ b/packages/schematics/angular/component/index_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-big-function import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { Schema as ApplicationOptions } from '../application/schema'; diff --git a/packages/schematics/angular/directive/index.ts b/packages/schematics/angular/directive/index.ts index 056455fb6b3b..b439d7a837fb 100644 --- a/packages/schematics/angular/directive/index.ts +++ b/packages/schematics/angular/directive/index.ts @@ -1,10 +1,11 @@ /** -* @license -* Copyright Google Inc. All Rights Reserved. -* -* Use of this source code is governed by an MIT-style license that can be -* found in the LICENSE file at https://angular.io/license -*/ + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import { strings } from '@angular-devkit/core'; import { Rule, diff --git a/packages/schematics/angular/directive/index_spec.ts b/packages/schematics/angular/directive/index_spec.ts index b77e976340a1..cb2060036346 100644 --- a/packages/schematics/angular/directive/index_spec.ts +++ b/packages/schematics/angular/directive/index_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { Schema as ApplicationOptions } from '../application/schema'; import { Schema as WorkspaceOptions } from '../workspace/schema'; diff --git a/packages/schematics/angular/e2e/index.ts b/packages/schematics/angular/e2e/index.ts index 56a05e94b807..57eec6759bc9 100644 --- a/packages/schematics/angular/e2e/index.ts +++ b/packages/schematics/angular/e2e/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { join, normalize, strings } from '@angular-devkit/core'; import { Rule, diff --git a/packages/schematics/angular/e2e/index_spec.ts b/packages/schematics/angular/e2e/index_spec.ts index d82b82c2af05..02d3e542ee1e 100644 --- a/packages/schematics/angular/e2e/index_spec.ts +++ b/packages/schematics/angular/e2e/index_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { Schema as ApplicationOptions } from '../application/schema'; import { Schema as WorkspaceOptions } from '../workspace/schema'; diff --git a/packages/schematics/angular/enum/index.ts b/packages/schematics/angular/enum/index.ts index 6219358cba41..7ad8dd6f1649 100644 --- a/packages/schematics/angular/enum/index.ts +++ b/packages/schematics/angular/enum/index.ts @@ -1,10 +1,11 @@ /** -* @license -* Copyright Google Inc. All Rights Reserved. -* -* Use of this source code is governed by an MIT-style license that can be -* found in the LICENSE file at https://angular.io/license -*/ + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import { strings } from '@angular-devkit/core'; import { Rule, diff --git a/packages/schematics/angular/enum/index_spec.ts b/packages/schematics/angular/enum/index_spec.ts index a6992409f914..3592076c9727 100644 --- a/packages/schematics/angular/enum/index_spec.ts +++ b/packages/schematics/angular/enum/index_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { Schema as ApplicationOptions } from '../application/schema'; import { Schema as WorkspaceOptions } from '../workspace/schema'; diff --git a/packages/schematics/angular/guard/index.ts b/packages/schematics/angular/guard/index.ts index 6f82bac6600c..79fe0e6a8edc 100644 --- a/packages/schematics/angular/guard/index.ts +++ b/packages/schematics/angular/guard/index.ts @@ -1,10 +1,11 @@ /** -* @license -* Copyright Google Inc. All Rights Reserved. -* -* Use of this source code is governed by an MIT-style license that can be -* found in the LICENSE file at https://angular.io/license -*/ + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import { strings } from '@angular-devkit/core'; import { Rule, diff --git a/packages/schematics/angular/guard/index_spec.ts b/packages/schematics/angular/guard/index_spec.ts index 01740b088f1f..d54920f0b929 100644 --- a/packages/schematics/angular/guard/index_spec.ts +++ b/packages/schematics/angular/guard/index_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { Schema as ApplicationOptions } from '../application/schema'; import { Schema as WorkspaceOptions } from '../workspace/schema'; diff --git a/packages/schematics/angular/interceptor/index.ts b/packages/schematics/angular/interceptor/index.ts index 3aa33e65f589..238a5a5af0df 100755 --- a/packages/schematics/angular/interceptor/index.ts +++ b/packages/schematics/angular/interceptor/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { strings } from '@angular-devkit/core'; import { Rule, diff --git a/packages/schematics/angular/interceptor/index_spec.ts b/packages/schematics/angular/interceptor/index_spec.ts index f0eba471aa8d..bcafb63e5f8e 100755 --- a/packages/schematics/angular/interceptor/index_spec.ts +++ b/packages/schematics/angular/interceptor/index_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { Schema as ApplicationOptions } from '../application/schema'; import { Schema as WorkspaceOptions } from '../workspace/schema'; diff --git a/packages/schematics/angular/interface/index.ts b/packages/schematics/angular/interface/index.ts index 7e06cfc17ab7..824aa6578093 100644 --- a/packages/schematics/angular/interface/index.ts +++ b/packages/schematics/angular/interface/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { strings } from '@angular-devkit/core'; import { Rule, diff --git a/packages/schematics/angular/interface/index_spec.ts b/packages/schematics/angular/interface/index_spec.ts index eac43cca3cae..71d06ff7b7dc 100644 --- a/packages/schematics/angular/interface/index_spec.ts +++ b/packages/schematics/angular/interface/index_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { Schema as ApplicationOptions } from '../application/schema'; import { Schema as WorkspaceOptions } from '../workspace/schema'; diff --git a/packages/schematics/angular/library/index.ts b/packages/schematics/angular/library/index.ts index 84d7e7329df3..cabc93549448 100644 --- a/packages/schematics/angular/library/index.ts +++ b/packages/schematics/angular/library/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { join, normalize, strings } from '@angular-devkit/core'; import { Rule, diff --git a/packages/schematics/angular/library/index_spec.ts b/packages/schematics/angular/library/index_spec.ts index a6fe99b0def4..f4382ac9b4b2 100644 --- a/packages/schematics/angular/library/index_spec.ts +++ b/packages/schematics/angular/library/index_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-big-function import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { parse as parseJson } from 'jsonc-parser'; diff --git a/packages/schematics/angular/migrations/update-10/add-deprecation-rule-tslint.ts b/packages/schematics/angular/migrations/update-10/add-deprecation-rule-tslint.ts index 71e5bafeb136..8ca9f510c2fb 100644 --- a/packages/schematics/angular/migrations/update-10/add-deprecation-rule-tslint.ts +++ b/packages/schematics/angular/migrations/update-10/add-deprecation-rule-tslint.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { JsonValue } from '@angular-devkit/core'; import { Rule } from '@angular-devkit/schematics'; import { getPackageJsonDependency } from '../../utility/dependencies'; diff --git a/packages/schematics/angular/migrations/update-10/add-deprecation-rule-tslint_spec.ts b/packages/schematics/angular/migrations/update-10/add-deprecation-rule-tslint_spec.ts index f32c800c6c68..2a09f9e04930 100644 --- a/packages/schematics/angular/migrations/update-10/add-deprecation-rule-tslint_spec.ts +++ b/packages/schematics/angular/migrations/update-10/add-deprecation-rule-tslint_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { EmptyTree } from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; diff --git a/packages/schematics/angular/migrations/update-10/remove-es5-browser-support.ts b/packages/schematics/angular/migrations/update-10/remove-es5-browser-support.ts index e3c594137657..3e748e6e8a51 100644 --- a/packages/schematics/angular/migrations/update-10/remove-es5-browser-support.ts +++ b/packages/schematics/angular/migrations/update-10/remove-es5-browser-support.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { Path, getSystemPath, logging, normalize, resolve, workspaces } from '@angular-devkit/core'; import { Rule } from '@angular-devkit/schematics'; import { getWorkspace, updateWorkspace } from '../../utility/workspace'; diff --git a/packages/schematics/angular/migrations/update-10/remove-es5-browser-support_spec.ts b/packages/schematics/angular/migrations/update-10/remove-es5-browser-support_spec.ts index 5989b07140d5..e76a8f71a6be 100644 --- a/packages/schematics/angular/migrations/update-10/remove-es5-browser-support_spec.ts +++ b/packages/schematics/angular/migrations/update-10/remove-es5-browser-support_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { JsonObject } from '@angular-devkit/core'; import { EmptyTree } from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; diff --git a/packages/schematics/angular/migrations/update-10/remove-solution-style-tsconfig.ts b/packages/schematics/angular/migrations/update-10/remove-solution-style-tsconfig.ts index 69c05a6fe9ee..63edd82fe1a9 100644 --- a/packages/schematics/angular/migrations/update-10/remove-solution-style-tsconfig.ts +++ b/packages/schematics/angular/migrations/update-10/remove-solution-style-tsconfig.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Path, dirname, join, normalize, resolve } from '@angular-devkit/core'; import { DirEntry, Rule } from '@angular-devkit/schematics'; import { JSONFile } from '../../utility/json-file'; diff --git a/packages/schematics/angular/migrations/update-10/remove-solution-style-tsconfig_spec.ts b/packages/schematics/angular/migrations/update-10/remove-solution-style-tsconfig_spec.ts index f431127bf48b..a206501c75a2 100644 --- a/packages/schematics/angular/migrations/update-10/remove-solution-style-tsconfig_spec.ts +++ b/packages/schematics/angular/migrations/update-10/remove-solution-style-tsconfig_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { EmptyTree } from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { parse as parseJson } from 'jsonc-parser'; diff --git a/packages/schematics/angular/migrations/update-10/rename-browserslist-config.ts b/packages/schematics/angular/migrations/update-10/rename-browserslist-config.ts index e6ef2630927e..5e159aeff746 100644 --- a/packages/schematics/angular/migrations/update-10/rename-browserslist-config.ts +++ b/packages/schematics/angular/migrations/update-10/rename-browserslist-config.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { join } from '@angular-devkit/core'; import { DirEntry, Rule } from '@angular-devkit/schematics'; diff --git a/packages/schematics/angular/migrations/update-10/rename-browserslist-config_spec.ts b/packages/schematics/angular/migrations/update-10/rename-browserslist-config_spec.ts index 7162b1921032..581a2f1071a8 100644 --- a/packages/schematics/angular/migrations/update-10/rename-browserslist-config_spec.ts +++ b/packages/schematics/angular/migrations/update-10/rename-browserslist-config_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { EmptyTree } from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; diff --git a/packages/schematics/angular/migrations/update-10/update-angular-config.ts b/packages/schematics/angular/migrations/update-10/update-angular-config.ts index c64101afdc1c..e7f4188328bb 100644 --- a/packages/schematics/angular/migrations/update-10/update-angular-config.ts +++ b/packages/schematics/angular/migrations/update-10/update-angular-config.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { JsonObject, JsonValue, isJsonObject, workspaces } from '@angular-devkit/core'; import { Rule } from '@angular-devkit/schematics'; import { updateWorkspace } from '../../utility/workspace'; diff --git a/packages/schematics/angular/migrations/update-10/update-angular-config_spec.ts b/packages/schematics/angular/migrations/update-10/update-angular-config_spec.ts index 15ca9df73121..26099f00c74d 100644 --- a/packages/schematics/angular/migrations/update-10/update-angular-config_spec.ts +++ b/packages/schematics/angular/migrations/update-10/update-angular-config_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { JsonObject } from '@angular-devkit/core'; import { EmptyTree } from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; diff --git a/packages/schematics/angular/migrations/update-10/update-dependencies.ts b/packages/schematics/angular/migrations/update-10/update-dependencies.ts index 6c0529f694b6..70e8105025ec 100644 --- a/packages/schematics/angular/migrations/update-10/update-dependencies.ts +++ b/packages/schematics/angular/migrations/update-10/update-dependencies.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Rule } from '@angular-devkit/schematics'; import { NodePackageInstallTask } from '@angular-devkit/schematics/tasks'; import { diff --git a/packages/schematics/angular/migrations/update-10/update-libraries-tslib.ts b/packages/schematics/angular/migrations/update-10/update-libraries-tslib.ts index 510fa9e87044..733fcc9703ed 100644 --- a/packages/schematics/angular/migrations/update-10/update-libraries-tslib.ts +++ b/packages/schematics/angular/migrations/update-10/update-libraries-tslib.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { join, normalize } from '@angular-devkit/core'; import { Rule } from '@angular-devkit/schematics'; import { NodeDependencyType, addPackageJsonDependency, removePackageJsonDependency } from '../../utility/dependencies'; diff --git a/packages/schematics/angular/migrations/update-10/update-libraries-tslib_spec.ts b/packages/schematics/angular/migrations/update-10/update-libraries-tslib_spec.ts index 53dd1bb37ec8..a07c1a2e0f61 100644 --- a/packages/schematics/angular/migrations/update-10/update-libraries-tslib_spec.ts +++ b/packages/schematics/angular/migrations/update-10/update-libraries-tslib_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { EmptyTree } from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { ProjectType, WorkspaceSchema } from '../../utility/workspace-models'; diff --git a/packages/schematics/angular/migrations/update-10/update-module-and-target-compiler-options.ts b/packages/schematics/angular/migrations/update-10/update-module-and-target-compiler-options.ts index 1680dbf50a9b..28700c84ece2 100644 --- a/packages/schematics/angular/migrations/update-10/update-module-and-target-compiler-options.ts +++ b/packages/schematics/angular/migrations/update-10/update-module-and-target-compiler-options.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { dirname, join, normalize } from '@angular-devkit/core'; import { Rule, Tree } from '@angular-devkit/schematics'; import { JSONFile } from '../../utility/json-file'; diff --git a/packages/schematics/angular/migrations/update-10/update-module-and-target-compiler-options_spec.ts b/packages/schematics/angular/migrations/update-10/update-module-and-target-compiler-options_spec.ts index a0a979d3df04..fcca252b6b60 100644 --- a/packages/schematics/angular/migrations/update-10/update-module-and-target-compiler-options_spec.ts +++ b/packages/schematics/angular/migrations/update-10/update-module-and-target-compiler-options_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { EmptyTree } from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { parse as parseJson } from 'jsonc-parser'; diff --git a/packages/schematics/angular/migrations/update-10/update-tslint.ts b/packages/schematics/angular/migrations/update-10/update-tslint.ts index 23a77a3e2089..ddd551b9b455 100644 --- a/packages/schematics/angular/migrations/update-10/update-tslint.ts +++ b/packages/schematics/angular/migrations/update-10/update-tslint.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { JsonValue } from '@angular-devkit/core'; import { Rule } from '@angular-devkit/schematics'; import { addPackageJsonDependency, getPackageJsonDependency } from '../../utility/dependencies'; diff --git a/packages/schematics/angular/migrations/update-10/update-tslint_spec.ts b/packages/schematics/angular/migrations/update-10/update-tslint_spec.ts index c97aa2533041..acaa9e3cf3cd 100644 --- a/packages/schematics/angular/migrations/update-10/update-tslint_spec.ts +++ b/packages/schematics/angular/migrations/update-10/update-tslint_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { EmptyTree } from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { TSLINT_VERSION } from './update-tslint'; diff --git a/packages/schematics/angular/migrations/update-11/add-declaration-map-compiler-option.ts b/packages/schematics/angular/migrations/update-11/add-declaration-map-compiler-option.ts index c922087df8d9..05f22aa4ee73 100644 --- a/packages/schematics/angular/migrations/update-11/add-declaration-map-compiler-option.ts +++ b/packages/schematics/angular/migrations/update-11/add-declaration-map-compiler-option.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { Rule, Tree } from '@angular-devkit/schematics'; import { JSONFile } from '../../utility/json-file'; import { getWorkspace } from '../../utility/workspace'; diff --git a/packages/schematics/angular/migrations/update-11/add-declaration-map-compiler-option_spec.ts b/packages/schematics/angular/migrations/update-11/add-declaration-map-compiler-option_spec.ts index e001f9c43f22..2a2435bb0f90 100644 --- a/packages/schematics/angular/migrations/update-11/add-declaration-map-compiler-option_spec.ts +++ b/packages/schematics/angular/migrations/update-11/add-declaration-map-compiler-option_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { EmptyTree } from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { Builders, ProjectType, WorkspaceSchema } from '../../utility/workspace-models'; diff --git a/packages/schematics/angular/migrations/update-11/replace-ng-packagr-builder.ts b/packages/schematics/angular/migrations/update-11/replace-ng-packagr-builder.ts index 2117252a1b62..a28e58435670 100644 --- a/packages/schematics/angular/migrations/update-11/replace-ng-packagr-builder.ts +++ b/packages/schematics/angular/migrations/update-11/replace-ng-packagr-builder.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { Rule, chain } from '@angular-devkit/schematics'; import { NodeDependencyType, addPackageJsonDependency, removePackageJsonDependency } from '../../utility/dependencies'; import { latestVersions } from '../../utility/latest-versions'; diff --git a/packages/schematics/angular/migrations/update-11/replace-ng-packagr-builder_spec.ts b/packages/schematics/angular/migrations/update-11/replace-ng-packagr-builder_spec.ts index fa1560a993a4..558488548df1 100644 --- a/packages/schematics/angular/migrations/update-11/replace-ng-packagr-builder_spec.ts +++ b/packages/schematics/angular/migrations/update-11/replace-ng-packagr-builder_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { EmptyTree } from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { Builders, ProjectType, WorkspaceSchema } from '../../utility/workspace-models'; diff --git a/packages/schematics/angular/migrations/update-11/update-angular-config.ts b/packages/schematics/angular/migrations/update-11/update-angular-config.ts index 005ed5ec706c..139dd6709904 100644 --- a/packages/schematics/angular/migrations/update-11/update-angular-config.ts +++ b/packages/schematics/angular/migrations/update-11/update-angular-config.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { JsonArray, isJsonArray, isJsonObject, workspaces } from '@angular-devkit/core'; import { Rule } from '@angular-devkit/schematics'; import { updateWorkspace } from '../../utility/workspace'; diff --git a/packages/schematics/angular/migrations/update-11/update-angular-config_spec.ts b/packages/schematics/angular/migrations/update-11/update-angular-config_spec.ts index 8d25c2f90186..345192e8e4f0 100644 --- a/packages/schematics/angular/migrations/update-11/update-angular-config_spec.ts +++ b/packages/schematics/angular/migrations/update-11/update-angular-config_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { JsonObject } from '@angular-devkit/core'; import { EmptyTree } from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; diff --git a/packages/schematics/angular/migrations/update-11/update-dependencies.ts b/packages/schematics/angular/migrations/update-11/update-dependencies.ts index 1ad1d5c6b9e4..13db54d9bcd3 100644 --- a/packages/schematics/angular/migrations/update-11/update-dependencies.ts +++ b/packages/schematics/angular/migrations/update-11/update-dependencies.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Rule } from '@angular-devkit/schematics'; import { NodePackageInstallTask } from '@angular-devkit/schematics/tasks'; import { diff --git a/packages/schematics/angular/migrations/update-12/production-default-config.ts b/packages/schematics/angular/migrations/update-12/production-default-config.ts index 272972b1cda5..cafaae0f59a5 100644 --- a/packages/schematics/angular/migrations/update-12/production-default-config.ts +++ b/packages/schematics/angular/migrations/update-12/production-default-config.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { JsonValue, logging, tags, workspaces } from '@angular-devkit/core'; import { Rule } from '@angular-devkit/schematics'; import { allTargetOptions, allWorkspaceTargets, updateWorkspace } from '../../utility/workspace'; diff --git a/packages/schematics/angular/migrations/update-12/production-default-config_spec.ts b/packages/schematics/angular/migrations/update-12/production-default-config_spec.ts index 45076c7d1cc6..1de9be71d7a3 100644 --- a/packages/schematics/angular/migrations/update-12/production-default-config_spec.ts +++ b/packages/schematics/angular/migrations/update-12/production-default-config_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { JsonObject } from '@angular-devkit/core'; import { EmptyTree } from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; diff --git a/packages/schematics/angular/migrations/update-12/remove-emit-decorator-metadata.ts b/packages/schematics/angular/migrations/update-12/remove-emit-decorator-metadata.ts index e18fdd163f24..9056f967f5c7 100644 --- a/packages/schematics/angular/migrations/update-12/remove-emit-decorator-metadata.ts +++ b/packages/schematics/angular/migrations/update-12/remove-emit-decorator-metadata.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { join } from '@angular-devkit/core'; import { DirEntry, Rule } from '@angular-devkit/schematics'; import { JSONFile } from '../../utility/json-file'; diff --git a/packages/schematics/angular/migrations/update-12/remove-emit-decorator-metadata_spec.ts b/packages/schematics/angular/migrations/update-12/remove-emit-decorator-metadata_spec.ts index 4ffb96faf615..5cfb95a48ee5 100644 --- a/packages/schematics/angular/migrations/update-12/remove-emit-decorator-metadata_spec.ts +++ b/packages/schematics/angular/migrations/update-12/remove-emit-decorator-metadata_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { EmptyTree } from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { parse as parseJson } from 'jsonc-parser'; diff --git a/packages/schematics/angular/migrations/update-12/update-angular-config.ts b/packages/schematics/angular/migrations/update-12/update-angular-config.ts index 45980abe397a..eddfcf5b4c29 100644 --- a/packages/schematics/angular/migrations/update-12/update-angular-config.ts +++ b/packages/schematics/angular/migrations/update-12/update-angular-config.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { JsonValue, workspaces } from '@angular-devkit/core'; import { Rule } from '@angular-devkit/schematics'; import { allTargetOptions, allWorkspaceTargets, updateWorkspace } from '../../utility/workspace'; diff --git a/packages/schematics/angular/migrations/update-12/update-angular-config_spec.ts b/packages/schematics/angular/migrations/update-12/update-angular-config_spec.ts index 3f35fddd6c9e..673e72e3b3fa 100644 --- a/packages/schematics/angular/migrations/update-12/update-angular-config_spec.ts +++ b/packages/schematics/angular/migrations/update-12/update-angular-config_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { JsonObject } from '@angular-devkit/core'; import { EmptyTree } from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; diff --git a/packages/schematics/angular/migrations/update-12/update-lazy-module-paths.ts b/packages/schematics/angular/migrations/update-12/update-lazy-module-paths.ts index b812ec2a5e36..051e09c3def0 100644 --- a/packages/schematics/angular/migrations/update-12/update-lazy-module-paths.ts +++ b/packages/schematics/angular/migrations/update-12/update-lazy-module-paths.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { DirEntry, Rule, UpdateRecorder } from '@angular-devkit/schematics'; import * as ts from '../../third_party/github.com/Microsoft/TypeScript/lib/typescript'; diff --git a/packages/schematics/angular/migrations/update-12/update-lazy-module-paths_spec.ts b/packages/schematics/angular/migrations/update-12/update-lazy-module-paths_spec.ts index 85cd77e49adb..e6c2cb78d620 100644 --- a/packages/schematics/angular/migrations/update-12/update-lazy-module-paths_spec.ts +++ b/packages/schematics/angular/migrations/update-12/update-lazy-module-paths_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { normalize, virtualFs } from '@angular-devkit/core'; import { EmptyTree } from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; diff --git a/packages/schematics/angular/migrations/update-12/update-web-workers.ts b/packages/schematics/angular/migrations/update-12/update-web-workers.ts index bd931801f5d1..cbe0ee5b9390 100644 --- a/packages/schematics/angular/migrations/update-12/update-web-workers.ts +++ b/packages/schematics/angular/migrations/update-12/update-web-workers.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { DirEntry, Rule, UpdateRecorder } from '@angular-devkit/schematics'; import * as ts from '../../third_party/github.com/Microsoft/TypeScript/lib/typescript'; diff --git a/packages/schematics/angular/migrations/update-12/update-web-workers_spec.ts b/packages/schematics/angular/migrations/update-12/update-web-workers_spec.ts index 57fa139a857f..131d296687d1 100644 --- a/packages/schematics/angular/migrations/update-12/update-web-workers_spec.ts +++ b/packages/schematics/angular/migrations/update-12/update-web-workers_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { EmptyTree } from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; diff --git a/packages/schematics/angular/migrations/update-12/update-zonejs.ts b/packages/schematics/angular/migrations/update-12/update-zonejs.ts index 7b710cc88d71..29b7158fb5b8 100644 --- a/packages/schematics/angular/migrations/update-12/update-zonejs.ts +++ b/packages/schematics/angular/migrations/update-12/update-zonejs.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { join } from '@angular-devkit/core'; import { DirEntry, Rule } from '@angular-devkit/schematics'; import { NodePackageInstallTask } from '@angular-devkit/schematics/tasks'; diff --git a/packages/schematics/angular/migrations/update-12/update-zonejs_spec.ts b/packages/schematics/angular/migrations/update-12/update-zonejs_spec.ts index c5f5614fef71..f2fb72948a38 100644 --- a/packages/schematics/angular/migrations/update-12/update-zonejs_spec.ts +++ b/packages/schematics/angular/migrations/update-12/update-zonejs_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { EmptyTree } from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { getPackageJsonDependency } from '../../utility/dependencies'; diff --git a/packages/schematics/angular/migrations/update-9/add-tslib.ts b/packages/schematics/angular/migrations/update-9/add-tslib.ts index ca4eca9fa776..e8ce7eacabf7 100644 --- a/packages/schematics/angular/migrations/update-9/add-tslib.ts +++ b/packages/schematics/angular/migrations/update-9/add-tslib.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Rule } from '@angular-devkit/schematics'; import { NodeDependencyType, addPackageJsonDependency, getPackageJsonDependency, removePackageJsonDependency } from '../../utility/dependencies'; import { latestVersions } from '../../utility/latest-versions'; diff --git a/packages/schematics/angular/migrations/update-9/index.ts b/packages/schematics/angular/migrations/update-9/index.ts index 174ec88d9a74..6d39d9e69c9e 100644 --- a/packages/schematics/angular/migrations/update-9/index.ts +++ b/packages/schematics/angular/migrations/update-9/index.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { Rule, chain } from '@angular-devkit/schematics'; import { NodePackageInstallTask } from '@angular-devkit/schematics/tasks'; import { addTsLib } from './add-tslib'; diff --git a/packages/schematics/angular/migrations/update-9/ivy-libraries.ts b/packages/schematics/angular/migrations/update-9/ivy-libraries.ts index 1a84d3e25ae3..c2edac3506ad 100644 --- a/packages/schematics/angular/migrations/update-9/ivy-libraries.ts +++ b/packages/schematics/angular/migrations/update-9/ivy-libraries.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { join, normalize } from '@angular-devkit/core'; import { Rule, Tree, chain } from '@angular-devkit/schematics'; import { JSONFile } from '../../utility/json-file'; diff --git a/packages/schematics/angular/migrations/update-9/ivy-libraries_spec.ts b/packages/schematics/angular/migrations/update-9/ivy-libraries_spec.ts index 4a21fba6642a..00ccaec28967 100644 --- a/packages/schematics/angular/migrations/update-9/ivy-libraries_spec.ts +++ b/packages/schematics/angular/migrations/update-9/ivy-libraries_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { EmptyTree } from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { Builders, WorkspaceTargets } from '../../utility/workspace-models'; diff --git a/packages/schematics/angular/migrations/update-9/ngsw-config.ts b/packages/schematics/angular/migrations/update-9/ngsw-config.ts index e48120340576..34bddcaaa94f 100644 --- a/packages/schematics/angular/migrations/update-9/ngsw-config.ts +++ b/packages/schematics/angular/migrations/update-9/ngsw-config.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Rule } from '@angular-devkit/schematics'; import { JSONFile } from '../../utility/json-file'; import { allTargetOptions, allWorkspaceTargets, getWorkspace } from '../../utility/workspace'; diff --git a/packages/schematics/angular/migrations/update-9/ngsw-config_spec.ts b/packages/schematics/angular/migrations/update-9/ngsw-config_spec.ts index b9c10c76cc65..ccf18597a54d 100644 --- a/packages/schematics/angular/migrations/update-9/ngsw-config_spec.ts +++ b/packages/schematics/angular/migrations/update-9/ngsw-config_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { EmptyTree } from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { WorkspaceTargets } from '../../utility/workspace-models'; diff --git a/packages/schematics/angular/migrations/update-9/remove-tsickle.ts b/packages/schematics/angular/migrations/update-9/remove-tsickle.ts index 1f8d4575266d..f20993f0a78d 100644 --- a/packages/schematics/angular/migrations/update-9/remove-tsickle.ts +++ b/packages/schematics/angular/migrations/update-9/remove-tsickle.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Rule } from '@angular-devkit/schematics'; import { removePackageJsonDependency } from '../../utility/dependencies'; import { JSONFile } from '../../utility/json-file'; diff --git a/packages/schematics/angular/migrations/update-9/remove-tsickle_spec.ts b/packages/schematics/angular/migrations/update-9/remove-tsickle_spec.ts index 046457e2e2e6..e359dc3b3ee0 100644 --- a/packages/schematics/angular/migrations/update-9/remove-tsickle_spec.ts +++ b/packages/schematics/angular/migrations/update-9/remove-tsickle_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { EmptyTree } from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { Builders } from '../../utility/workspace-models'; diff --git a/packages/schematics/angular/migrations/update-9/schematic-options.ts b/packages/schematics/angular/migrations/update-9/schematic-options.ts index 0d96634d4c4f..280b150cedf2 100644 --- a/packages/schematics/angular/migrations/update-9/schematic-options.ts +++ b/packages/schematics/angular/migrations/update-9/schematic-options.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { json } from '@angular-devkit/core'; import { Rule } from '@angular-devkit/schematics'; import { updateWorkspace } from '../../utility/workspace'; diff --git a/packages/schematics/angular/migrations/update-9/schematic-options_spec.ts b/packages/schematics/angular/migrations/update-9/schematic-options_spec.ts index 7e9f3c985a10..4252d1fc8ac3 100644 --- a/packages/schematics/angular/migrations/update-9/schematic-options_spec.ts +++ b/packages/schematics/angular/migrations/update-9/schematic-options_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { EmptyTree } from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; diff --git a/packages/schematics/angular/migrations/update-9/update-app-tsconfigs.ts b/packages/schematics/angular/migrations/update-9/update-app-tsconfigs.ts index 25e6763001a5..ed17f1045ff2 100644 --- a/packages/schematics/angular/migrations/update-9/update-app-tsconfigs.ts +++ b/packages/schematics/angular/migrations/update-9/update-app-tsconfigs.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { join, logging, normalize, workspaces } from '@angular-devkit/core'; import { Rule, Tree } from '@angular-devkit/schematics'; import { dirname, relative } from 'path'; diff --git a/packages/schematics/angular/migrations/update-9/update-app-tsconfigs_spec.ts b/packages/schematics/angular/migrations/update-9/update-app-tsconfigs_spec.ts index 34ac9c9e339a..09695a58cab5 100644 --- a/packages/schematics/angular/migrations/update-9/update-app-tsconfigs_spec.ts +++ b/packages/schematics/angular/migrations/update-9/update-app-tsconfigs_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { EmptyTree } from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { parse as parseJson } from 'jsonc-parser'; diff --git a/packages/schematics/angular/migrations/update-9/update-dependencies.ts b/packages/schematics/angular/migrations/update-9/update-dependencies.ts index 867087e9d022..3208d8972b37 100644 --- a/packages/schematics/angular/migrations/update-9/update-dependencies.ts +++ b/packages/schematics/angular/migrations/update-9/update-dependencies.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Rule } from '@angular-devkit/schematics'; import { addPackageJsonDependency, diff --git a/packages/schematics/angular/migrations/update-9/update-i18n.ts b/packages/schematics/angular/migrations/update-9/update-i18n.ts index 259e40c48d87..0a9ee83bbe72 100644 --- a/packages/schematics/angular/migrations/update-9/update-i18n.ts +++ b/packages/schematics/angular/migrations/update-9/update-i18n.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { logging, workspaces } from '@angular-devkit/core'; import { Rule, Tree } from '@angular-devkit/schematics'; import { posix } from 'path'; diff --git a/packages/schematics/angular/migrations/update-9/update-i18n_spec.ts b/packages/schematics/angular/migrations/update-9/update-i18n_spec.ts index f90e754c696d..20a6d010bb4d 100644 --- a/packages/schematics/angular/migrations/update-9/update-i18n_spec.ts +++ b/packages/schematics/angular/migrations/update-9/update-i18n_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { EmptyTree } from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { latestVersions } from '../../utility/latest-versions'; diff --git a/packages/schematics/angular/migrations/update-9/update-server-main-file.ts b/packages/schematics/angular/migrations/update-9/update-server-main-file.ts index c015e8502b75..ba831a606d49 100644 --- a/packages/schematics/angular/migrations/update-9/update-server-main-file.ts +++ b/packages/schematics/angular/migrations/update-9/update-server-main-file.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Rule } from '@angular-devkit/schematics'; import * as ts from '../../third_party/github.com/Microsoft/TypeScript/lib/typescript'; import { findNodes } from '../../utility/ast-utils'; diff --git a/packages/schematics/angular/migrations/update-9/update-server-main-file_spec.ts b/packages/schematics/angular/migrations/update-9/update-server-main-file_spec.ts index 0d2531415299..fa4e3dcceb70 100644 --- a/packages/schematics/angular/migrations/update-9/update-server-main-file_spec.ts +++ b/packages/schematics/angular/migrations/update-9/update-server-main-file_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { tags } from '@angular-devkit/core'; import { EmptyTree } from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; diff --git a/packages/schematics/angular/migrations/update-9/update-workspace-config.ts b/packages/schematics/angular/migrations/update-9/update-workspace-config.ts index dc0c4ef01dbe..9b1694e002bb 100644 --- a/packages/schematics/angular/migrations/update-9/update-workspace-config.ts +++ b/packages/schematics/angular/migrations/update-9/update-workspace-config.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { workspaces } from '@angular-devkit/core'; import { Rule, Tree } from '@angular-devkit/schematics'; import { allTargetOptions, allWorkspaceTargets, updateWorkspace } from '../../utility/workspace'; diff --git a/packages/schematics/angular/migrations/update-9/update-workspace-config_spec.ts b/packages/schematics/angular/migrations/update-9/update-workspace-config_spec.ts index 58e6101ce49c..8d5fa544bd8c 100644 --- a/packages/schematics/angular/migrations/update-9/update-workspace-config_spec.ts +++ b/packages/schematics/angular/migrations/update-9/update-workspace-config_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { EmptyTree } from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { WorkspaceTargets } from '../../utility/workspace-models'; diff --git a/packages/schematics/angular/migrations/update-9/utils.ts b/packages/schematics/angular/migrations/update-9/utils.ts index 5f339e74d5c2..c8195333d8f8 100644 --- a/packages/schematics/angular/migrations/update-9/utils.ts +++ b/packages/schematics/angular/migrations/update-9/utils.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { dirname, normalize, resolve } from '@angular-devkit/core'; import { Tree } from '@angular-devkit/schematics'; import { JSONFile } from '../../utility/json-file'; diff --git a/packages/schematics/angular/migrations/update-9/utils_spec.ts b/packages/schematics/angular/migrations/update-9/utils_spec.ts index 0726bb04bc8a..0f200616369c 100644 --- a/packages/schematics/angular/migrations/update-9/utils_spec.ts +++ b/packages/schematics/angular/migrations/update-9/utils_spec.ts @@ -1,11 +1,12 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { HostTree } from '@angular-devkit/schematics'; import { isIvyEnabled } from './utils'; diff --git a/packages/schematics/angular/module/index.ts b/packages/schematics/angular/module/index.ts index 4fd84884a6ec..d67d66408c39 100644 --- a/packages/schematics/angular/module/index.ts +++ b/packages/schematics/angular/module/index.ts @@ -1,10 +1,11 @@ /** -* @license -* Copyright Google Inc. All Rights Reserved. -* -* Use of this source code is governed by an MIT-style license that can be -* found in the LICENSE file at https://angular.io/license -*/ + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import { Path, normalize, strings } from '@angular-devkit/core'; import { Rule, diff --git a/packages/schematics/angular/module/index_spec.ts b/packages/schematics/angular/module/index_spec.ts index 8cd9f1c62c21..15a32137750f 100644 --- a/packages/schematics/angular/module/index_spec.ts +++ b/packages/schematics/angular/module/index_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { Schema as ApplicationOptions } from '../application/schema'; import { Schema as WorkspaceOptions } from '../workspace/schema'; diff --git a/packages/schematics/angular/ng-new/index.ts b/packages/schematics/angular/ng-new/index.ts index 80f57210733f..a46af41e8e49 100644 --- a/packages/schematics/angular/ng-new/index.ts +++ b/packages/schematics/angular/ng-new/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Rule, SchematicContext, diff --git a/packages/schematics/angular/ng-new/index_spec.ts b/packages/schematics/angular/ng-new/index_spec.ts index 45f443ab8635..a8e809e4680b 100644 --- a/packages/schematics/angular/ng-new/index_spec.ts +++ b/packages/schematics/angular/ng-new/index_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { SchematicTestRunner } from '@angular-devkit/schematics/testing'; import { Schema as NgNewOptions } from './schema'; diff --git a/packages/schematics/angular/no_typescript_runtime_dep_spec.js b/packages/schematics/angular/no_typescript_runtime_dep_spec.js index df1cc2f2332a..08e077336754 100644 --- a/packages/schematics/angular/no_typescript_runtime_dep_spec.js +++ b/packages/schematics/angular/no_typescript_runtime_dep_spec.js @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - const fs = require('fs'); const path = require('path'); diff --git a/packages/schematics/angular/pipe/index.ts b/packages/schematics/angular/pipe/index.ts index 0e6345076490..bd5fef915f47 100644 --- a/packages/schematics/angular/pipe/index.ts +++ b/packages/schematics/angular/pipe/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { strings } from '@angular-devkit/core'; import { Rule, diff --git a/packages/schematics/angular/pipe/index_spec.ts b/packages/schematics/angular/pipe/index_spec.ts index 263236bd72b4..3eaf0911bd1e 100644 --- a/packages/schematics/angular/pipe/index_spec.ts +++ b/packages/schematics/angular/pipe/index_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { Schema as ApplicationOptions } from '../application/schema'; import { createAppModule, getFileContent } from '../utility/test'; diff --git a/packages/schematics/angular/resolver/index.ts b/packages/schematics/angular/resolver/index.ts index 73f3282982d3..d72ce723b575 100644 --- a/packages/schematics/angular/resolver/index.ts +++ b/packages/schematics/angular/resolver/index.ts @@ -1,10 +1,11 @@ /** -* @license -* Copyright Google Inc. All Rights Reserved. -* -* Use of this source code is governed by an MIT-style license that can be -* found in the LICENSE file at https://angular.io/license -*/ + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import { strings } from '@angular-devkit/core'; import { Rule, diff --git a/packages/schematics/angular/resolver/index_spec.ts b/packages/schematics/angular/resolver/index_spec.ts index f7b599cb26e9..1ad7f1bbc024 100644 --- a/packages/schematics/angular/resolver/index_spec.ts +++ b/packages/schematics/angular/resolver/index_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { Schema as ApplicationOptions } from '../application/schema'; import { Schema as WorkspaceOptions } from '../workspace/schema'; diff --git a/packages/schematics/angular/service-worker/index.ts b/packages/schematics/angular/service-worker/index.ts index 3c0a0b44e2e4..cc792e6392f9 100644 --- a/packages/schematics/angular/service-worker/index.ts +++ b/packages/schematics/angular/service-worker/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { join, normalize, tags } from '@angular-devkit/core'; import { Rule, diff --git a/packages/schematics/angular/service-worker/index_spec.ts b/packages/schematics/angular/service-worker/index_spec.ts index 7cbec451166e..c97b0c399995 100644 --- a/packages/schematics/angular/service-worker/index_spec.ts +++ b/packages/schematics/angular/service-worker/index_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { Schema as ApplicationOptions } from '../application/schema'; import { Schema as WorkspaceOptions } from '../workspace/schema'; diff --git a/packages/schematics/angular/service-worker/schema.d.ts b/packages/schematics/angular/service-worker/schema.d.ts index 571d59ed771f..7d4e2492a05d 100644 --- a/packages/schematics/angular/service-worker/schema.d.ts +++ b/packages/schematics/angular/service-worker/schema.d.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - export interface Schema { /** * The name of the project. diff --git a/packages/schematics/angular/service/index.ts b/packages/schematics/angular/service/index.ts index c509f05c164f..91dc83606c6d 100644 --- a/packages/schematics/angular/service/index.ts +++ b/packages/schematics/angular/service/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { strings } from '@angular-devkit/core'; import { Rule, diff --git a/packages/schematics/angular/service/index_spec.ts b/packages/schematics/angular/service/index_spec.ts index df7fe66014c4..5e588fb1e28c 100644 --- a/packages/schematics/angular/service/index_spec.ts +++ b/packages/schematics/angular/service/index_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { Schema as ApplicationOptions } from '../application/schema'; import { Schema as WorkspaceOptions } from '../workspace/schema'; diff --git a/packages/schematics/angular/universal/index.ts b/packages/schematics/angular/universal/index.ts index 9ea723e2ea93..866033caf060 100644 --- a/packages/schematics/angular/universal/index.ts +++ b/packages/schematics/angular/universal/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { JsonValue, Path, diff --git a/packages/schematics/angular/universal/index_spec.ts b/packages/schematics/angular/universal/index_spec.ts index 13eaa686075e..7f71f962a0a6 100644 --- a/packages/schematics/angular/universal/index_spec.ts +++ b/packages/schematics/angular/universal/index_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { parse as parseJson } from 'jsonc-parser'; import { Schema as ApplicationOptions, Style } from '../application/schema'; diff --git a/packages/schematics/angular/utility/ast-utils.ts b/packages/schematics/angular/utility/ast-utils.ts index f77495bacdd7..b3864759f185 100644 --- a/packages/schematics/angular/utility/ast-utils.ts +++ b/packages/schematics/angular/utility/ast-utils.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { tags } from '@angular-devkit/core'; import * as ts from '../third_party/github.com/Microsoft/TypeScript/lib/typescript'; import { Change, InsertChange, NoopChange } from './change'; diff --git a/packages/schematics/angular/utility/ast-utils_spec.ts b/packages/schematics/angular/utility/ast-utils_spec.ts index 286a757df47e..ec2479cb51f2 100644 --- a/packages/schematics/angular/utility/ast-utils_spec.ts +++ b/packages/schematics/angular/utility/ast-utils_spec.ts @@ -1,11 +1,12 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { tags } from '@angular-devkit/core'; import { HostTree } from '@angular-devkit/schematics'; import * as ts from '../third_party/github.com/Microsoft/TypeScript/lib/typescript'; diff --git a/packages/schematics/angular/utility/change.ts b/packages/schematics/angular/utility/change.ts index f1ddcc964a33..7a738f5426d5 100644 --- a/packages/schematics/angular/utility/change.ts +++ b/packages/schematics/angular/utility/change.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { UpdateRecorder } from '@angular-devkit/schematics'; export interface Host { diff --git a/packages/schematics/angular/utility/dependencies.ts b/packages/schematics/angular/utility/dependencies.ts index 2a2a86191557..ccef44bf0d63 100644 --- a/packages/schematics/angular/utility/dependencies.ts +++ b/packages/schematics/angular/utility/dependencies.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Tree } from '@angular-devkit/schematics'; import { JSONFile } from './json-file'; diff --git a/packages/schematics/angular/utility/dependencies_spec.ts b/packages/schematics/angular/utility/dependencies_spec.ts index 61a95a765fc3..4fc863ad0ddc 100644 --- a/packages/schematics/angular/utility/dependencies_spec.ts +++ b/packages/schematics/angular/utility/dependencies_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { EmptyTree } from '@angular-devkit/schematics'; import { UnitTestTree } from '@angular-devkit/schematics/testing'; import { diff --git a/packages/schematics/angular/utility/find-module.ts b/packages/schematics/angular/utility/find-module.ts index 9d1866dc1ae6..5d0e9a8489c2 100644 --- a/packages/schematics/angular/utility/find-module.ts +++ b/packages/schematics/angular/utility/find-module.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { NormalizedRoot, Path, diff --git a/packages/schematics/angular/utility/find-module_spec.ts b/packages/schematics/angular/utility/find-module_spec.ts index c7e44f594836..bbaca95fdbc9 100644 --- a/packages/schematics/angular/utility/find-module_spec.ts +++ b/packages/schematics/angular/utility/find-module_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Path } from '@angular-devkit/core'; import { EmptyTree, Tree } from '@angular-devkit/schematics'; import { ModuleOptions, buildRelativePath, findModule, findModuleFromOptions } from './find-module'; diff --git a/packages/schematics/angular/utility/json-file.ts b/packages/schematics/angular/utility/json-file.ts index 8ca21030d9a1..1bbb7fa50fe3 100644 --- a/packages/schematics/angular/utility/json-file.ts +++ b/packages/schematics/angular/utility/json-file.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { JsonValue } from '@angular-devkit/core'; import { Tree } from '@angular-devkit/schematics'; import { Node, ParseError, applyEdits, findNodeAtLocation, getNodeValue, modify, parseTree, printParseErrorCode } from 'jsonc-parser'; diff --git a/packages/schematics/angular/utility/latest-versions.ts b/packages/schematics/angular/utility/latest-versions.ts index 6d60a29d56c8..3b3e3f679a18 100644 --- a/packages/schematics/angular/utility/latest-versions.ts +++ b/packages/schematics/angular/utility/latest-versions.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - export const latestVersions = { // These versions should be kept up to date with latest Angular peer dependencies. Angular: '~12.0.0-next.9', diff --git a/packages/schematics/angular/utility/lint-fix.ts b/packages/schematics/angular/utility/lint-fix.ts index f794bf681fd2..0a074175ea99 100644 --- a/packages/schematics/angular/utility/lint-fix.ts +++ b/packages/schematics/angular/utility/lint-fix.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { DirEntry, Rule, diff --git a/packages/schematics/angular/utility/ng-ast-utils.ts b/packages/schematics/angular/utility/ng-ast-utils.ts index 9462d3b8e697..ef0852a1b399 100644 --- a/packages/schematics/angular/utility/ng-ast-utils.ts +++ b/packages/schematics/angular/utility/ng-ast-utils.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { normalize } from '@angular-devkit/core'; import { SchematicsException, Tree } from '@angular-devkit/schematics'; import { dirname } from 'path'; diff --git a/packages/schematics/angular/utility/parse-name.ts b/packages/schematics/angular/utility/parse-name.ts index cac57b08680b..f4f71cb505b9 100644 --- a/packages/schematics/angular/utility/parse-name.ts +++ b/packages/schematics/angular/utility/parse-name.ts @@ -1,11 +1,12 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // import { relative, Path } from "../../../angular_devkit/core/src/virtual-fs"; import { Path, basename, dirname, join, normalize } from '@angular-devkit/core'; diff --git a/packages/schematics/angular/utility/parse-name_spec.ts b/packages/schematics/angular/utility/parse-name_spec.ts index 3c969d6ca9df..544ccf4d7a93 100644 --- a/packages/schematics/angular/utility/parse-name_spec.ts +++ b/packages/schematics/angular/utility/parse-name_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { parseName } from './parse-name'; diff --git a/packages/schematics/angular/utility/paths.ts b/packages/schematics/angular/utility/paths.ts index 35729a641713..a096c4e2df8e 100644 --- a/packages/schematics/angular/utility/paths.ts +++ b/packages/schematics/angular/utility/paths.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { normalize, split } from '@angular-devkit/core'; export function relativePathToWorkspaceRoot(projectRoot: string | undefined): string { diff --git a/packages/schematics/angular/utility/paths_spec.ts b/packages/schematics/angular/utility/paths_spec.ts index 1cdc3e031631..c747e2b57fca 100644 --- a/packages/schematics/angular/utility/paths_spec.ts +++ b/packages/schematics/angular/utility/paths_spec.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { relativePathToWorkspaceRoot } from './paths'; describe('paths', () => { diff --git a/packages/schematics/angular/utility/project-targets.ts b/packages/schematics/angular/utility/project-targets.ts index e99293f10e83..f0861a5f20f5 100644 --- a/packages/schematics/angular/utility/project-targets.ts +++ b/packages/schematics/angular/utility/project-targets.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { SchematicsException } from '@angular-devkit/schematics'; export function targetBuildNotFoundError(): SchematicsException { diff --git a/packages/schematics/angular/utility/test/create-app-module.ts b/packages/schematics/angular/utility/test/create-app-module.ts index 5847d5cb109e..7ae1e08960ae 100644 --- a/packages/schematics/angular/utility/test/create-app-module.ts +++ b/packages/schematics/angular/utility/test/create-app-module.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { UnitTestTree } from '@angular-devkit/schematics/testing'; diff --git a/packages/schematics/angular/utility/test/get-file-content.ts b/packages/schematics/angular/utility/test/get-file-content.ts index 0e9dfe82c3c5..9a10133d1460 100644 --- a/packages/schematics/angular/utility/test/get-file-content.ts +++ b/packages/schematics/angular/utility/test/get-file-content.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { Tree } from '@angular-devkit/schematics'; diff --git a/packages/schematics/angular/utility/test/index.ts b/packages/schematics/angular/utility/test/index.ts index afb74bfa8b84..bfe027bf21d1 100644 --- a/packages/schematics/angular/utility/test/index.ts +++ b/packages/schematics/angular/utility/test/index.ts @@ -1,9 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export * from './create-app-module'; export * from './get-file-content'; diff --git a/packages/schematics/angular/utility/validation.ts b/packages/schematics/angular/utility/validation.ts index 923b819df9da..ae7a2592d29e 100644 --- a/packages/schematics/angular/utility/validation.ts +++ b/packages/schematics/angular/utility/validation.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { tags } from '@angular-devkit/core'; import { SchematicsException } from '@angular-devkit/schematics'; diff --git a/packages/schematics/angular/utility/workspace-models.ts b/packages/schematics/angular/utility/workspace-models.ts index 1113946fe162..8f29b040f90f 100644 --- a/packages/schematics/angular/utility/workspace-models.ts +++ b/packages/schematics/angular/utility/workspace-models.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + export enum ProjectType { Application = 'application', Library = 'library', diff --git a/packages/schematics/angular/utility/workspace.ts b/packages/schematics/angular/utility/workspace.ts index f916871d0e41..c57faba95cb8 100644 --- a/packages/schematics/angular/utility/workspace.ts +++ b/packages/schematics/angular/utility/workspace.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { json, virtualFs, workspaces } from '@angular-devkit/core'; import { Rule, Tree, noop } from '@angular-devkit/schematics'; import { ProjectType } from './workspace-models'; diff --git a/packages/schematics/angular/web-worker/index.ts b/packages/schematics/angular/web-worker/index.ts index f9916004c53b..189001def0ec 100644 --- a/packages/schematics/angular/web-worker/index.ts +++ b/packages/schematics/angular/web-worker/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { dirname, join, diff --git a/packages/schematics/angular/web-worker/index_spec.ts b/packages/schematics/angular/web-worker/index_spec.ts index 4272a8d3a9af..474b0afba950 100644 --- a/packages/schematics/angular/web-worker/index_spec.ts +++ b/packages/schematics/angular/web-worker/index_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { parse as parseJson } from 'jsonc-parser'; import { Schema as ApplicationOptions } from '../application/schema'; diff --git a/packages/schematics/angular/workspace/index.ts b/packages/schematics/angular/workspace/index.ts index fe40febfdc03..45e5fbb01a04 100644 --- a/packages/schematics/angular/workspace/index.ts +++ b/packages/schematics/angular/workspace/index.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { strings } from '@angular-devkit/core'; import { Rule, diff --git a/packages/schematics/angular/workspace/index_spec.ts b/packages/schematics/angular/workspace/index_spec.ts index a57e9252853e..034ee5b45eda 100644 --- a/packages/schematics/angular/workspace/index_spec.ts +++ b/packages/schematics/angular/workspace/index_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { SchematicTestRunner } from '@angular-devkit/schematics/testing'; import { parse as parseJson } from 'jsonc-parser'; import { latestVersions } from '../utility/latest-versions'; diff --git a/scripts/build-schema.ts b/scripts/build-schema.ts index 1b73eca35771..cbf3170746e4 100644 --- a/scripts/build-schema.ts +++ b/scripts/build-schema.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-implicit-dependencies import { logging } from '@angular-devkit/core'; import * as fs from 'fs'; diff --git a/scripts/build.ts b/scripts/build.ts index 429bce5edd61..13d38a1258ef 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-implicit-dependencies import { JsonObject, logging } from '@angular-devkit/core'; import * as child_process from 'child_process'; diff --git a/scripts/changelog.ts b/scripts/changelog.ts index 498fc98250be..245724a753cb 100644 --- a/scripts/changelog.ts +++ b/scripts/changelog.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-console // tslint:disable:no-implicit-dependencies import { JsonObject, logging } from '@angular-devkit/core'; diff --git a/scripts/create.ts b/scripts/create.ts index a54a527ddc2b..90e53ee84df9 100644 --- a/scripts/create.ts +++ b/scripts/create.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-implicit-dependencies import { logging } from '@angular-devkit/core'; import cli from '@angular/cli/lib/cli'; diff --git a/scripts/dist-tag.ts b/scripts/dist-tag.ts index de19b977952d..b84e231d3013 100644 --- a/scripts/dist-tag.ts +++ b/scripts/dist-tag.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - // tslint:disable: no-implicit-dependencies we import @angular-devkit/core but // it is not in package.json, which is fine, this is just a script. diff --git a/scripts/packages.ts b/scripts/packages.ts index 8dcf0e649899..6ad5b6227b0c 100644 --- a/scripts/packages.ts +++ b/scripts/packages.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-implicit-dependencies import { logging } from '@angular-devkit/core'; import * as colors from 'ansi-colors'; diff --git a/scripts/publish.ts b/scripts/publish.ts index 0f6cedde9bcb..ceb969a51630 100644 --- a/scripts/publish.ts +++ b/scripts/publish.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-implicit-dependencies import { logging, tags } from '@angular-devkit/core'; import { spawnSync } from 'child_process'; diff --git a/scripts/snapshots.ts b/scripts/snapshots.ts index 2c65de4b083f..6ac0f2f2fde7 100644 --- a/scripts/snapshots.ts +++ b/scripts/snapshots.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-implicit-dependencies import { logging } from '@angular-devkit/core'; import { execSync, spawnSync } from 'child_process'; diff --git a/scripts/templates.ts b/scripts/templates.ts index e0d22c303af7..18961b3876f0 100644 --- a/scripts/templates.ts +++ b/scripts/templates.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-implicit-dependencies import { logging } from '@angular-devkit/core'; import * as fs from 'fs'; diff --git a/scripts/test.ts b/scripts/test.ts index ece418e6e9d4..1e6515d85365 100644 --- a/scripts/test.ts +++ b/scripts/test.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-console // tslint:disable:no-implicit-dependencies import { logging } from '@angular-devkit/core'; diff --git a/scripts/validate-build-files.ts b/scripts/validate-build-files.ts index f9d1388b6175..1ff2d5deb32d 100644 --- a/scripts/validate-build-files.ts +++ b/scripts/validate-build-files.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-implicit-dependencies import { logging, tags } from '@angular-devkit/core'; import { existsSync } from 'fs'; diff --git a/scripts/validate-licenses.ts b/scripts/validate-licenses.ts index d4af21f98cad..4ab50b43ebf3 100644 --- a/scripts/validate-licenses.ts +++ b/scripts/validate-licenses.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-implicit-dependencies import { JsonObject, logging } from '@angular-devkit/core'; import * as path from 'path'; diff --git a/scripts/validate-user-analytics.ts b/scripts/validate-user-analytics.ts index 725e2447ec81..6d986485946e 100644 --- a/scripts/validate-user-analytics.ts +++ b/scripts/validate-user-analytics.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-implicit-dependencies import { analytics, logging, tags } from '@angular-devkit/core'; import { spawnSync } from 'child_process'; diff --git a/scripts/validate.ts b/scripts/validate.ts index da0b0bae1c51..39565adb55b1 100644 --- a/scripts/validate.ts +++ b/scripts/validate.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-implicit-dependencies import { logging, tags } from '@angular-devkit/core'; import { execSync } from 'child_process'; diff --git a/tests/angular_devkit/core/json/schema/serializers/0.0.javascript_spec.ts b/tests/angular_devkit/core/json/schema/serializers/0.0.javascript_spec.ts index bc9e7f048881..5665ab79fe95 100644 --- a/tests/angular_devkit/core/json/schema/serializers/0.0.javascript_spec.ts +++ b/tests/angular_devkit/core/json/schema/serializers/0.0.javascript_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-any import { schema } from '@angular-devkit/core'; diff --git a/tests/angular_devkit/core/json/schema/serializers/1.0.javascript_spec.ts b/tests/angular_devkit/core/json/schema/serializers/1.0.javascript_spec.ts index 9d37e38db4f4..2148dd908c9f 100644 --- a/tests/angular_devkit/core/json/schema/serializers/1.0.javascript_spec.ts +++ b/tests/angular_devkit/core/json/schema/serializers/1.0.javascript_spec.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-any import { schema } from '@angular-devkit/core'; diff --git a/tests/angular_devkit/core/node/jobs/add.ts b/tests/angular_devkit/core/node/jobs/add.ts index c271d8cfd031..1529ab48bae0 100644 --- a/tests/angular_devkit/core/node/jobs/add.ts +++ b/tests/angular_devkit/core/node/jobs/add.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable:no-global-tslint-disable // tslint:disable:no-implicit-dependencies import { experimental } from '@angular-devkit/core'; diff --git a/tests/angular_devkit/schematics/tools/file-system-engine-host/extra-properties/factory.ts b/tests/angular_devkit/schematics/tools/file-system-engine-host/extra-properties/factory.ts index a0fe71e473a0..db1cd55d135c 100644 --- a/tests/angular_devkit/schematics/tools/file-system-engine-host/extra-properties/factory.ts +++ b/tests/angular_devkit/schematics/tools/file-system-engine-host/extra-properties/factory.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable-next-line:no-implicit-dependencies import { SchematicContext, Tree } from '@angular-devkit/schematics'; @@ -17,4 +18,3 @@ export default function(options: {}) { ); }; } - diff --git a/tests/angular_devkit/schematics/tools/file-system-engine-host/file-tasks/factory.ts b/tests/angular_devkit/schematics/tools/file-system-engine-host/file-tasks/factory.ts index dba7a8f554c5..325837305126 100644 --- a/tests/angular_devkit/schematics/tools/file-system-engine-host/file-tasks/factory.ts +++ b/tests/angular_devkit/schematics/tools/file-system-engine-host/file-tasks/factory.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + // tslint:disable-next-line:no-implicit-dependencies import { SchematicContext, Tree } from '@angular-devkit/schematics'; diff --git a/tests/angular_devkit/schematics/tools/file-system-engine-host/null-factory.ts b/tests/angular_devkit/schematics/tools/file-system-engine-host/null-factory.ts index a65cdc0316f4..1012977b1996 100644 --- a/tests/angular_devkit/schematics/tools/file-system-engine-host/null-factory.ts +++ b/tests/angular_devkit/schematics/tools/file-system-engine-host/null-factory.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - export default function() { return () => {}; } diff --git a/tests/legacy-cli/e2e/tests/basic/ngcc-es2015-only.ts b/tests/legacy-cli/e2e/tests/basic/ngcc-es2015-only.ts index e07cafd5d54f..433511947929 100644 --- a/tests/legacy-cli/e2e/tests/basic/ngcc-es2015-only.ts +++ b/tests/legacy-cli/e2e/tests/basic/ngcc-es2015-only.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { ng } from '../../utils/process'; export default async function() { diff --git a/tests/legacy-cli/e2e/tests/build/bundle-budgets.ts b/tests/legacy-cli/e2e/tests/build/bundle-budgets.ts index f4076d470f3f..8b41f0596dcf 100644 --- a/tests/legacy-cli/e2e/tests/build/bundle-budgets.ts +++ b/tests/legacy-cli/e2e/tests/build/bundle-budgets.ts @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import { ng } from '../../utils/process'; import { updateJsonFile } from '../../utils/project'; import { expectToFail } from '../../utils/utils'; diff --git a/tests/legacy-cli/e2e/tests/build/lazy-load-syntax.ts b/tests/legacy-cli/e2e/tests/build/lazy-load-syntax.ts index abc97433a7ab..ed39e98b4b6a 100644 --- a/tests/legacy-cli/e2e/tests/build/lazy-load-syntax.ts +++ b/tests/legacy-cli/e2e/tests/build/lazy-load-syntax.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { appendToFile, prependToFile, readFile, replaceInFile, writeFile } from '../../utils/fs'; import { ng } from '../../utils/process'; import { updateJsonFile } from '../../utils/project'; diff --git a/tests/legacy-cli/e2e/tests/build/worker.ts b/tests/legacy-cli/e2e/tests/build/worker.ts index c0102b8fe26b..89cf131d4327 100644 --- a/tests/legacy-cli/e2e/tests/build/worker.ts +++ b/tests/legacy-cli/e2e/tests/build/worker.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { join } from 'path'; import { expectFileToExist, expectFileToMatch, replaceInFile, writeFile } from '../../utils/fs'; import { ng } from '../../utils/process'; diff --git a/tests/legacy-cli/e2e/tests/i18n/ivy-localize-basehref.ts b/tests/legacy-cli/e2e/tests/i18n/ivy-localize-basehref.ts index 6e4a581f0d12..4aa4d5a3cdbb 100644 --- a/tests/legacy-cli/e2e/tests/i18n/ivy-localize-basehref.ts +++ b/tests/legacy-cli/e2e/tests/i18n/ivy-localize-basehref.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { expectFileToMatch } from '../../utils/fs'; import { ng } from '../../utils/process'; import { updateJsonFile } from '../../utils/project'; diff --git a/tests/legacy-cli/e2e/tests/i18n/ivy-localize-hashes.ts b/tests/legacy-cli/e2e/tests/i18n/ivy-localize-hashes.ts index 1f64ee4b6536..df60a124034d 100644 --- a/tests/legacy-cli/e2e/tests/i18n/ivy-localize-hashes.ts +++ b/tests/legacy-cli/e2e/tests/i18n/ivy-localize-hashes.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import * as fs from 'fs'; import { appendToFile } from '../../utils/fs'; import { ng } from '../../utils/process'; diff --git a/tests/legacy-cli/e2e/tests/i18n/ivy-localize-locale-data.ts b/tests/legacy-cli/e2e/tests/i18n/ivy-localize-locale-data.ts index b0221af3c382..4356a93103f6 100644 --- a/tests/legacy-cli/e2e/tests/i18n/ivy-localize-locale-data.ts +++ b/tests/legacy-cli/e2e/tests/i18n/ivy-localize-locale-data.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { ng } from '../../utils/process'; import { updateJsonFile } from '../../utils/project'; import { setupI18nConfig } from './setup'; diff --git a/tests/legacy-cli/e2e/tests/i18n/ivy-localize-merging.ts b/tests/legacy-cli/e2e/tests/i18n/ivy-localize-merging.ts index 75f568b6108e..622d12d5bff8 100644 --- a/tests/legacy-cli/e2e/tests/i18n/ivy-localize-merging.ts +++ b/tests/legacy-cli/e2e/tests/i18n/ivy-localize-merging.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { ng } from '../../utils/process'; import { updateJsonFile } from '../../utils/project'; import { setupI18nConfig } from './setup'; diff --git a/tests/legacy-cli/e2e/tests/i18n/ivy-localize-sourcelocale.ts b/tests/legacy-cli/e2e/tests/i18n/ivy-localize-sourcelocale.ts index 2b3be750f672..18fa57f0fb0d 100644 --- a/tests/legacy-cli/e2e/tests/i18n/ivy-localize-sourcelocale.ts +++ b/tests/legacy-cli/e2e/tests/i18n/ivy-localize-sourcelocale.ts @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + import { expectFileToMatch } from '../../utils/fs'; import { ng } from '../../utils/process'; import { updateJsonFile } from '../../utils/project'; diff --git a/tests/schematics/update/packages/update-migrations/v1_5.js b/tests/schematics/update/packages/update-migrations/v1_5.js index 7e79eda93d49..0be7c20c1fff 100644 --- a/tests/schematics/update/packages/update-migrations/v1_5.js +++ b/tests/schematics/update/packages/update-migrations/v1_5.js @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + exports.default = function() { return function(tree) { tree.create('/version1_5', ''); diff --git a/tools/ng_cli_schema_generator.js b/tools/ng_cli_schema_generator.js index 8e7a309eb674..7dd895482821 100644 --- a/tools/ng_cli_schema_generator.js +++ b/tools/ng_cli_schema_generator.js @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + const { readFileSync, writeFileSync, mkdirSync } = require('fs'); const { resolve, dirname } = require('path'); @@ -89,4 +90,4 @@ if (require.main === module) { } } -exports.generate = generate; \ No newline at end of file +exports.generate = generate; diff --git a/tools/quicktype_runner.js b/tools/quicktype_runner.js index d2e37b6fe48d..2d425f42df57 100644 --- a/tools/quicktype_runner.js +++ b/tools/quicktype_runner.js @@ -1,10 +1,11 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ + const fs = require('fs'); const path = require('path'); const { @@ -96,8 +97,8 @@ class FetchingJSONSchemaStore extends JSONSchemaStore { /** * Create the TS file from the schema, and overwrite the outPath (or log). - * @param {string} inPath - * @param {string} outPath + * @param {string} inPath + * @param {string} outPath */ async function main(inPath, outPath) { const content = await generate(inPath); diff --git a/tools/rebase-pr.js b/tools/rebase-pr.js index e74b6156d9c0..b712bff28e6f 100644 --- a/tools/rebase-pr.js +++ b/tools/rebase-pr.js @@ -1,11 +1,10 @@ /** * @license - * Copyright Google Inc. All Rights Reserved. + * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - // tslint:disable:no-console // ** IMPORTANT ** // This script cannot use external dependencies because it needs to run before they are installed. @@ -89,4 +88,4 @@ return Promise.resolve() console.log('Failed to rebase on top or target branch.\n'); console.error(err); process.exitCode = 1; - }); \ No newline at end of file + }); From cb0561a9aaecd6278059e12b773fdaa42365c068 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Tue, 27 Apr 2021 11:55:36 +0200 Subject: [PATCH 079/577] ci: remove `commitMessage` from Renovate configuration Renovate creates better commit message. --- renovate.json | 1 - 1 file changed, 1 deletion(-) diff --git a/renovate.json b/renovate.json index fd63c92e305a..160f828a9bdb 100644 --- a/renovate.json +++ b/renovate.json @@ -2,7 +2,6 @@ "pinVersions": false, "semanticCommits": true, "semanticPrefix": "build", - "commitMessage": "{{semanticPrefix}} update {{#if groupName}}{{{groupName}}} packages{{else}}{{{depName}}} to version {{{newVersion}}}{{/if}}", "separateMajorMinor": false, "prHourlyLimit": 2, "labels": [ From 6864168cdb84ff250aa0612574ee385b3ef3dce9 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 27 Apr 2021 10:33:57 +0000 Subject: [PATCH 080/577] build: update webpack to version 5.36.0 --- package.json | 2 +- .../angular_devkit/build_angular/package.json | 2 +- .../build_optimizer/package.json | 2 +- .../angular_devkit/build_webpack/package.json | 2 +- packages/ngtools/webpack/package.json | 2 +- yarn.lock | 33 +++++++++++++++++-- 6 files changed, 36 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 578c75f10c12..c04df7a170a8 100644 --- a/package.json +++ b/package.json @@ -223,7 +223,7 @@ "typescript": "4.2.4", "verdaccio": "5.0.1", "verdaccio-auth-memory": "^10.0.0", - "webpack": "5.35.1", + "webpack": "5.36.0", "webpack-dev-middleware": "4.1.0", "webpack-dev-server": "3.11.2", "webpack-merge": "5.7.3", diff --git a/packages/angular_devkit/build_angular/package.json b/packages/angular_devkit/build_angular/package.json index d1fe98f239f7..8712a1cde3ff 100644 --- a/packages/angular_devkit/build_angular/package.json +++ b/packages/angular_devkit/build_angular/package.json @@ -68,7 +68,7 @@ "terser-webpack-plugin": "4.2.3", "text-table": "0.2.0", "tree-kill": "1.2.2", - "webpack": "5.35.1", + "webpack": "5.36.0", "webpack-dev-middleware": "4.1.0", "webpack-dev-server": "3.11.2", "webpack-merge": "5.7.3", diff --git a/packages/angular_devkit/build_optimizer/package.json b/packages/angular_devkit/build_optimizer/package.json index e7533472d4c7..e8d40651aead 100644 --- a/packages/angular_devkit/build_optimizer/package.json +++ b/packages/angular_devkit/build_optimizer/package.json @@ -22,6 +22,6 @@ } }, "devDependencies": { - "webpack": "5.35.1" + "webpack": "5.36.0" } } diff --git a/packages/angular_devkit/build_webpack/package.json b/packages/angular_devkit/build_webpack/package.json index 1a09e4a63378..58768bd821e0 100644 --- a/packages/angular_devkit/build_webpack/package.json +++ b/packages/angular_devkit/build_webpack/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@angular-devkit/core": "0.0.0", "node-fetch": "2.6.1", - "webpack": "5.35.1" + "webpack": "5.36.0" }, "peerDependencies": { "webpack": "^5.30.0", diff --git a/packages/ngtools/webpack/package.json b/packages/ngtools/webpack/package.json index 5e5db490a5fd..18c55455d50d 100644 --- a/packages/ngtools/webpack/package.json +++ b/packages/ngtools/webpack/package.json @@ -33,6 +33,6 @@ "@angular/compiler": "12.0.0-rc.0", "@angular/compiler-cli": "12.0.0-rc.0", "typescript": "4.2.4", - "webpack": "5.35.1" + "webpack": "5.36.0" } } diff --git a/yarn.lock b/yarn.lock index 9df2c48cf324..03e81607e15a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2111,7 +2111,7 @@ acorn@^7.1.0, acorn@^7.1.1: resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== -acorn@^8.0.4: +acorn@^8.0.4, acorn@^8.2.1: version "8.2.1" resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.2.1.tgz#0d36af126fb6755095879c1dc6fd7edf7d60a5fb" integrity sha512-z716cpm5TX4uzOzILx8PavOE6C6DKshHDw1aQN52M/yNSqE9s5O8SMfyhCCfCJ3HmTL0NkVOi+8a/55T7YB3bg== @@ -11490,7 +11490,36 @@ webpack-subresource-integrity@1.5.2: dependencies: webpack-sources "^1.3.0" -webpack@5.35.1, webpack@^5.1.0: +webpack@5.36.0: + version "5.36.0" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.36.0.tgz#d008da31b721f8fecce88ef2adaf1b16dc2161d1" + integrity sha512-HdOhLXClUEwTnzQnzpSG9iL00ej23ojvfnGpF49ba0MkuAT2q+WhQilHFFJHOIVRBqbzakQ1vCWQV2K+QLX0Qw== + dependencies: + "@types/eslint-scope" "^3.7.0" + "@types/estree" "^0.0.47" + "@webassemblyjs/ast" "1.11.0" + "@webassemblyjs/wasm-edit" "1.11.0" + "@webassemblyjs/wasm-parser" "1.11.0" + acorn "^8.2.1" + browserslist "^4.14.5" + chrome-trace-event "^1.0.2" + enhanced-resolve "^5.8.0" + es-module-lexer "^0.4.0" + eslint-scope "^5.1.1" + events "^3.2.0" + glob-to-regexp "^0.4.1" + graceful-fs "^4.2.4" + json-parse-better-errors "^1.0.2" + loader-runner "^4.2.0" + mime-types "^2.1.27" + neo-async "^2.6.2" + schema-utils "^3.0.0" + tapable "^2.1.1" + terser-webpack-plugin "^5.1.1" + watchpack "^2.0.0" + webpack-sources "^2.1.1" + +webpack@^5.1.0: version "5.35.1" resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.35.1.tgz#857670799465c8a5cbb94c4c175d60ac42d18ba3" integrity sha512-uWKYStqJ23+N6/EnMEwUjPSSKUG1tFmcuKhALEh/QXoUxwN8eb3ATNIZB38A+fO6QZ0xfc7Cu7KNV9LXNhDCsw== From 29615c5ec4fc5a895672ce6e27259bb73474cb64 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Tue, 27 Apr 2021 12:40:04 +0200 Subject: [PATCH 081/577] build: update lock file to force same Webpack version --- yarn.lock | 35 ++--------------------------------- 1 file changed, 2 insertions(+), 33 deletions(-) diff --git a/yarn.lock b/yarn.lock index 03e81607e15a..a2fd585507c9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -86,7 +86,6 @@ "@angular/dev-infra-private@https://github.com/angular/dev-infra-private-builds.git#97eabea116da45d2a745c18e946a9c57c6c65800": version "0.0.0" - uid "97eabea116da45d2a745c18e946a9c57c6c65800" resolved "https://github.com/angular/dev-infra-private-builds.git#97eabea116da45d2a745c18e946a9c57c6c65800" dependencies: "@angular/benchpress" "0.2.1" @@ -2111,7 +2110,7 @@ acorn@^7.1.0, acorn@^7.1.1: resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== -acorn@^8.0.4, acorn@^8.2.1: +acorn@^8.2.1: version "8.2.1" resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.2.1.tgz#0d36af126fb6755095879c1dc6fd7edf7d60a5fb" integrity sha512-z716cpm5TX4uzOzILx8PavOE6C6DKshHDw1aQN52M/yNSqE9s5O8SMfyhCCfCJ3HmTL0NkVOi+8a/55T7YB3bg== @@ -9684,7 +9683,6 @@ sass@1.32.11, sass@^1.32.8: "sauce-connect-proxy@https://saucelabs.com/downloads/sc-4.6.4-linux.tar.gz": version "0.0.0" - uid "992e2cb0d91e54b27a4f5bbd2049f3b774718115" resolved "https://saucelabs.com/downloads/sc-4.6.4-linux.tar.gz#992e2cb0d91e54b27a4f5bbd2049f3b774718115" saucelabs@^1.5.0: @@ -11490,7 +11488,7 @@ webpack-subresource-integrity@1.5.2: dependencies: webpack-sources "^1.3.0" -webpack@5.36.0: +webpack@5.36.0, webpack@^5.1.0: version "5.36.0" resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.36.0.tgz#d008da31b721f8fecce88ef2adaf1b16dc2161d1" integrity sha512-HdOhLXClUEwTnzQnzpSG9iL00ej23ojvfnGpF49ba0MkuAT2q+WhQilHFFJHOIVRBqbzakQ1vCWQV2K+QLX0Qw== @@ -11519,35 +11517,6 @@ webpack@5.36.0: watchpack "^2.0.0" webpack-sources "^2.1.1" -webpack@^5.1.0: - version "5.35.1" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.35.1.tgz#857670799465c8a5cbb94c4c175d60ac42d18ba3" - integrity sha512-uWKYStqJ23+N6/EnMEwUjPSSKUG1tFmcuKhALEh/QXoUxwN8eb3ATNIZB38A+fO6QZ0xfc7Cu7KNV9LXNhDCsw== - dependencies: - "@types/eslint-scope" "^3.7.0" - "@types/estree" "^0.0.47" - "@webassemblyjs/ast" "1.11.0" - "@webassemblyjs/wasm-edit" "1.11.0" - "@webassemblyjs/wasm-parser" "1.11.0" - acorn "^8.0.4" - browserslist "^4.14.5" - chrome-trace-event "^1.0.2" - enhanced-resolve "^5.8.0" - es-module-lexer "^0.4.0" - eslint-scope "^5.1.1" - events "^3.2.0" - glob-to-regexp "^0.4.1" - graceful-fs "^4.2.4" - json-parse-better-errors "^1.0.2" - loader-runner "^4.2.0" - mime-types "^2.1.27" - neo-async "^2.6.2" - schema-utils "^3.0.0" - tapable "^2.1.1" - terser-webpack-plugin "^5.1.1" - watchpack "^2.0.0" - webpack-sources "^2.1.1" - websocket-driver@>=0.5.1, websocket-driver@^0.7.4: version "0.7.4" resolved "https://registry.yarnpkg.com/websocket-driver/-/websocket-driver-0.7.4.tgz#89ad5295bbf64b480abcba31e4953aca706f5760" From da91bf3b0c8e3bdf627fcc55cbf6aaa72ede30c7 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Thu, 22 Apr 2021 09:18:43 +0000 Subject: [PATCH 082/577] build: update puppeteer to version 9.0.0 --- package.json | 2 +- yarn.lock | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index c04df7a170a8..ee170641c662 100644 --- a/package.json +++ b/package.json @@ -188,7 +188,7 @@ "postcss-preset-env": "6.7.0", "prettier": "^2.0.0", "protractor": "~7.0.0", - "puppeteer": "8.0.0", + "puppeteer": "9.0.0", "quicktype-core": "6.0.69", "raw-loader": "4.0.2", "regenerator-runtime": "0.13.7", diff --git a/yarn.lock b/yarn.lock index a2fd585507c9..627380c200b2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4134,10 +4134,10 @@ detect-node@^2.0.4: resolved "https://registry.yarnpkg.com/detect-node/-/detect-node-2.0.5.tgz#9d270aa7eaa5af0b72c4c9d9b814e7f4ce738b79" integrity sha512-qi86tE6hRcFHy8jI1m2VG+LaPUR1LhqDa5G8tVjuUXmOrpuAgqsA1pN0+ldgr3aKUH+QLI9hCY/OcRYisERejw== -devtools-protocol@0.0.854822: - version "0.0.854822" - resolved "https://registry.yarnpkg.com/devtools-protocol/-/devtools-protocol-0.0.854822.tgz#eac3a5260a6b3b4e729a09fdc0c77b0d322e777b" - integrity sha512-xd4D8kHQtB0KtWW0c9xBZD5LVtm9chkMOfs/3Yn01RhT/sFIsVtzTtypfKoFfWBaL+7xCYLxjOLkhwPXaX/Kcg== +devtools-protocol@0.0.869402: + version "0.0.869402" + resolved "https://registry.yarnpkg.com/devtools-protocol/-/devtools-protocol-0.0.869402.tgz#03ade701761742e43ae4de5dc188bcd80f156d8d" + integrity sha512-VvlVYY+VDJe639yHs5PHISzdWTLL3Aw8rO4cvUtwvoxFd6FHbE4OpHHcde52M6096uYYazAmd4l0o5VuFRO2WA== dezalgo@^1.0.0: version "1.0.3" @@ -8988,13 +8988,13 @@ punycode@^2.1.0, punycode@^2.1.1: resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== -puppeteer@8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/puppeteer/-/puppeteer-8.0.0.tgz#a236669118aa795331c2d0ca19877159e7664705" - integrity sha512-D0RzSWlepeWkxPPdK3xhTcefj8rjah1791GE82Pdjsri49sy11ci/JQsAO8K2NRukqvwEtcI+ImP5F4ZiMvtIQ== +puppeteer@9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/puppeteer/-/puppeteer-9.0.0.tgz#b476e17ceb3e33a6667bf682d66dde9898f9c031" + integrity sha512-Avu8SKWQRC1JKNMgfpH7d4KzzHOL/A65jRYrjNU46hxnOYGwqe4zZp/JW8qulaH0Pnbm5qyO3EbSKvqBUlfvkg== dependencies: debug "^4.1.0" - devtools-protocol "0.0.854822" + devtools-protocol "0.0.869402" extract-zip "^2.0.0" https-proxy-agent "^5.0.0" node-fetch "^2.6.1" From 3059b5d9264e3d71c27714fd0e2f8f9e19fa235c Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Tue, 27 Apr 2021 12:26:54 +0200 Subject: [PATCH 083/577] build: update chrome driver to 91.0.4472.19 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ee170641c662..9316aa4ebfc7 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "validate": "node ./bin/devkit-admin validate", "postinstall": "yarn webdriver-update && yarn ngcc && yarn husky install", "//webdriver-update-README": "ChromeDriver version must match Puppeteer Chromium version, see https://github.com/GoogleChrome/puppeteer/releases http://chromedriver.chromium.org/downloads", - "webdriver-update": "webdriver-manager update --standalone false --gecko false --versions.chrome 89.0.4389.0", + "webdriver-update": "webdriver-manager update --standalone false --gecko false --versions.chrome 91.0.4472.19", "ngcc": "ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points" }, "repository": { From 38acdb70d564b1f3a6bfdceebd19263bc3a57c21 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Tue, 27 Apr 2021 13:29:42 +0200 Subject: [PATCH 084/577] test(@angular-devkit/build-angular): update HMR test to support new chrome driver --- .../angular_devkit/build_angular/src/dev-server/hmr_spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/angular_devkit/build_angular/src/dev-server/hmr_spec.ts b/packages/angular_devkit/build_angular/src/dev-server/hmr_spec.ts index ca26cdc93f80..2f2ef256e41c 100644 --- a/packages/angular_devkit/build_angular/src/dev-server/hmr_spec.ts +++ b/packages/angular_devkit/build_angular/src/dev-server/hmr_spec.ts @@ -97,13 +97,13 @@ describe('Dev Server Builder HMR', () => { expect(logs).toContain(`[HMR] css reload %s ${url}styles.css`); expect(logs).toContain('[HMR] App is up to date.'); - const pTag = await page.evaluate(() => { + const pTagColor = await page.evaluate(() => { const el = document.querySelector('p'); - return JSON.parse(JSON.stringify(getComputedStyle(el))); + return getComputedStyle(el).color; }); - expect(pTag.color).toBe('rgb(255, 255, 0)'); + expect(pTagColor).toBe('rgb(255, 255, 0)'); break; } From 9d6c1dad955d1a1b7a37acfb81d065de894c56c4 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Tue, 27 Apr 2021 14:54:34 +0200 Subject: [PATCH 085/577] refactor(@angular-devkit/build-angular): remove old worker_threads detection We now don't support Node 10 hence `worker_threads` are always available. --- .../src/utils/action-executor.ts | 21 +++---------------- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/packages/angular_devkit/build_angular/src/utils/action-executor.ts b/packages/angular_devkit/build_angular/src/utils/action-executor.ts index c8210d558a9d..eee4705cb8b6 100644 --- a/packages/angular_devkit/build_angular/src/utils/action-executor.ts +++ b/packages/angular_devkit/build_angular/src/utils/action-executor.ts @@ -9,27 +9,12 @@ import JestWorker from 'jest-worker'; import * as os from 'os'; import * as path from 'path'; -import * as v8 from 'v8'; +import { serialize } from 'v8'; import { BundleActionCache } from './action-cache'; import { I18nOptions } from './i18n-options'; import { InlineOptions, ProcessBundleOptions, ProcessBundleResult } from './process-bundle'; import { maxWorkers } from './workers'; -const hasThreadSupport = (() => { - try { - require('worker_threads'); - - return true; - } catch { - return false; - } -})(); - -// This is used to normalize serialization messaging across threads and processes -// Threads use the structured clone algorithm which handles more types -// Processes use JSON which is much more limited -const serialize = ((v8 as unknown) as { serialize(value: unknown): Buffer }).serialize; - let workerFile = require.resolve('./process-bundle'); workerFile = path.extname(workerFile) === '.ts' @@ -77,9 +62,9 @@ export class BundleActionExecutor { // The limited number also prevents a large increase in memory usage for an otherwise short operation return (this.smallWorker = new JestWorker(workerFile, { exposedMethods: ['process', 'inlineLocales'], - setupArgs: hasThreadSupport ? [this.workerOptions] : [[...serialize(this.workerOptions)]], + setupArgs: [this.workerOptions], numWorkers: os.cpus().length < 2 ? 1 : 2, - enableWorkerThreads: hasThreadSupport, + enableWorkerThreads: true, })); } From 0b27cfb720f63a24f63251eb0f14482ba101099e Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Tue, 27 Apr 2021 10:02:56 +0200 Subject: [PATCH 086/577] build: update minimum supported node.js version to 12.14 This is to match the ranges in the framework repo. --- README.md | 2 +- lib/packages.ts | 2 +- package.json | 2 +- packages/angular/cli/bin/ng | 6 +++--- packages/angular/cli/lib/cli/index.ts | 4 ++-- scripts/templates/readme.ejs | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 340f9daa8e70..4bae010dfd5a 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ To get started locally, follow these instructions: 1. If you haven't done it already, [make a fork of this repo](https://github.com/angular/angular-cli/fork). 1. Clone to your local computer using `git`. -1. Make sure that you have Node 10.13 or later installed. See instructions [here](https://nodejs.org/en/download/). +1. Make sure that you have Node 12.14 or 14.0 installed. See instructions [here](https://nodejs.org/en/download/). 1. Make sure that you have `yarn` installed; see instructions [here](https://yarnpkg.com/lang/en/docs/install/). 1. Run `yarn` (no arguments) from the root of your clone of this project to install dependencies. diff --git a/lib/packages.ts b/lib/packages.ts index 0cf42a4ba1cd..b4b35784fcfc 100644 --- a/lib/packages.ts +++ b/lib/packages.ts @@ -88,7 +88,7 @@ function loadPackageJson(p: string) { // Overwrite engines to a common default. case 'engines': pkg['engines'] = { - 'node': '>= 12.13.0', + 'node': '^12.14.1 || ^14.0.0', 'npm': '^6.11.0 || ^7.5.6', 'yarn': '>= 1.13.0', }; diff --git a/package.json b/package.json index 9316aa4ebfc7..84ca4c43ffa4 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "url": "https://github.com/angular/angular-cli.git" }, "engines": { - "node": ">=12.13.0 <15.0.0", + "node": "^12.14.1 || ^14.0.0", "yarn": ">=1.21.1 <2", "npm": "Please use yarn instead of NPM to install dependencies" }, diff --git a/packages/angular/cli/bin/ng b/packages/angular/cli/bin/ng index 09aea2a41bf0..889851add1f7 100755 --- a/packages/angular/cli/bin/ng +++ b/packages/angular/cli/bin/ng @@ -29,15 +29,15 @@ if (version[0] % 2 === 1 && version[0] > 14) { } else if ( version[0] < 12 || version[0] === 13 || - (version[0] === 12 && version[1] < 13) || + (version[0] === 12 && version[1] < 14) || (version[0] === 14 && version[1] < 15) ) { - // Error and exit if less than 12.13 or 13.x or less than 14.15 + // Error and exit if less than 12.14 or 13.x or less than 14.15 console.error( 'Node.js version ' + process.version + ' detected.\n' + - 'The Angular CLI requires a minimum Node.js version of either v12.13 or v14.15.\n\n' + + 'The Angular CLI requires a minimum Node.js version of either v12.14 or v14.15.\n\n' + 'Please update your Node.js version or visit https://nodejs.org/ for additional instructions.\n', ); diff --git a/packages/angular/cli/lib/cli/index.ts b/packages/angular/cli/lib/cli/index.ts index 091c0772e208..7cea5663c8d6 100644 --- a/packages/angular/cli/lib/cli/index.ts +++ b/packages/angular/cli/lib/cli/index.ts @@ -26,10 +26,10 @@ const isDebug = export default async function(options: { testing?: boolean; cliArgs: string[] }) { // This node version check ensures that the requirements of the project instance of the CLI are met const version = process.versions.node.split('.').map(part => Number(part)); - if (version[0] < 10 || version[0] === 11 || (version[0] === 10 && version[1] < 13)) { + if (version[0] < 12 || (version[0] === 12 && version[1] < 14)) { process.stderr.write( `Node.js version ${process.version} detected.\n` + - 'The Angular CLI requires a minimum Node.js version of either v10.13 or v12.0.\n\n' + + 'The Angular CLI requires a minimum v12.14.\n\n' + 'Please update your Node.js version or visit https://nodejs.org/ for additional instructions.\n', ); diff --git a/scripts/templates/readme.ejs b/scripts/templates/readme.ejs index 5ceccecf322f..fa99b54cbcb8 100644 --- a/scripts/templates/readme.ejs +++ b/scripts/templates/readme.ejs @@ -57,7 +57,7 @@ To get started locally, follow these instructions: 1. If you haven't done it already, [make a fork of this repo](https://github.com/angular/angular-cli/fork). 1. Clone to your local computer using `git`. -1. Make sure that you have Node 10.13 or later installed. See instructions [here](https://nodejs.org/en/download/). +1. Make sure that you have Node 12.14 or 14.0 installed. See instructions [here](https://nodejs.org/en/download/). 1. Make sure that you have `yarn` installed; see instructions [here](https://yarnpkg.com/lang/en/docs/install/). 1. Run `yarn` (no arguments) from the root of your clone of this project to install dependencies. From ee86327167a0d70973409957ea9b9b06f8a0b730 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Mon, 26 Apr 2021 20:06:20 -0400 Subject: [PATCH 087/577] build: update prettier configuration and ignore files Quoted properties are now configured to be preserved within code and is needed for cases of closure compiler usage. The ignore files list is also updated to now ignore all directories that contain code that should not be formatted; either because the code is auto-generated, an output directory, or third party vendor code. --- .prettierignore | 8 ++++++++ .prettierrc | 1 + 2 files changed, 9 insertions(+) diff --git a/.prettierignore b/.prettierignore index fbcd212375a5..04975244c3e8 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +1,9 @@ +/bazel-out/ +/dist-schema/ /etc/api +/tests/ +/README.md +/CONTRIBUTING.md +.yarn/ +dist/ +third_party/ \ No newline at end of file diff --git a/.prettierrc b/.prettierrc index 5e2863a11f68..8ef20e3c1ea0 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,5 +1,6 @@ { "printWidth": 100, + "quoteProps": "preserve", "singleQuote": true, "trailingComma": "all" } From 203f9626dfec22d9185f6ec49d0b11918370b276 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Tue, 27 Apr 2021 15:02:43 -0400 Subject: [PATCH 088/577] refactor(@angular/cli): correct various uncaught code style issues This change cleans up some of the code by removing unused variables/imports, unnecessary double negation, and some long line lengths. --- packages/angular/cli/commands/add-impl.ts | 2 +- packages/angular/cli/commands/extract-i18n-impl.ts | 10 +++++++--- packages/angular/cli/commands/new-impl.ts | 1 - packages/angular/cli/commands/serve-impl.ts | 2 +- packages/angular/cli/lib/init.ts | 1 - packages/angular/cli/models/command.ts | 4 ++-- packages/angular/cli/models/schematic-command.ts | 2 +- packages/angular/cli/package.json | 3 +++ .../angular/cli/src/commands/update/schematic/index.ts | 2 +- 9 files changed, 16 insertions(+), 11 deletions(-) diff --git a/packages/angular/cli/commands/add-impl.ts b/packages/angular/cli/commands/add-impl.ts index 45f44bdef26a..dd309030f928 100644 --- a/packages/angular/cli/commands/add-impl.ts +++ b/packages/angular/cli/commands/add-impl.ts @@ -131,7 +131,7 @@ export class AddCommand extends SchematicCommand { // 'latest' is invalid so search for most recent matching package const versionManifests = Object.values(packageMetadata.versions).filter( (value: PackageManifest) => !prerelease(value.version) && !value.deprecated, - ) as PackageManifest[]; + ); versionManifests.sort((a, b) => rcompare(a.version, b.version, true)); diff --git a/packages/angular/cli/commands/extract-i18n-impl.ts b/packages/angular/cli/commands/extract-i18n-impl.ts index e559f0cc4af4..47c25b0ca6c6 100644 --- a/packages/angular/cli/commands/extract-i18n-impl.ts +++ b/packages/angular/cli/commands/extract-i18n-impl.ts @@ -16,15 +16,19 @@ export class ExtractI18nCommand extends ArchitectCommand { public readonly target = 'serve'; - public validate(_options: ArchitectCommandOptions & Arguments) { + public validate() { return true; } diff --git a/packages/angular/cli/lib/init.ts b/packages/angular/cli/lib/init.ts index 86c06b3bf2c7..cb1764824c87 100644 --- a/packages/angular/cli/lib/init.ts +++ b/packages/angular/cli/lib/init.ts @@ -12,7 +12,6 @@ import 'symbol-observable'; import * as fs from 'fs'; import * as path from 'path'; import { SemVer } from 'semver'; -import { Duplex } from 'stream'; import { colors } from '../utilities/color'; import { isWarningEnabled } from '../utilities/config'; diff --git a/packages/angular/cli/models/command.ts b/packages/angular/cli/models/command.ts index 6b13e3fc31ca..7f334aefe748 100644 --- a/packages/angular/cli/models/command.ts +++ b/packages/angular/cli/models/command.ts @@ -52,7 +52,7 @@ export abstract class Command return 0; } - async printJsonHelp(_options: T & Arguments): Promise { + async printJsonHelp(): Promise { const replacer = (key: string, value: string) => key === 'name' ? strings.dasherize(value) : value; @@ -176,7 +176,7 @@ export abstract class Command if (options.help === true) { return this.printHelp(); } else if (options.help === 'json' || options.help === 'JSON') { - return this.printJsonHelp(options); + return this.printJsonHelp(); } else { const startTime = +new Date(); if (this.useReportAnalytics) { diff --git a/packages/angular/cli/models/schematic-command.ts b/packages/angular/cli/models/schematic-command.ts index 5f134236a031..99d2f13a95c1 100644 --- a/packages/angular/cli/models/schematic-command.ts +++ b/packages/angular/cli/models/schematic-command.ts @@ -243,7 +243,7 @@ export abstract class SchematicCommand< packageRegistry: options.packageRegistry, // A schema registry is required to allow customizing addUndefinedDefaults registry: new schema.CoreSchemaRegistry(formats.standardFormats), - resolvePaths: !!this.workspace + resolvePaths: this.workspace // Workspace ? this.collectionName === this.defaultCollectionName // Favor __dirname for @schematics/angular to use the build-in version diff --git a/packages/angular/cli/package.json b/packages/angular/cli/package.json index 620bb25421dd..1453551cd593 100644 --- a/packages/angular/cli/package.json +++ b/packages/angular/cli/package.json @@ -46,6 +46,9 @@ "symbol-observable": "4.0.0", "uuid": "8.3.2" }, + "devDependencies": { + "rxjs": "6.6.7" + }, "ng-update": { "migrations": "@schematics/angular/migrations/migration-collection.json", "packageGroup": { diff --git a/packages/angular/cli/src/commands/update/schematic/index.ts b/packages/angular/cli/src/commands/update/schematic/index.ts index 91d18fa42cfc..21005571bd9d 100644 --- a/packages/angular/cli/src/commands/update/schematic/index.ts +++ b/packages/angular/cli/src/commands/update/schematic/index.ts @@ -435,7 +435,7 @@ function _usageMessage( target, }; }) - .filter(({ name, info, version, target }) => { + .filter(({ info, version, target }) => { return (target && semver.compare(info.installed.version, version) < 0); }) .filter(({ target }) => { From c5872e112464a436d7ae749e76f6b422bdb4e207 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 28 Apr 2021 07:40:48 +0000 Subject: [PATCH 089/577] build: update dependency stylus-loader to v5 --- package.json | 2 +- packages/angular_devkit/build_angular/package.json | 2 +- yarn.lock | 14 ++++++-------- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 84ca4c43ffa4..6e066fbca31d 100644 --- a/package.json +++ b/package.json @@ -205,7 +205,7 @@ "spdx-satisfies": "^5.0.0", "style-loader": "2.0.0", "stylus": "0.54.8", - "stylus-loader": "4.3.3", + "stylus-loader": "5.0.0", "symbol-observable": "4.0.0", "tar": "^6.0.0", "temp": "^0.9.0", diff --git a/packages/angular_devkit/build_angular/package.json b/packages/angular_devkit/build_angular/package.json index 8712a1cde3ff..8108938070e0 100644 --- a/packages/angular_devkit/build_angular/package.json +++ b/packages/angular_devkit/build_angular/package.json @@ -63,7 +63,7 @@ "source-map-support": "0.5.19", "style-loader": "2.0.0", "stylus": "0.54.8", - "stylus-loader": "4.3.3", + "stylus-loader": "5.0.0", "terser": "5.7.0", "terser-webpack-plugin": "4.2.3", "text-table": "0.2.0", diff --git a/yarn.lock b/yarn.lock index 627380c200b2..b0a8659a0443 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4728,7 +4728,7 @@ fast-deep-equal@^3.1.1: resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== -fast-glob@^3.1.1, fast-glob@^3.2.4, fast-glob@^3.2.5: +fast-glob@^3.1.1, fast-glob@^3.2.5: version "3.2.5" resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.5.tgz#7939af2a656de79a4f1901903ee8adcaa7cb9661" integrity sha512-2DtFcgT68wiTTiwZ2hNdJfcHNke9XOfnwmBRWXhmeKM8rF0TGwmC/Qto3S7RoZKp5cilZbxzO5iTNTQsJ+EeDg== @@ -10492,16 +10492,14 @@ stylehacks@^5.0.0: browserslist "^4.16.0" postcss-selector-parser "^6.0.4" -stylus-loader@4.3.3: - version "4.3.3" - resolved "https://registry.yarnpkg.com/stylus-loader/-/stylus-loader-4.3.3.tgz#381bb6341272ac50bcdfd0b877707eac99b6b757" - integrity sha512-PpWB5PnCXUzW4WMYhCvNzAHJBjIBPMXwsdfkkKuA9W7k8OQFMl/19/AQvaWsxz2IptxUlCseyJ6TY/eEKJ4+UQ== +stylus-loader@5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/stylus-loader/-/stylus-loader-5.0.0.tgz#d3f548887ab67808cc40d320079c44f8ffa3d9b8" + integrity sha512-1OaGgixTgC8IAaMCodZXg7XYsfP1qU0UzTHDyPaWACUh34j9geJL4iA583tFJDOtfNUOfDLaBpUywc5MicQ1aA== dependencies: - fast-glob "^3.2.4" + fast-glob "^3.2.5" klona "^2.0.4" - loader-utils "^2.0.0" normalize-path "^3.0.0" - schema-utils "^3.0.0" stylus@0.54.8, stylus@^0.54.8: version "0.54.8" From 8b34305777ffd8f503d873039ae6173e505f0c7c Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 28 Apr 2021 07:40:06 +0000 Subject: [PATCH 090/577] build: update all non-major dependencies --- package.json | 6 +-- packages/angular/cli/package.json | 2 +- .../angular_devkit/build_angular/package.json | 2 +- packages/angular_devkit/core/package.json | 2 +- yarn.lock | 44 ++++++++++++------- 5 files changed, 33 insertions(+), 23 deletions(-) diff --git a/package.json b/package.json index 6e066fbca31d..4610cde11c48 100644 --- a/package.json +++ b/package.json @@ -121,7 +121,7 @@ "@types/uuid": "^8.0.0", "@types/webpack-dev-server": "^3.1.7", "@yarnpkg/lockfile": "1.1.0", - "ajv": "8.1.0", + "ajv": "8.2.0", "ajv-formats": "2.0.2", "ansi-colors": "4.1.1", "babel-loader": "8.2.2", @@ -175,7 +175,7 @@ "ng-packagr": "~12.0.0-next.0", "node-fetch": "^2.2.0", "npm-registry-client": "8.6.0", - "open": "8.0.6", + "open": "8.0.7", "ora": "5.4.0", "pacote": "11.3.3", "parse5-html-rewriting-stream": "6.0.1", @@ -221,7 +221,7 @@ "tslint-no-circular-imports": "^0.7.0", "tslint-sonarts": "1.9.0", "typescript": "4.2.4", - "verdaccio": "5.0.1", + "verdaccio": "5.0.4", "verdaccio-auth-memory": "^10.0.0", "webpack": "5.36.0", "webpack-dev-middleware": "4.1.0", diff --git a/packages/angular/cli/package.json b/packages/angular/cli/package.json index 1453551cd593..1748f27e1e27 100644 --- a/packages/angular/cli/package.json +++ b/packages/angular/cli/package.json @@ -37,7 +37,7 @@ "jsonc-parser": "3.0.0", "npm-package-arg": "8.1.2", "npm-pick-manifest": "6.1.1", - "open": "8.0.6", + "open": "8.0.7", "ora": "5.4.0", "pacote": "11.3.3", "resolve": "1.20.0", diff --git a/packages/angular_devkit/build_angular/package.json b/packages/angular_devkit/build_angular/package.json index 8108938070e0..bce67c9f00c0 100644 --- a/packages/angular_devkit/build_angular/package.json +++ b/packages/angular_devkit/build_angular/package.json @@ -43,7 +43,7 @@ "loader-utils": "2.0.0", "mini-css-extract-plugin": "1.5.0", "minimatch": "3.0.4", - "open": "8.0.6", + "open": "8.0.7", "ora": "5.4.0", "parse5-html-rewriting-stream": "6.0.1", "postcss": "8.2.13", diff --git a/packages/angular_devkit/core/package.json b/packages/angular_devkit/core/package.json index c24f1da0bf45..5651a39cb7a0 100644 --- a/packages/angular_devkit/core/package.json +++ b/packages/angular_devkit/core/package.json @@ -8,7 +8,7 @@ "core" ], "dependencies": { - "ajv": "8.1.0", + "ajv": "8.2.0", "ajv-formats": "2.0.2", "fast-json-stable-stringify": "2.1.0", "magic-string": "0.25.7", diff --git a/yarn.lock b/yarn.lock index b0a8659a0443..9a079ad5b355 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1920,10 +1920,10 @@ resolved "https://registry.yarnpkg.com/@verdaccio/streams/-/streams-10.0.0.tgz#8b06e1d6f06e906ebda0f1d4089cdb651a533541" integrity sha512-PqxxY11HhweN6z1lwfn9ydLCdnOkCPpthMZs+SGCDz8Rt6gOyrjJVslV7o4uobDipjD9+hUPpJHDeO33Qt24uw== -"@verdaccio/ui-theme@3.0.1": - version "3.0.1" - resolved "https://registry.yarnpkg.com/@verdaccio/ui-theme/-/ui-theme-3.0.1.tgz#6c8460c46d691bc33d1dc4fbf5c0f07b85a1858a" - integrity sha512-5L8knU5yYYZ5nc3zOGIZArtuc8t+znbtMYMcvzweE2JsLF/gMCsRhpGUB69OBJYtJtut3phzrLxdranYExacmw== +"@verdaccio/ui-theme@3.1.0": + version "3.1.0" + resolved "https://registry.yarnpkg.com/@verdaccio/ui-theme/-/ui-theme-3.1.0.tgz#21108f3c1b97e6db5901509d935e1f4ce475950a" + integrity sha512-NmJOcv25/OtF84YrmYxi31beFde7rt+/y2qlnq0wYR4ZCFRE5TsuqisTVTe1OyJ8D8JwwPMyMSMSMtlMwUfqIQ== "@webassemblyjs/ast@1.11.0": version "1.11.0" @@ -2181,10 +2181,10 @@ ajv-keywords@^3.1.0, ajv-keywords@^3.5.2: resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz#31f29da5ab6e00d1c2d329acf7b5929614d5014d" integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ== -ajv@8.1.0, ajv@^8.0.0: - version "8.1.0" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.1.0.tgz#45d5d3d36c7cdd808930cc3e603cf6200dbeb736" - integrity sha512-B/Sk2Ix7A36fs/ZkuGLIR86EdjbgR6fsAcbx9lOP/QBSXujDNbVmIS/U4Itz5k8fPFDeVZl/zQ/gJW4Jrq6XjQ== +ajv@8.2.0: + version "8.2.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.2.0.tgz#c89d3380a784ce81b2085f48811c4c101df4c602" + integrity sha512-WSNGFuyWd//XO8n/m/EaOlNLtO0yL8EXT/74LqT4khdhpZjP7lkj/kT5uwRmGitKEVp/Oj7ZUHeGfPtgHhQ5CA== dependencies: fast-deep-equal "^3.1.1" json-schema-traverse "^1.0.0" @@ -2201,6 +2201,16 @@ ajv@^6.1.0, ajv@^6.12.3, ajv@^6.12.4, ajv@^6.12.5: json-schema-traverse "^0.4.1" uri-js "^4.2.2" +ajv@^8.0.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.1.0.tgz#45d5d3d36c7cdd808930cc3e603cf6200dbeb736" + integrity sha512-B/Sk2Ix7A36fs/ZkuGLIR86EdjbgR6fsAcbx9lOP/QBSXujDNbVmIS/U4Itz5k8fPFDeVZl/zQ/gJW4Jrq6XjQ== + dependencies: + fast-deep-equal "^3.1.1" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + uri-js "^4.2.2" + alphanum-sort@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/alphanum-sort/-/alphanum-sort-1.0.2.tgz#97a1119649b211ad33691d9f9f486a8ec9fbe0a3" @@ -7747,10 +7757,10 @@ onetime@^5.1.0: dependencies: mimic-fn "^2.1.0" -open@8.0.6: - version "8.0.6" - resolved "https://registry.yarnpkg.com/open/-/open-8.0.6.tgz#bdf94a80b4ef5685d8c7b58fb0fbbe5729b37204" - integrity sha512-vDOC0KwGabMPFtIpCO2QOnQeOz0N2rEkbuCuxICwLMUCrpv+A7NHrrzJ2dQReJmVluHhO4pYRh/Pn6s8t7Op6Q== +open@8.0.7: + version "8.0.7" + resolved "https://registry.yarnpkg.com/open/-/open-8.0.7.tgz#5597eeff14b440f6ff78fb7ced9ede9f69b2122d" + integrity sha512-qoyG0kpdaWVoL5MiwTRQWujSdivwBOgfLadVEdpsZNHOK1+kBvmVtLYdgWr8G4cgBpG9zaxezn6jz6PPdQW5xg== dependencies: define-lazy-prop "^2.0.0" is-docker "^2.1.1" @@ -11252,16 +11262,16 @@ verdaccio-htpasswd@10.0.0: http-errors "1.8.0" unix-crypt-td-js "1.1.4" -verdaccio@5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/verdaccio/-/verdaccio-5.0.1.tgz#d9d598fa7a1256e2cc1b2be8b417716d75771870" - integrity sha512-Qn5PZhXi4JBHUQZZgNS5s1V7CtmORkFIyZ8kLqccoxOwLObYAv3k4LthpTosoRBEC1FGqbg+HTHR0OnUDj26Fw== +verdaccio@5.0.4: + version "5.0.4" + resolved "https://registry.yarnpkg.com/verdaccio/-/verdaccio-5.0.4.tgz#660a1223ccad8d68616d5b33cd5b3edc2b734c92" + integrity sha512-Bp3QXbpCLpIohVSQonPA7Dwejv/czt7HmE3fhKR/aSKxopX+4fAn1MPb8AQPElcBMrFOT9riwnOhwhxYh+sNRA== dependencies: "@verdaccio/commons-api" "10.0.0" "@verdaccio/local-storage" "10.0.1" "@verdaccio/readme" "10.0.0" "@verdaccio/streams" "10.0.0" - "@verdaccio/ui-theme" "3.0.1" + "@verdaccio/ui-theme" "3.1.0" JSONStream "1.3.5" async "3.2.0" body-parser "1.19.0" From ffbc623185d22ccfedfd9998473fa1829224f6f7 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Wed, 28 Apr 2021 09:54:11 +0200 Subject: [PATCH 091/577] build: refresh AJV in lock file to fix typings error ``` packages/angular_devkit/core/src/json/schema/registry.ts:101:19 - error TS2345: Argument of type 'import("/home/circleci/ng/node_modules/ajv/dist/ajv").default' is not assignable to parameter of type 'import("/home/circleci/ng/node_modules/ajv-formats/node_modules/ajv/dist/core").default'. Types of property 'opts' are incompatible. Type 'import("/home/circleci/ng/node_modules/ajv/dist/core").InstanceOptions' is not assignable to type 'import("/home/circleci/ng/node_modules/ajv-formats/node_modules/ajv/dist/core").InstanceOptions'. Type 'InstanceOptions' is not assignable to type 'CurrentOptions'. Types of property 'keywords' are incompatible. Type 'import("/home/circleci/ng/node_modules/ajv/dist/types/index").Vocabulary | undefined' is not assignable to type 'import("/home/circleci/ng/node_modules/ajv-formats/node_modules/ajv/dist/types/index").Vocabulary | undefined'. Type 'import("/home/circleci/ng/node_modules/ajv/dist/types/index").Vocabulary' is not assignable to type 'import("/home/circleci/ng/node_modules/ajv-formats/node_modules/ajv/dist/types/index").Vocabulary'. Type 'string | import("/home/circleci/ng/node_modules/ajv/dist/types/index").KeywordDefinition' is not assignable to type 'string | import("/home/circleci/ng/node_modules/ajv-formats/node_modules/ajv/dist/types/index").KeywordDefinition'. Type 'CodeKeywordDefinition' is not assignable to type 'string | KeywordDefinition'. Type 'import("/home/circleci/ng/node_modules/ajv/dist/types/index").CodeKeywordDefinition' is not assignable to type 'import("/home/circleci/ng/node_modules/ajv-formats/node_modules/ajv/dist/types/index").CodeKeywordDefinition'. Types of property 'code' are incompatible. Type '(cxt: import("/home/circleci/ng/node_modules/ajv/dist/compile/validate/index").KeywordCxt, ruleType?: string | undefined) => void' is not assignable to type '(cxt: import("/home/circleci/ng/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index").KeywordCxt, ruleType?: string | undefined) => void'. Types of parameters 'cxt' and 'cxt' are incompatible. Type 'import("/home/circleci/ng/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index").KeywordCxt' is not assignable to type 'import("/home/circleci/ng/node_modules/ajv/dist/compile/validate/index").KeywordCxt'. The types of 'gen._scope' are incompatible between these types. Type 'import("/home/circleci/ng/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope").Scope' is not assignable to type 'import("/home/circleci/ng/node_modules/ajv/dist/compile/codegen/scope").Scope'. Property '_names' is protected but type 'Scope' is not a class derived from 'Scope'. 101 ajvAddFormats(this._ajv); ~~~~~~~~~ ``` --- yarn.lock | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/yarn.lock b/yarn.lock index 9a079ad5b355..462aaf4ae10c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2181,7 +2181,7 @@ ajv-keywords@^3.1.0, ajv-keywords@^3.5.2: resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz#31f29da5ab6e00d1c2d329acf7b5929614d5014d" integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ== -ajv@8.2.0: +ajv@8.2.0, ajv@^8.0.0: version "8.2.0" resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.2.0.tgz#c89d3380a784ce81b2085f48811c4c101df4c602" integrity sha512-WSNGFuyWd//XO8n/m/EaOlNLtO0yL8EXT/74LqT4khdhpZjP7lkj/kT5uwRmGitKEVp/Oj7ZUHeGfPtgHhQ5CA== @@ -2201,16 +2201,6 @@ ajv@^6.1.0, ajv@^6.12.3, ajv@^6.12.4, ajv@^6.12.5: json-schema-traverse "^0.4.1" uri-js "^4.2.2" -ajv@^8.0.0: - version "8.1.0" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.1.0.tgz#45d5d3d36c7cdd808930cc3e603cf6200dbeb736" - integrity sha512-B/Sk2Ix7A36fs/ZkuGLIR86EdjbgR6fsAcbx9lOP/QBSXujDNbVmIS/U4Itz5k8fPFDeVZl/zQ/gJW4Jrq6XjQ== - dependencies: - fast-deep-equal "^3.1.1" - json-schema-traverse "^1.0.0" - require-from-string "^2.0.2" - uri-js "^4.2.2" - alphanum-sort@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/alphanum-sort/-/alphanum-sort-1.0.2.tgz#97a1119649b211ad33691d9f9f486a8ec9fbe0a3" From 36bd7919552a42a33e647a1c265502df53e99dda Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 28 Apr 2021 07:39:46 +0000 Subject: [PATCH 092/577] build: update angular to 7b6e6e3 --- package.json | 2 +- tests/legacy-cli/e2e/ng-snapshot/package.json | 30 +++++++++---------- yarn.lock | 5 ++-- 3 files changed, 19 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index 4610cde11c48..fc4e1ac59ecd 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "@angular/compiler": "12.0.0-rc.0", "@angular/compiler-cli": "12.0.0-rc.0", "@angular/core": "12.0.0-rc.0", - "@angular/dev-infra-private": "https://github.com/angular/dev-infra-private-builds.git#97eabea116da45d2a745c18e946a9c57c6c65800", + "@angular/dev-infra-private": "https://github.com/angular/dev-infra-private-builds.git#8e28890cecf2ac5d0d5ca590fafc323dea5f133f", "@angular/forms": "12.0.0-rc.0", "@angular/localize": "12.0.0-rc.0", "@angular/material": "11.2.10", diff --git a/tests/legacy-cli/e2e/ng-snapshot/package.json b/tests/legacy-cli/e2e/ng-snapshot/package.json index aaa82d0ac4d6..b07d68c3d89b 100644 --- a/tests/legacy-cli/e2e/ng-snapshot/package.json +++ b/tests/legacy-cli/e2e/ng-snapshot/package.json @@ -2,20 +2,20 @@ "description": "snapshot versions of Angular for e2e testing", "private": true, "dependencies": { - "@angular/animations": "github:angular/animations-builds#b4e3dd38f623810ede6f52ff8a59fbb3c3e28c75", - "@angular/cdk": "github:angular/cdk-builds#b53ff9feaee0c80000b9d7e2576817a9f3b36a7c", - "@angular/common": "github:angular/common-builds#6abe368668027e39c36666dbd03400b66f2b1020", - "@angular/compiler": "github:angular/compiler-builds#5f57755f89458b42b0c9c35e2bcff2a966b59b23", - "@angular/compiler-cli": "github:angular/compiler-cli-builds#37246443164d59aaf3ab43d91abefac6468372d1", - "@angular/core": "github:angular/core-builds#f7df5af17d9aa40b75f0271276c8e3eca569ea27", - "@angular/forms": "github:angular/forms-builds#7412c383c635fbc780380ee9ad620b607915764d", - "@angular/language-service": "github:angular/language-service-builds#7ec6cfdd9cf547f1c162d68be8822078bb1aa36e", - "@angular/localize": "github:angular/localize-builds#26e243c5658332fc8af52d02867ea70c8d49cd85", - "@angular/material": "github:angular/material2-builds#d7acf786e3f4f6b632676139cbcd1a8055271908", - "@angular/material-moment-adapter": "github:angular/material-moment-adapter-builds#69ec9dfa5546d8f2135780a6c1276e6a8c2d29fb", - "@angular/platform-browser": "github:angular/platform-browser-builds#4555707d85ae586d29a5f9ed085e25ff3d39a61e", - "@angular/platform-browser-dynamic": "github:angular/platform-browser-dynamic-builds#ccc87fb1fc1136f041643fd17c34789125a2e973", - "@angular/platform-server": "github:angular/platform-server-builds#dfb9c043e24fbdf1889c22dd7cc297ed9becc1a9", - "@angular/router": "github:angular/router-builds#63cf6e9eb0e593e0bfefff34e18c1424c7532883" + "@angular/animations": "github:angular/animations-builds#7b6e6e331a185d0b05d99fd5c5d9b1de83ea7ad9", + "@angular/cdk": "github:angular/cdk-builds#45bf4c4b808f0d4b3f3a91659d25cc944af343bb", + "@angular/common": "github:angular/common-builds#13c06df91a0d1e5350672c5ce7a3b62ff33b5253", + "@angular/compiler": "github:angular/compiler-builds#a56b699b54f37e989970b2de50f8f34bdb6026a6", + "@angular/compiler-cli": "github:angular/compiler-cli-builds#c57c9ba10a65ec62b8c3c31214f916f7d85e90c4", + "@angular/core": "github:angular/core-builds#0a97adb01fa499f39708cb92e908a1e6c1c5f140", + "@angular/forms": "github:angular/forms-builds#38c20ef3051806a9e0ad3b2beebae43a5782ea3a", + "@angular/language-service": "github:angular/language-service-builds#ccdca88c4f13d2f5f3e7706590df0570bd70bd11", + "@angular/localize": "github:angular/localize-builds#a4affca4739bc5abb1bc365773b31747d3433649", + "@angular/material": "github:angular/material2-builds#4e1e771e39ef21ad5b4d503ee39067dc379b1a17", + "@angular/material-moment-adapter": "github:angular/material-moment-adapter-builds#4fcf1bc8761687db13e4c63de4e678036523a8ab", + "@angular/platform-browser": "github:angular/platform-browser-builds#b2a4c3708d656140ffacaf6204315a32df5e9b56", + "@angular/platform-browser-dynamic": "github:angular/platform-browser-dynamic-builds#b713c3a40e02385cae0f1c0cc4b9bb106eceb43c", + "@angular/platform-server": "github:angular/platform-server-builds#c12a6cbf8baea5df503f098d3f7f3fe2ff318190", + "@angular/router": "github:angular/router-builds#2083c2bacf404139993ededb2a0ed8544cf1e01d" } } diff --git a/yarn.lock b/yarn.lock index 462aaf4ae10c..4481e2c07f7b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -84,9 +84,10 @@ dependencies: tslib "^2.0.0" -"@angular/dev-infra-private@https://github.com/angular/dev-infra-private-builds.git#97eabea116da45d2a745c18e946a9c57c6c65800": +"@angular/dev-infra-private@https://github.com/angular/dev-infra-private-builds.git#8e28890cecf2ac5d0d5ca590fafc323dea5f133f": version "0.0.0" - resolved "https://github.com/angular/dev-infra-private-builds.git#97eabea116da45d2a745c18e946a9c57c6c65800" + uid "8e28890cecf2ac5d0d5ca590fafc323dea5f133f" + resolved "https://github.com/angular/dev-infra-private-builds.git#8e28890cecf2ac5d0d5ca590fafc323dea5f133f" dependencies: "@angular/benchpress" "0.2.1" "@bazel/buildifier" "^4.0.1" From 0597a1a4ec70ae9b83ae1aba273a7131a14e9d07 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 28 Apr 2021 07:40:30 +0000 Subject: [PATCH 093/577] build: update dependency source-map-loader to v2 --- package.json | 2 +- .../angular_devkit/build_angular/package.json | 2 +- yarn.lock | 18 ++++++++++-------- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index fc4e1ac59ecd..79169e4a4990 100644 --- a/package.json +++ b/package.json @@ -200,7 +200,7 @@ "sauce-connect-proxy": "https://saucelabs.com/downloads/sc-4.6.4-linux.tar.gz", "semver": "7.3.5", "source-map": "0.7.3", - "source-map-loader": "1.1.3", + "source-map-loader": "2.0.1", "source-map-support": "0.5.19", "spdx-satisfies": "^5.0.0", "style-loader": "2.0.0", diff --git a/packages/angular_devkit/build_angular/package.json b/packages/angular_devkit/build_angular/package.json index bce67c9f00c0..c5f30bcea964 100644 --- a/packages/angular_devkit/build_angular/package.json +++ b/packages/angular_devkit/build_angular/package.json @@ -59,7 +59,7 @@ "sass-loader": "11.0.1", "semver": "7.3.5", "source-map": "0.7.3", - "source-map-loader": "1.1.3", + "source-map-loader": "2.0.1", "source-map-support": "0.5.19", "style-loader": "2.0.0", "stylus": "0.54.8", diff --git a/yarn.lock b/yarn.lock index 4481e2c07f7b..5966b47ff45c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10076,17 +10076,19 @@ source-list-map@^2.0.0, source-list-map@^2.0.1: resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.1.tgz#3993bd873bfc48479cca9ea3a547835c7c154b34" integrity sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw== -source-map-loader@1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/source-map-loader/-/source-map-loader-1.1.3.tgz#7dbc2fe7ea09d3e43c51fd9fc478b7f016c1f820" - integrity sha512-6YHeF+XzDOrT/ycFJNI53cgEsp/tHTMl37hi7uVyqFAlTXW109JazaQCkbc+jjoL2637qkH1amLi+JzrIpt5lA== +source-map-js@^0.6.2: + version "0.6.2" + resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-0.6.2.tgz#0bb5de631b41cfbda6cfba8bd05a80efdfd2385e" + integrity sha512-/3GptzWzu0+0MBQFrDKzw/DvvMTUORvgY6k6jd/VS6iCR4RDTKWH6v6WPwQoUO8667uQEf9Oe38DxAYWY5F/Ug== + +source-map-loader@2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/source-map-loader/-/source-map-loader-2.0.1.tgz#b4fd0ae7fa7e7d3954300f383f2d6fcc230a4261" + integrity sha512-UzOTTQhoNPeTNzOxwFw220RSRzdGSyH4lpNyWjR7Qm34P4/N0W669YSUFdH07+YNeN75h765XLHmNsF/bm97RQ== dependencies: abab "^2.0.5" iconv-lite "^0.6.2" - loader-utils "^2.0.0" - schema-utils "^3.0.0" - source-map "^0.6.1" - whatwg-mimetype "^2.3.0" + source-map-js "^0.6.2" source-map-resolve@^0.5.0, source-map-resolve@^0.5.2: version "0.5.3" From 30815248a8cf972034d336f8cd076d3b7cce8e29 Mon Sep 17 00:00:00 2001 From: Billy Lando Date: Mon, 1 Feb 2021 12:47:59 +0100 Subject: [PATCH 094/577] fix(@schematics/angular): avoid unuse imports for canLoad guard generation --- .../__name@dasherize__.guard.ts.template | 2 +- packages/schematics/angular/guard/index.ts | 19 +++++- .../schematics/angular/guard/index_spec.ts | 61 ++++++++++++++----- 3 files changed, 62 insertions(+), 20 deletions(-) diff --git a/packages/schematics/angular/guard/files/__name@dasherize__.guard.ts.template b/packages/schematics/angular/guard/files/__name@dasherize__.guard.ts.template index e41530b35898..3dc36a017893 100644 --- a/packages/schematics/angular/guard/files/__name@dasherize__.guard.ts.template +++ b/packages/schematics/angular/guard/files/__name@dasherize__.guard.ts.template @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { <%= implementationImports %>ActivatedRouteSnapshot, RouterStateSnapshot, UrlTree } from '@angular/router'; +import { <%= implementationImports %> } from '@angular/router'; import { Observable } from 'rxjs'; @Injectable({ diff --git a/packages/schematics/angular/guard/index.ts b/packages/schematics/angular/guard/index.ts index 79fe0e6a8edc..f91495b63489 100644 --- a/packages/schematics/angular/guard/index.ts +++ b/packages/schematics/angular/guard/index.ts @@ -39,12 +39,25 @@ export default function (options: GuardOptions): Rule { const implementations = options.implements .map(implement => implement === 'CanDeactivate' ? 'CanDeactivate' : implement) .join(', '); - let implementationImports = `${options.implements.join(', ')}, `; - // As long as we aren't in IE... ;) + const commonRouterNameImports = ['ActivatedRouteSnapshot', 'RouterStateSnapshot']; + const routerNamedImports: string[] = [...options.implements, 'UrlTree']; + if (options.implements.includes(GuardInterface.CanLoad)) { - implementationImports = `${implementationImports}Route, UrlSegment, `; + routerNamedImports.push( + 'Route', + 'UrlSegment', + ); + + if (options.implements.length > 1) { + routerNamedImports.push(...commonRouterNameImports); + } + } else { + routerNamedImports.push(...commonRouterNameImports); } + routerNamedImports.sort(); + + const implementationImports = routerNamedImports.join(', '); const parsedPath = parseName(options.path, options.name); options.name = parsedPath.name; options.path = parsedPath.path; diff --git a/packages/schematics/angular/guard/index_spec.ts b/packages/schematics/angular/guard/index_spec.ts index d54920f0b929..eba8e654982b 100644 --- a/packages/schematics/angular/guard/index_spec.ts +++ b/packages/schematics/angular/guard/index_spec.ts @@ -38,12 +38,14 @@ describe('Guard Schematic', () => { let appTree: UnitTestTree; beforeEach(async () => { appTree = await schematicRunner.runSchematicAsync('workspace', workspaceOptions).toPromise(); - appTree = await schematicRunner.runSchematicAsync('application', appOptions, appTree) + appTree = await schematicRunner + .runSchematicAsync('application', appOptions, appTree) .toPromise(); }); it('should create a guard', async () => { - const tree = await schematicRunner.runSchematicAsync('guard', defaultOptions, appTree) + const tree = await schematicRunner + .runSchematicAsync('guard', defaultOptions, appTree) .toPromise(); const files = tree.files; expect(files).toContain('/projects/bar/src/app/foo.guard.spec.ts'); @@ -53,8 +55,7 @@ describe('Guard Schematic', () => { it('should respect the skipTests flag', async () => { const options = { ...defaultOptions, skipTests: true }; - const tree = await schematicRunner.runSchematicAsync('guard', options, appTree) - .toPromise(); + const tree = await schematicRunner.runSchematicAsync('guard', options, appTree).toPromise(); const files = tree.files; expect(files).not.toContain('/projects/bar/src/app/foo.guard.spec.ts'); expect(files).toContain('/projects/bar/src/app/foo.guard.ts'); @@ -63,8 +64,7 @@ describe('Guard Schematic', () => { it('should respect the flat flag', async () => { const options = { ...defaultOptions, flat: false }; - const tree = await schematicRunner.runSchematicAsync('guard', options, appTree) - .toPromise(); + const tree = await schematicRunner.runSchematicAsync('guard', options, appTree).toPromise(); const files = tree.files; expect(files).toContain('/projects/bar/src/app/foo/foo.guard.spec.ts'); expect(files).toContain('/projects/bar/src/app/foo/foo.guard.ts'); @@ -74,15 +74,13 @@ describe('Guard Schematic', () => { const config = JSON.parse(appTree.readContent('/angular.json')); config.projects.bar.sourceRoot = 'projects/bar/custom'; appTree.overwrite('/angular.json', JSON.stringify(config, null, 2)); - appTree = await schematicRunner.runSchematicAsync('guard', defaultOptions, appTree) - .toPromise(); + appTree = await schematicRunner.runSchematicAsync('guard', defaultOptions, appTree).toPromise(); expect(appTree.files).toContain('/projects/bar/custom/app/foo.guard.ts'); }); it('should respect the implements value', async () => { - const options = { ...defaultOptions, implements: ['CanActivate']}; - const tree = await schematicRunner.runSchematicAsync('guard', options, appTree) - .toPromise(); + const options = { ...defaultOptions, implements: ['CanActivate'] }; + const tree = await schematicRunner.runSchematicAsync('guard', options, appTree).toPromise(); const fileString = tree.readContent('/projects/bar/src/app/foo.guard.ts'); expect(fileString).toContain('CanActivate'); expect(fileString).toContain('canActivate'); @@ -94,9 +92,8 @@ describe('Guard Schematic', () => { it('should respect the implements values', async () => { const implementationOptions = ['CanActivate', 'CanLoad', 'CanActivateChild']; - const options = { ...defaultOptions, implements: implementationOptions}; - const tree = await schematicRunner.runSchematicAsync('guard', options, appTree) - .toPromise(); + const options = { ...defaultOptions, implements: implementationOptions }; + const tree = await schematicRunner.runSchematicAsync('guard', options, appTree).toPromise(); const fileString = tree.readContent('/projects/bar/src/app/foo.guard.ts'); // Should contain all implementations @@ -109,8 +106,7 @@ describe('Guard Schematic', () => { it('should use CanActivate if no implements value', async () => { const options = { ...defaultOptions, implements: undefined }; - const tree = await schematicRunner.runSchematicAsync('guard', options, appTree) - .toPromise(); + const tree = await schematicRunner.runSchematicAsync('guard', options, appTree).toPromise(); const fileString = tree.readContent('/projects/bar/src/app/foo.guard.ts'); expect(fileString).toContain('CanActivate'); expect(fileString).toContain('canActivate'); @@ -119,4 +115,37 @@ describe('Guard Schematic', () => { expect(fileString).not.toContain('CanLoad'); expect(fileString).not.toContain('canLoad'); }); + + it('should add correct imports based on CanLoad implementation', async () => { + const implementationOptions = ['CanLoad']; + const options = { ...defaultOptions, implements: implementationOptions }; + const tree = await schematicRunner.runSchematicAsync('guard', options, appTree).toPromise(); + const fileString = tree.readContent('/projects/bar/src/app/foo.guard.ts'); + const expectedImports = `import { CanLoad, Route, UrlSegment, UrlTree } from '@angular/router';`; + + expect(fileString).toContain(expectedImports); + }); + + it('should add correct imports based on CanActivate implementation', async () => { + const implementationOptions = ['CanActivate']; + const options = { ...defaultOptions, implements: implementationOptions }; + const tree = await schematicRunner.runSchematicAsync('guard', options, appTree).toPromise(); + const fileString = tree.readContent('/projects/bar/src/app/foo.guard.ts'); + const expectedImports = `import { ActivatedRouteSnapshot, CanActivate, RouterStateSnapshot, UrlTree } from '@angular/router';`; + + expect(fileString).toContain(expectedImports); + }); + + it('should add correct imports if multiple implementations was selected', async () => { + const implementationOptions = ['CanActivate', 'CanLoad', 'CanActivateChild']; + const options = { ...defaultOptions, implements: implementationOptions }; + const tree = await schematicRunner.runSchematicAsync('guard', options, appTree).toPromise(); + const fileString = tree.readContent('/projects/bar/src/app/foo.guard.ts'); + const expectedImports = + `import ` + + `{ ActivatedRouteSnapshot, CanActivate, CanActivateChild, CanLoad, Route, RouterStateSnapshot, UrlSegment, UrlTree } ` + + `from '@angular/router';`; + + expect(fileString).toContain(expectedImports); + }); }); From 094d36d36a7ad2940e963907083004510aee1593 Mon Sep 17 00:00:00 2001 From: Joshua Chapman Date: Sat, 17 Apr 2021 10:35:03 +0200 Subject: [PATCH 095/577] fix(@angular/cli): Support XDG Base Directory Specfication Reading throw #16034 the angular config should be placed in the `$XDG_CONFIG_HOME/angular/` directory, but if the environmental variable $XDG_CONFIG_HOME is set the first check of `xdgConfigHome` function will only put it in the `$XDG_CONFIG_HOME` directory. Also renamed the config file from `.angular-config.json` to `config.json` when it is in the `~/.config/angular` directory since it doesn't need to be hidden. --- packages/angular/cli/utilities/config.ts | 32 +++++++++++++++++++++--- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/packages/angular/cli/utilities/config.ts b/packages/angular/cli/utilities/config.ts index dce6500f496f..f44bb5ad21b3 100644 --- a/packages/angular/cli/utilities/config.ts +++ b/packages/angular/cli/utilities/config.ts @@ -48,14 +48,24 @@ function getSchemaLocation(): string { export const workspaceSchemaPath = getSchemaLocation(); -const configNames = [ 'angular.json', '.angular.json' ]; +const configNames = ['angular.json', '.angular.json']; const globalFileName = '.angular-config.json'; function xdgConfigHome(home: string, configFile?: string): string { // https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html + const xdgConfigHome = process.env['XDG_CONFIG_HOME'] || path.join(home, '.config'); + const xdgAngularHome = path.join(xdgConfigHome, 'angular'); + + return configFile ? path.join(xdgAngularHome, configFile) : xdgAngularHome; +} + +function xdgConfigHomeOld(home: string): string { + // Check the configuration files in the old location that should be: + // - $XDG_CONFIG_HOME/.angular-config.json (if XDG_CONFIG_HOME is set) + // - $HOME/.config/angular/.angular-config.json (otherwise) const p = process.env['XDG_CONFIG_HOME'] || path.join(home, '.config', 'angular'); - return configFile ? path.join(p, configFile) : p; + return path.join(p, '.angular-config.json'); } function projectFilePath(projectPath?: string): string | null { @@ -78,10 +88,22 @@ function globalFilePath(): string | null { // note that createGlobalSettings() will continue creating // global file in home directory, with this user will have // choice to move change its location to meet XDG convention - const xdgConfig = xdgConfigHome(home, globalFileName); + const xdgConfig = xdgConfigHome(home, 'config.json'); if (existsSync(xdgConfig)) { return xdgConfig; } + // NOTE: This check is for the old configuration location, for more + // information see https://github.com/angular/angular-cli/pull/20556 + const xdgConfigOld = xdgConfigHomeOld(home); + if (existsSync(xdgConfigOld)) { + // tslint:disable: no-console + console.warn( + `Old configuration location detected: ${xdgConfigOld}\n` + + `Please move the file to the new location ~/.config/angular/config.json`, + ); + + return xdgConfigOld; + } const p = path.join(home, globalFileName); if (existsSync(p)) { @@ -201,7 +223,9 @@ export function getWorkspaceRaw( } export async function validateWorkspace(data: json.JsonObject): Promise { - const schema = readAndParseJson(path.join(__dirname, '../lib/config/schema.json')) as json.schema.JsonSchema; + const schema = readAndParseJson( + path.join(__dirname, '../lib/config/schema.json'), + ) as json.schema.JsonSchema; const { formats } = await import('@angular-devkit/schematics'); const registry = new json.schema.CoreSchemaRegistry(formats.standardFormats); const validator = await registry.compile(schema).toPromise(); From 7088f3a33bb0170aa9acdfa6a6104df933d65cb2 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Wed, 28 Apr 2021 12:28:28 +0200 Subject: [PATCH 096/577] refactor(@angular-devkit/build-angular): replace deprecated `webpack.JavascriptModulesPlugin` usage With this change we replace usage of the deprecated `webpack.JavascriptModulesPlugin` with `webpack.javascript.JavascriptModulesPlugin` --- .../build_angular/src/utils/webpack-browser-config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/angular_devkit/build_angular/src/utils/webpack-browser-config.ts b/packages/angular_devkit/build_angular/src/utils/webpack-browser-config.ts index 25463d031241..e0f641f015cd 100644 --- a/packages/angular_devkit/build_angular/src/utils/webpack-browser-config.ts +++ b/packages/angular_devkit/build_angular/src/utils/webpack-browser-config.ts @@ -14,7 +14,7 @@ import { resolve, } from '@angular-devkit/core'; import * as path from 'path'; -import { Configuration, JavascriptModulesPlugin } from 'webpack'; +import { Configuration, javascript } from 'webpack'; import { merge as webpackMerge } from 'webpack-merge'; import { Schema as BrowserBuilderSchema } from '../browser/schema'; import { @@ -112,7 +112,7 @@ export async function generateI18nBrowserWebpackConfigFromContext( config.plugins.push({ apply(compiler) { compiler.hooks.compilation.tap('build-angular', compilation => { - JavascriptModulesPlugin.getCompilationHooks(compilation).chunkHash.tap( + javascript.JavascriptModulesPlugin.getCompilationHooks(compilation).chunkHash.tap( 'build-angular', (_, hash) => { hash.update('$localize' + i18nHash); From decaef592e11a2d1e4b9a6f10246a406cc4da2ce Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Wed, 28 Apr 2021 13:33:26 +0200 Subject: [PATCH 097/577] fix(@schematics/angular): fix migration for namedChunks and option Both values of `extractLicenses` and `namedChunks` were inverted. --- .../migrations/update-12/update-angular-config.ts | 4 ++-- .../migrations/update-12/update-angular-config_spec.ts | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/schematics/angular/migrations/update-12/update-angular-config.ts b/packages/schematics/angular/migrations/update-12/update-angular-config.ts index eddfcf5b4c29..f0dbe9d3e937 100644 --- a/packages/schematics/angular/migrations/update-12/update-angular-config.ts +++ b/packages/schematics/angular/migrations/update-12/update-angular-config.ts @@ -14,11 +14,11 @@ type BuilderOptionsType = Readonly<[optionName: string, oldDefault: JsonValue | const BrowserBuilderOptions: BuilderOptionsType = [ ['aot', false, true], ['vendorChunk', true, false], - ['extractLicenses', true, false], + ['extractLicenses', false, true], ['buildOptimizer', false, true], ['sourceMap', true, false], ['optimization', false, true], - ['namedChunks', false, true], + ['namedChunks', true, false], ]; const ServerBuilderOptions: BuilderOptionsType = [ diff --git a/packages/schematics/angular/migrations/update-12/update-angular-config_spec.ts b/packages/schematics/angular/migrations/update-12/update-angular-config_spec.ts index 673e72e3b3fa..bc9d1c5989a2 100644 --- a/packages/schematics/angular/migrations/update-12/update-angular-config_spec.ts +++ b/packages/schematics/angular/migrations/update-12/update-angular-config_spec.ts @@ -32,6 +32,7 @@ function createWorkSpaceConfig(tree: UnitTestTree) { optimization: true, experimentalRollupPass: false, buildOptimizer: false, + namedChunks: true, // tslint:disable-next-line:no-any } as any, configurations: { @@ -106,4 +107,12 @@ describe(`Migration to update 'angular.json'. ${schematicName}`, () => { expect(configurations?.two.sourceMap).toBeUndefined(); expect(configurations?.two.optimization).toBeFalse(); }); + + it(`should not remove value in "options" when value is not the new default`, async () => { + const newTree = await schematicRunner.runSchematicAsync(schematicName, {}, tree).toPromise(); + const { options } = getBuildTarget(newTree); + + expect(options.namedChunks).toBeTrue(); + expect(options.buildOptimizer).toBeFalse(); + }); }); From de58b365365cda5d88b4901c065a4a39835ee964 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Wed, 28 Apr 2021 11:18:05 -0400 Subject: [PATCH 098/577] test: remove unmaintained third-party tslint rules The `tslint-sonarts` package is both deprecated and unmaintained. The rules provided by the package are now removed from the `tslint` configuration for the project. --- package.json | 1 - scripts/validate-licenses.ts | 1 - tslint.json | 28 ---------------------------- yarn.lock | 13 ------------- 4 files changed, 43 deletions(-) diff --git a/package.json b/package.json index 79169e4a4990..7712d9e8ad41 100644 --- a/package.json +++ b/package.json @@ -219,7 +219,6 @@ "tslib": "^2.0.0", "tslint": "^6.1.3", "tslint-no-circular-imports": "^0.7.0", - "tslint-sonarts": "1.9.0", "typescript": "4.2.4", "verdaccio": "5.0.4", "verdaccio-auth-memory": "^10.0.0", diff --git a/scripts/validate-licenses.ts b/scripts/validate-licenses.ts index 4ab50b43ebf3..8272da387e8e 100644 --- a/scripts/validate-licenses.ts +++ b/scripts/validate-licenses.ts @@ -69,7 +69,6 @@ const ignoredPackages = [ '@angular/devkit-repo@0.0.0', // Hey, that's us! // * Development only 'spdx-license-ids@3.0.5', // CC0 but it's content only (index.json, no code) and not distributed. - 'tslint-sonarts@1.9.0', // LGPL-3.0 but only used as a tool, not linked in the build. // * Broken license fields 'pako@1.0.11', // MIT but broken license in package.json diff --git a/tslint.json b/tslint.json index ee2968d79de4..21dda0f612b8 100644 --- a/tslint.json +++ b/tslint.json @@ -5,9 +5,6 @@ "extends": [ "tslint-no-circular-imports" ], - "rulesDirectory": [ - "node_modules/tslint-sonarts/lib/rules" - ], "linterOptions": { "format": "codeFrame", "exclude": [ @@ -16,31 +13,6 @@ ] }, "rules": { - // ================================================================================================== - // tslint-sonarts rules. See https://github.com/SonarSource/SonarTS - // These rules are part of the bug detection section of tslint-sonarts - "no-big-function": true, - "no-all-duplicated-branches": true, - "no-case-with-or": true, - "no-collection-size-mischeck": true, - "no-element-overwrite": true, - "no-empty-destructuring": true, - "no-identical-conditions": true, - "no-ignored-initial-value": true, - "no-ignored-return": true, - "no-in-misuse": true, - "no-misleading-array-reverse": true, - "no-misspelled-operator": true, - "no-self-assignment": true, - "no-unthrown-error": true, - "no-use-of-empty-return-value": true, - "no-useless-increment": true, - "no-invalid-await": true, - "prefer-promise-shorthand": true, - - //These rules are part of the code smell detection section of tslint-sonarts - "no-dead-store": true, - "no-useless-intersection": true, // ================================================================================================== // base tslint rules "arrow-return-shorthand": true, diff --git a/yarn.lock b/yarn.lock index 5966b47ff45c..c9ea53f20c7d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -86,7 +86,6 @@ "@angular/dev-infra-private@https://github.com/angular/dev-infra-private-builds.git#8e28890cecf2ac5d0d5ca590fafc323dea5f133f": version "0.0.0" - uid "8e28890cecf2ac5d0d5ca590fafc323dea5f133f" resolved "https://github.com/angular/dev-infra-private-builds.git#8e28890cecf2ac5d0d5ca590fafc323dea5f133f" dependencies: "@angular/benchpress" "0.2.1" @@ -5592,11 +5591,6 @@ immediate@~3.0.5: resolved "https://registry.yarnpkg.com/immediate/-/immediate-3.0.6.tgz#9db1dbd0faf8de6fbe0f5dd5e56bb606280de69b" integrity sha1-nbHb0Pr43m++D13V5Wu2BigN5ps= -immutable@^3.8.2: - version "3.8.2" - resolved "https://registry.yarnpkg.com/immutable/-/immutable-3.8.2.tgz#c2439951455bb39913daf281376f1530e104adf3" - integrity sha1-wkOZUUVbs5kT2vKBN28VMOEErfM= - import-fresh@^3.2.1: version "3.3.0" resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" @@ -10872,13 +10866,6 @@ tslint-no-circular-imports@^0.7.0: resolved "https://registry.yarnpkg.com/tslint-no-circular-imports/-/tslint-no-circular-imports-0.7.0.tgz#9df0a15654d66b172e0b7843eed073fa5ae99b5f" integrity sha512-k3wxpeMC4ef40UbpfBVHEHIzKfNZq5/SCtAO1YjGsaNTklo+K53/TWLrym+poA65RJFDiYgYNWvkeIIkJNA0Vw== -tslint-sonarts@1.9.0: - version "1.9.0" - resolved "https://registry.yarnpkg.com/tslint-sonarts/-/tslint-sonarts-1.9.0.tgz#feb593e92db328c0328b430b838adbe65d504de9" - integrity sha512-CJWt+IiYI8qggb2O/JPkS6CkC5DY1IcqRsm9EHJ+AxoWK70lvtP7jguochyNDMP2vIz/giGdWCfEM39x/I/Vnw== - dependencies: - immutable "^3.8.2" - tslint@^6.1.3: version "6.1.3" resolved "https://registry.yarnpkg.com/tslint/-/tslint-6.1.3.tgz#5c23b2eccc32487d5523bd3a470e9aa31789d904" From b9309c1d4c461db593e7fb5223afc1c4b3d72f6a Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Wed, 28 Apr 2021 13:04:47 -0400 Subject: [PATCH 099/577] ci: update lock workflow action to latest sha version The latest version fixes a runtime warning concerning an invalid configuration property. Warning: `Unexpected input(s) 'lock-bot-key', valid inputs are ['lock-bot-token', 'locks-per-execution']` --- .github/workflows/lock-closed.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lock-closed.yml b/.github/workflows/lock-closed.yml index b43e8601204e..c8e81beac98a 100644 --- a/.github/workflows/lock-closed.yml +++ b/.github/workflows/lock-closed.yml @@ -9,6 +9,6 @@ jobs: lock_closed: runs-on: ubuntu-latest steps: - - uses: angular/dev-infra/github-actions/lock-closed@0fc6f4d839e93312ed0dd9a2be88d4c11e947a0b + - uses: angular/dev-infra/github-actions/lock-closed@4f335a4c1f01f20bf905acee2d68c7248f50f2a0 with: lock-bot-key: ${{ secrets.LOCK_BOT_PRIVATE_KEY }} From 40e8a9a4632e92dba89b583bc81759e773d07951 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Wed, 28 Apr 2021 11:43:10 -0400 Subject: [PATCH 100/577] build: set prettier as the code formatter with ng-dev tools Code formatting for TypeScript, JavaScript, JSON, YAML, and Markdown files will now be enforced by the ng-dev tools via prettier. A CI check is now in place as well to verify the formatting for PRs. --- .circleci/config.yml | 3 +++ .husky/pre-commit | 4 ++++ .ng-dev/config.ts | 1 + .ng-dev/format.ts | 10 ++++++++++ .prettierignore | 5 ++++- package.json | 2 +- yarn.lock | 4 ++-- 7 files changed, 25 insertions(+), 4 deletions(-) create mode 100755 .husky/pre-commit create mode 100644 .ng-dev/format.ts diff --git a/.circleci/config.yml b/.circleci/config.yml index bcab988200a5..980ea00d9c68 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -172,6 +172,9 @@ jobs: else echo "This build is not over a PR, nothing to do." fi + - run: + name: Validate Code Formatting + command: yarn -s ng-dev format changed <> --check - run: command: yarn -s admin validate diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 000000000000..84611a58eec9 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname $0)/_/husky.sh" + +yarn -s ng-dev format staged; \ No newline at end of file diff --git a/.ng-dev/config.ts b/.ng-dev/config.ts index a5d99ef26f13..2a1f8e802316 100644 --- a/.ng-dev/config.ts +++ b/.ng-dev/config.ts @@ -1,3 +1,4 @@ export { commitMessage } from './commit-message'; +export { format } from './format'; export { github } from './github'; export { merge } from './merge'; diff --git a/.ng-dev/format.ts b/.ng-dev/format.ts new file mode 100644 index 000000000000..39479cbdbe66 --- /dev/null +++ b/.ng-dev/format.ts @@ -0,0 +1,10 @@ +import { FormatConfig } from '@angular/dev-infra-private/format/config'; + +/** + * Configuration for the `ng-dev format` command. + */ +export const format: FormatConfig = { + 'prettier': { + matchers: ['**/*.{ts,js,json,yml,yaml,md}'] + }, +} diff --git a/.prettierignore b/.prettierignore index 04975244c3e8..77f72e2429cd 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,6 +1,9 @@ /bazel-out/ +/docs/design/analytics.md /dist-schema/ -/etc/api +/etc/api/ +/packages/angular_devkit/build_angular/test/ +/packages/angular_devkit/core/src/workspace/json/test/ /tests/ /README.md /CONTRIBUTING.md diff --git a/package.json b/package.json index 7712d9e8ad41..c4861438d6d2 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "@angular/compiler": "12.0.0-rc.0", "@angular/compiler-cli": "12.0.0-rc.0", "@angular/core": "12.0.0-rc.0", - "@angular/dev-infra-private": "https://github.com/angular/dev-infra-private-builds.git#8e28890cecf2ac5d0d5ca590fafc323dea5f133f", + "@angular/dev-infra-private": "https://github.com/angular/dev-infra-private-builds.git#0d0c8c43a08fa6d52540283a607c7289e8165c9e", "@angular/forms": "12.0.0-rc.0", "@angular/localize": "12.0.0-rc.0", "@angular/material": "11.2.10", diff --git a/yarn.lock b/yarn.lock index c9ea53f20c7d..dccf1f231011 100644 --- a/yarn.lock +++ b/yarn.lock @@ -84,9 +84,9 @@ dependencies: tslib "^2.0.0" -"@angular/dev-infra-private@https://github.com/angular/dev-infra-private-builds.git#8e28890cecf2ac5d0d5ca590fafc323dea5f133f": +"@angular/dev-infra-private@https://github.com/angular/dev-infra-private-builds.git#0d0c8c43a08fa6d52540283a607c7289e8165c9e": version "0.0.0" - resolved "https://github.com/angular/dev-infra-private-builds.git#8e28890cecf2ac5d0d5ca590fafc323dea5f133f" + resolved "https://github.com/angular/dev-infra-private-builds.git#0d0c8c43a08fa6d52540283a607c7289e8165c9e" dependencies: "@angular/benchpress" "0.2.1" "@bazel/buildifier" "^4.0.1" From 37a06a7c37f5b4286d58b475e6e12c86f00fac5b Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Wed, 28 Apr 2021 15:14:05 -0400 Subject: [PATCH 101/577] build: format all files All files are now formatted using the ng-dev tools via prettier. --- .github/ISSUE_TEMPLATE/1-bug-report.md | 15 +- .github/ISSUE_TEMPLATE/2-feature-request.md | 11 +- .github/ISSUE_TEMPLATE/3-docs-bug.md | 3 +- .../4-security-issue-disclosure.md | 1 - .github/ISSUE_TEMPLATE/5-support-request.md | 5 +- .github/ISSUE_TEMPLATE/6-angular-framework.md | 3 +- .github/ISSUE_TEMPLATE/7-angular-material.md | 1 - .github/SAVED_REPLIES.md | 21 +- .github/angular-robot.yml | 74 ++- .github/dependabot.yml | 14 +- .monorepo.json | 9 +- .ng-dev/commit-message.ts | 10 +- .ng-dev/format.ts | 4 +- .ng-dev/merge.ts | 6 +- bin/README.md | 6 +- docs/README.md | 2 +- docs/design/analytics.md | 13 +- docs/design/build-system.md | 33 +- docs/design/deployurl-basehref.md | 24 +- docs/design/ngConfig.md | 49 +- docs/design/third-party-libraries.md | 34 +- docs/process/bazel.md | 2 - docs/process/release.md | 26 +- docs/specifications/schematic-prompts.md | 148 +++--- docs/specifications/update.md | 100 ++--- .../angular_devkit/architect/src/index.d.ts | 10 +- .../angular_devkit/core/src/_golden-api.d.ts | 2 +- lib/bootstrap-local.js | 18 +- lib/packages.ts | 184 ++++---- packages/README.md | 2 +- packages/angular/cli/README.md | 64 +-- .../cli/bin/postinstall/analytics-prompt.js | 2 +- packages/angular/cli/commands/add-impl.ts | 13 +- packages/angular/cli/commands/add.json | 3 +- packages/angular/cli/commands/add.md | 1 + .../angular/cli/commands/analytics-impl.ts | 13 +- .../angular/cli/commands/analytics-long.md | 15 +- packages/angular/cli/commands/analytics.json | 18 +- packages/angular/cli/commands/build.json | 2 +- packages/angular/cli/commands/config-impl.ts | 19 +- packages/angular/cli/commands/config-long.md | 2 +- packages/angular/cli/commands/config.json | 3 +- .../angular/cli/commands/definitions.json | 8 +- packages/angular/cli/commands/deploy-long.md | 2 +- packages/angular/cli/commands/deploy.json | 4 +- packages/angular/cli/commands/doc-impl.ts | 2 +- packages/angular/cli/commands/doc.json | 7 +- packages/angular/cli/commands/e2e-impl.ts | 1 - packages/angular/cli/commands/e2e-long.md | 2 +- packages/angular/cli/commands/e2e.json | 2 +- packages/angular/cli/commands/easter-egg.json | 4 +- .../angular/cli/commands/generate-impl.ts | 8 +- packages/angular/cli/commands/generate.json | 5 +- packages/angular/cli/commands/help-long.md | 10 +- packages/angular/cli/commands/help.json | 4 +- packages/angular/cli/commands/lint-long.md | 2 +- packages/angular/cli/commands/lint.json | 4 +- packages/angular/cli/commands/new-impl.ts | 4 +- packages/angular/cli/commands/new.json | 6 +- packages/angular/cli/commands/new.md | 10 +- packages/angular/cli/commands/run-long.md | 2 +- packages/angular/cli/commands/run.json | 5 +- packages/angular/cli/commands/serve.json | 2 +- packages/angular/cli/commands/test-long.md | 2 +- packages/angular/cli/commands/test.json | 2 +- packages/angular/cli/commands/update-impl.ts | 111 +++-- packages/angular/cli/commands/version-impl.ts | 25 +- packages/angular/cli/commands/version.json | 6 +- packages/angular/cli/lib/cli/index.ts | 29 +- .../cli/lib/config/workspace-schema.json | 59 +-- packages/angular/cli/lib/init.ts | 32 +- .../angular/cli/models/analytics-collector.ts | 65 +-- packages/angular/cli/models/analytics.ts | 17 +- .../angular/cli/models/architect-command.ts | 48 +- packages/angular/cli/models/command-runner.ts | 14 +- packages/angular/cli/models/command.ts | 24 +- packages/angular/cli/models/interface.ts | 4 +- packages/angular/cli/models/parser.ts | 58 +-- packages/angular/cli/models/parser_spec.ts | 81 ++-- .../angular/cli/models/schematic-command.ts | 99 ++--- .../src/commands/update/schematic/index.ts | 308 +++++++------ .../commands/update/schematic/index_spec.ts | 420 +++++++++++------- .../cli/src/commands/update/schematic/npm.ts | 23 +- .../commands/update/schematic/package-json.ts | 3 +- .../src/commands/update/schematic/schema.json | 10 +- .../angular/cli/utilities/install-package.ts | 33 +- packages/angular/cli/utilities/json-file.ts | 47 +- packages/angular/cli/utilities/json-schema.ts | 88 ++-- .../angular/cli/utilities/json-schema_spec.ts | 8 +- .../angular/cli/utilities/package-manager.ts | 4 +- .../angular/cli/utilities/package-metadata.ts | 6 +- .../angular/cli/utilities/package-tree.ts | 2 +- packages/angular/pwa/pwa/index.ts | 27 +- packages/angular/pwa/pwa/index_spec.ts | 167 ++++--- packages/angular/pwa/pwa/schema.json | 2 +- .../architect/builders/all-of.ts | 41 +- .../architect/builders/concat.ts | 37 +- .../architect/builders/noop-schema.json | 2 +- .../architect/builders/operator-schema.json | 8 +- .../node/node-modules-architect-host.ts | 5 +- packages/angular_devkit/architect/src/api.ts | 67 +-- .../angular_devkit/architect/src/architect.ts | 87 ++-- .../architect/src/builders-schema.json | 17 +- .../architect/src/create-builder.ts | 116 ++--- .../architect/src/index_spec.ts | 193 ++++---- .../architect/src/input-schema.json | 12 +- .../angular_devkit/architect/src/internal.ts | 2 +- .../architect/src/output-schema.json | 4 +- .../architect/src/progress-schema.json | 37 +- .../architect/src/schedule-by-name.ts | 86 ++-- .../architect/src/targets-schema.json | 7 +- .../architect/testing/test-project-host.ts | 66 ++- .../testing/testing-architect-host.ts | 19 +- .../architect_cli/bin/architect.ts | 26 +- .../architect_cli/src/progress.ts | 6 +- packages/angular_devkit/benchmark/README.md | 9 +- .../angular_devkit/benchmark/package.json | 2 +- .../angular_devkit/benchmark/src/command.ts | 2 +- .../benchmark/src/default-reporter.ts | 10 +- .../benchmark/src/default-stats-capture.ts | 38 +- .../src/default-stats-capture_spec.ts | 44 +- .../benchmark/src/interfaces.ts | 1 - packages/angular_devkit/benchmark/src/main.ts | 104 ++--- .../angular_devkit/benchmark/src/main_spec.ts | 32 +- .../benchmark/src/monitored-process.ts | 86 ++-- .../benchmark/src/monitored-process_spec.ts | 6 +- .../benchmark/src/run-benchmark-watch.ts | 103 +++-- .../benchmark/src/run-benchmark.ts | 56 ++- .../benchmark/src/test/exit-code-one.js | 2 +- .../benchmark/src/test/fibonacci.js | 4 +- .../benchmark/src/test/test-script.js | 8 +- .../angular_devkit/benchmark/src/utils.ts | 4 +- .../angular_devkit/build_angular/README.md | 27 +- .../src/app-shell/app-shell_spec.ts | 12 +- .../build_angular/src/app-shell/index.ts | 54 ++- .../build_angular/src/app-shell/schema.json | 5 +- .../src/babel/presets/application.ts | 28 +- .../build_angular/src/babel/webpack-loader.ts | 10 +- .../build_angular/src/browser/index.ts | 187 ++++---- .../build_angular/src/browser/schema.json | 61 +-- .../src/browser/specs/allow-js_spec.ts | 71 ++- .../src/browser/specs/aot_spec.ts | 8 +- .../src/browser/specs/base-href_spec.ts | 5 +- .../src/browser/specs/build-optimizer_spec.ts | 16 +- .../src/browser/specs/bundle-budgets_spec.ts | 13 +- .../src/browser/specs/cross-origin_spec.ts | 4 +- .../src/browser/specs/deploy-url_spec.ts | 7 +- .../specs/differential_loading_spec.ts | 296 ++++++------ .../src/browser/specs/errors_spec.ts | 24 +- .../src/browser/specs/index_spec.ts | 87 ++-- .../inline-critical-css-optimization_spec.ts | 13 +- .../src/browser/specs/lazy-module_spec.ts | 46 +- .../browser/specs/optimization-level_spec.ts | 1 - .../src/browser/specs/output-path_spec.ts | 10 +- .../src/browser/specs/poll_spec.ts | 29 +- .../src/browser/specs/rebuild_spec.ts | 160 ++++--- .../src/browser/specs/replacements_spec.ts | 134 +++--- .../browser/specs/resolve-json-module_spec.ts | 46 +- .../specs/resources-output-path_spec.ts | 33 +- .../src/browser/specs/scripts-array_spec.ts | 93 ++-- .../src/browser/specs/service-worker_spec.ts | 186 ++++---- .../src/browser/specs/source-map_spec.ts | 2 +- .../src/browser/specs/stats-json_spec.ts | 1 - .../src/browser/specs/styles_spec.ts | 228 +++++----- .../src/browser/specs/tsconfig-paths_spec.ts | 24 +- .../specs/unused-files-warning_spec.ts | 77 ++-- .../src/browser/specs/vendor-chunk_spec.ts | 1 - .../browser/specs/vendor-source-map_spec.ts | 4 +- .../src/browser/specs/web-worker_spec.ts | 74 +-- .../tests/behavior/rebuild-errors_spec.ts | 50 ++- .../allowed-common-js-dependencies_spec.ts | 48 +- .../src/browser/tests/options/assets_spec.ts | 8 +- .../tests/options/output-hashing_spec.ts | 35 +- .../build_angular/src/dev-server/hmr_spec.ts | 14 +- .../build_angular/src/dev-server/index.ts | 85 ++-- .../src/dev-server/index_spec.ts | 10 +- .../src/dev-server/live-reload_spec.ts | 27 +- .../build_angular/src/dev-server/schema.json | 4 +- .../build_angular/src/dev-server/ssl_spec.ts | 7 +- .../tests/behavior/build-budgets_spec.ts | 7 +- .../tests/behavior/build-deploy-url_spec.ts | 7 +- .../dev-server/tests/options/verbose_spec.ts | 7 +- .../src/dev-server/works_spec.ts | 26 +- .../build_angular/src/extract-i18n/index.ts | 50 ++- .../src/extract-i18n/schema.json | 16 +- .../src/extract-i18n/works_spec.ts | 32 +- .../angular_devkit/build_angular/src/index.ts | 26 +- .../src/karma/code-coverage_spec.ts | 64 ++- .../build_angular/src/karma/find-tests.ts | 25 +- .../build_angular/src/karma/index.ts | 58 +-- .../build_angular/src/karma/rebuilds_spec.ts | 128 +++--- .../build_angular/src/karma/schema.json | 35 +- .../build_angular/src/karma/selected_spec.ts | 13 +- .../build_angular/src/karma/works_spec.ts | 11 +- .../build_angular/src/ng-packagr/index.ts | 2 +- .../build_angular/src/ng-packagr/schema.json | 4 +- .../src/ng-packagr/works_spec.ts | 57 ++- .../build_angular/src/protractor/index.ts | 19 +- .../build_angular/src/protractor/schema.json | 4 +- .../src/protractor/works_spec.ts | 24 +- .../build_angular/src/server/base_spec.ts | 35 +- .../src/server/external_dependencies_spec.ts | 7 +- .../build_angular/src/server/index.ts | 36 +- .../src/server/resources-output-path_spec.ts | 15 +- .../build_angular/src/server/schema.json | 35 +- .../build_angular/src/test-utils.ts | 3 +- .../src/testing/builder-harness.ts | 5 +- .../src/testing/builder-harness_spec.ts | 2 +- .../build_angular/src/tslint/index.ts | 27 +- .../build_angular/src/tslint/schema.json | 2 +- .../build_angular/src/tslint/works_spec.ts | 16 +- .../build_angular/src/utils/action-cache.ts | 9 +- .../src/utils/action-executor.ts | 10 +- .../src/utils/build-browser-features.ts | 28 +- .../build_angular/src/utils/build-options.ts | 4 +- .../src/utils/bundle-calculator.ts | 140 +++--- .../src/utils/bundle-calculator_spec.ts | 304 +++++++------ .../build_angular/src/utils/check-port.ts | 2 +- .../build_angular/src/utils/copy-file.ts | 2 +- .../build_angular/src/utils/empty.js | 1 - .../build_angular/src/utils/i18n-inlining.ts | 4 +- .../build_angular/src/utils/i18n-options.ts | 11 +- .../utils/index-file/augment-index-html.ts | 33 +- .../index-file/augment-index-html_spec.ts | 50 +-- .../utils/index-file/html-rewriting-stream.ts | 36 +- .../utils/index-file/index-html-generator.ts | 39 +- .../utils/index-file/inline-critical-css.ts | 15 +- .../index-file/inline-critical-css_spec.ts | 24 +- .../src/utils/index-file/inline-fonts.ts | 85 ++-- .../src/utils/index-file/inline-fonts_spec.ts | 6 +- .../src/utils/load-translations.ts | 51 ++- .../src/utils/normalize-asset-patterns.ts | 74 ++- .../src/utils/normalize-builder-schema.ts | 25 +- .../src/utils/normalize-file-replacements.ts | 14 +- .../src/utils/normalize-optimization.ts | 32 +- .../src/utils/normalize-source-maps.ts | 4 +- .../build_angular/src/utils/output-paths.ts | 5 +- .../src/utils/package-chunk-sort.ts | 6 +- .../build_angular/src/utils/process-bundle.ts | 74 ++- .../build_angular/src/utils/read-tsconfig.ts | 4 +- .../utils/run-module-as-observable-fork.ts | 7 +- .../build_angular/src/utils/service-worker.ts | 6 +- .../src/utils/webpack-browser-config.ts | 29 +- .../src/webpack/configs/browser.ts | 46 +- .../src/webpack/configs/common.ts | 160 +++---- .../src/webpack/configs/dev-server.ts | 23 +- .../src/webpack/configs/server.ts | 6 +- .../src/webpack/configs/stats.ts | 2 +- .../src/webpack/configs/styles.ts | 4 +- .../build_angular/src/webpack/configs/test.ts | 12 +- .../src/webpack/configs/typescript.ts | 4 +- .../src/webpack/plugins/analytics.ts | 21 +- .../src/webpack/plugins/analytics_spec.ts | 49 +- .../any-component-style-budget-checker.ts | 85 ++-- .../plugins/common-js-usage-warn-plugin.ts | 25 +- .../plugins/dedupe-module-resolve-plugin.ts | 98 ++-- .../src/webpack/plugins/hmr/hmr-accept.ts | 65 +-- .../plugins/index-html-webpack-plugin.ts | 28 +- .../src/webpack/plugins/index.ts | 5 +- .../webpack/plugins/karma/karma-context.html | 61 +-- .../webpack/plugins/karma/karma-debug.html | 67 +-- .../src/webpack/plugins/karma/karma.ts | 65 +-- .../plugins/optimize-css-webpack-plugin.ts | 37 +- .../webpack/plugins/postcss-cli-resources.ts | 37 +- .../src/webpack/plugins/remove-hash-plugin.ts | 9 +- .../webpack/plugins/scripts-webpack-plugin.ts | 79 ++-- .../webpack/plugins/single-test-transform.ts | 8 +- .../src/webpack/utils/async-chunks.ts | 8 +- .../src/webpack/utils/async-chunks_spec.ts | 18 +- .../src/webpack/utils/helpers.ts | 6 +- .../build_angular/src/webpack/utils/stats.ts | 118 ++--- .../angular_devkit/build_optimizer/README.md | 145 +++--- .../src/build-optimizer/build-optimizer.ts | 6 +- .../build-optimizer/build-optimizer_spec.ts | 38 +- .../src/build-optimizer/cli.ts | 2 +- .../src/build-optimizer/rollup-plugin.ts | 6 +- .../src/build-optimizer/webpack-plugin.ts | 2 +- .../build_optimizer/src/helpers/ast-utils.ts | 4 +- .../src/helpers/transform-javascript.ts | 29 +- .../src/transforms/prefix-classes.ts | 83 ++-- .../src/transforms/prefix-classes_spec.ts | 5 +- .../src/transforms/prefix-functions.ts | 22 +- .../src/transforms/prefix-functions_spec.ts | 21 +- .../src/transforms/scrub-file.ts | 77 ++-- .../src/transforms/scrub-file_spec.ts | 29 +- .../src/transforms/wrap-enums.ts | 153 +++---- .../src/transforms/wrap-enums_spec.ts | 6 +- .../angular_devkit/build_webpack/README.md | 4 +- .../angular_devkit/build_webpack/src/utils.ts | 6 +- .../src/webpack-dev-server/index.ts | 108 ++--- .../src/webpack-dev-server/index_spec.ts | 14 +- .../src/webpack-dev-server/schema.json | 4 +- .../build_webpack/src/webpack/index.ts | 118 ++--- .../build_webpack/src/webpack/index_spec.ts | 26 +- .../build_webpack/src/webpack/schema.json | 4 +- .../test/angular-app/angular.json | 2 +- .../angular-app/src/app/app.component.html | 21 +- .../angular-app/src/app/app.component.spec.ts | 4 +- .../test/angular-app/src/app/app.component.ts | 2 +- .../test/angular-app/src/app/app.module.ts | 14 +- .../src/environments/environment.prod.ts | 2 +- .../src/environments/environment.ts | 2 +- .../test/angular-app/src/main.ts | 5 +- .../test/angular-app/src/polyfills.ts | 6 +- .../test/angular-app/src/tsconfig.app.json | 5 +- .../test/angular-app/tsconfig.json | 9 +- .../test/angular-app/webpack.config.js | 13 +- .../build_webpack/test/basic-app/angular.json | 2 +- .../build_webpack/test/basic-app/src/main.js | 2 +- .../test/basic-app/tsconfig.json | 9 +- .../test/basic-app/webpack.config.js | 4 +- packages/angular_devkit/core/README.md | 70 +-- .../angular_devkit/core/node/cli-logger.ts | 78 ++-- .../core/node/experimental/index.ts | 4 +- .../node/experimental/jobs/job-registry.ts | 40 +- .../experimental/jobs/job-registry_spec.ts | 1 - packages/angular_devkit/core/node/host.ts | 97 ++-- .../angular_devkit/core/node/host_spec.ts | 174 ++++---- packages/angular_devkit/core/node/index.ts | 5 +- .../angular_devkit/core/node/testing/index.ts | 7 +- .../core/src/analytics/forwarder.ts | 7 +- .../core/src/analytics/multi.ts | 11 +- .../angular_devkit/core/src/analytics/noop.ts | 4 +- .../core/src/exception/exception.ts | 34 +- .../angular_devkit/core/src/experimental.ts | 4 +- .../core/src/experimental/jobs/README.md | 245 +++++----- .../core/src/experimental/jobs/api.ts | 63 +-- .../src/experimental/jobs/architecture.md | 81 ++-- .../experimental/jobs/create-job-handler.ts | 35 +- .../core/src/experimental/jobs/dispatcher.ts | 61 +-- .../experimental/jobs/fallback-registry.ts | 23 +- .../src/experimental/jobs/simple-registry.ts | 37 +- .../experimental/jobs/simple-registry_spec.ts | 4 +- .../src/experimental/jobs/simple-scheduler.ts | 256 +++++------ .../jobs/simple-scheduler_spec.ts | 238 +++++----- .../core/src/experimental/jobs/strategy.ts | 36 +- .../src/experimental/jobs/strategy_spec.ts | 203 +++++---- packages/angular_devkit/core/src/index.ts | 8 +- .../angular_devkit/core/src/json/interface.ts | 32 +- .../angular_devkit/core/src/json/parser.ts | 209 +++++---- .../core/src/json/parser_spec.ts | 246 ++++++---- .../core/src/json/schema/interface.ts | 16 +- .../core/src/json/schema/pointer.ts | 26 +- .../core/src/json/schema/prompt_spec.ts | 212 ++++----- .../core/src/json/schema/registry.ts | 102 +++-- .../core/src/json/schema/registry_spec.ts | 117 ++--- .../core/src/json/schema/schema.ts | 1 - .../core/src/json/schema/transforms.ts | 24 +- .../core/src/json/schema/transforms_spec.ts | 161 +++---- .../core/src/json/schema/utility.ts | 9 +- .../core/src/json/schema/visitor.ts | 8 +- .../core/src/json/schema/visitor_spec.ts | 67 +-- .../angular_devkit/core/src/logger/indent.ts | 28 +- .../core/src/logger/indent_spec.ts | 9 +- .../angular_devkit/core/src/logger/level.ts | 2 +- .../angular_devkit/core/src/logger/logger.ts | 57 ++- .../core/src/logger/logger_spec.ts | 27 +- .../core/src/logger/null-logger.ts | 1 - .../core/src/logger/null-logger_spec.ts | 17 +- .../core/src/logger/transform-logger.ts | 9 +- .../core/src/logger/transform-logger_spec.ts | 16 +- .../angular_devkit/core/src/utils/array.ts | 2 +- .../angular_devkit/core/src/utils/index.ts | 12 +- .../angular_devkit/core/src/utils/literals.ts | 19 +- .../angular_devkit/core/src/utils/object.ts | 15 +- .../core/src/utils/partially-ordered-set.ts | 19 +- .../core/src/utils/priority-queue.ts | 2 +- .../core/src/utils/priority-queue_spec.ts | 1 - .../angular_devkit/core/src/utils/strings.ts | 15 +- .../angular_devkit/core/src/utils/template.ts | 185 ++++---- .../core/src/virtual-fs/host/alias.ts | 7 +- .../core/src/virtual-fs/host/alias_spec.ts | 21 +- .../core/src/virtual-fs/host/buffer.ts | 4 +- .../core/src/virtual-fs/host/interface.ts | 4 +- .../core/src/virtual-fs/host/memory.ts | 51 ++- .../core/src/virtual-fs/host/memory_spec.ts | 19 +- .../core/src/virtual-fs/host/pattern.ts | 32 +- .../core/src/virtual-fs/host/pattern_spec.ts | 15 +- .../core/src/virtual-fs/host/record.ts | 123 ++--- .../core/src/virtual-fs/host/record_spec.ts | 132 +++--- .../core/src/virtual-fs/host/resolver.ts | 4 +- .../core/src/virtual-fs/host/safe.ts | 16 +- .../core/src/virtual-fs/host/sync.ts | 13 +- .../core/src/virtual-fs/host/test.ts | 38 +- .../core/src/virtual-fs/host/test_spec.ts | 3 - .../core/src/virtual-fs/path.ts | 41 +- .../core/src/virtual-fs/path_spec.ts | 25 +- .../core/src/workspace/core_spec.ts | 37 +- .../core/src/workspace/definitions.ts | 29 +- .../core/src/workspace/definitions_spec.ts | 48 +- .../core/src/workspace/host_spec.ts | 8 +- .../core/src/workspace/json/metadata.ts | 4 +- .../core/src/workspace/json/reader.ts | 6 +- .../core/src/workspace/json/reader_spec.ts | 69 ++- .../core/src/workspace/json/utilities.ts | 27 +- .../core/src/workspace/json/writer.ts | 24 +- .../core/src/workspace/json/writer_spec.ts | 10 +- packages/angular_devkit/schematics/README.md | 142 +++--- .../schematics/collection-schema.json | 9 +- .../schematics/src/engine/engine.ts | 108 +++-- .../schematics/src/engine/interface.ts | 47 +- .../schematics/src/engine/schematic.ts | 82 ++-- .../schematics/src/engine/schematic_spec.ts | 63 +-- .../schematics/src/exception/exception.ts | 18 +- .../src/formats/format-validator.ts | 5 +- .../schematics/src/formats/html-selector.ts | 24 +- .../src/formats/html-selector_spec.ts | 35 +- .../schematics/src/formats/index.ts | 5 +- .../schematics/src/formats/path.ts | 1 - .../schematics/src/formats/path_spec.ts | 15 +- .../angular_devkit/schematics/src/index.ts | 21 +- .../schematics/src/rules/base.ts | 19 +- .../schematics/src/rules/base_spec.ts | 68 ++- .../schematics/src/rules/call.ts | 79 ++-- .../schematics/src/rules/call_spec.ts | 81 ++-- .../schematics/src/rules/move.ts | 5 +- .../schematics/src/rules/move_spec.ts | 24 +- .../schematics/src/rules/random.ts | 26 +- .../schematics/src/rules/rename.ts | 3 +- .../schematics/src/rules/rename_spec.ts | 30 +- .../schematics/src/rules/schematic.ts | 11 +- .../schematics/src/rules/template.ts | 38 +- .../schematics/src/rules/template_spec.ts | 106 +++-- .../schematics/src/rules/url.ts | 1 - .../schematics/src/sink/dryrun.ts | 32 +- .../schematics/src/sink/dryrun_spec.ts | 28 +- .../schematics/src/sink/host.ts | 17 +- .../schematics/src/sink/host_spec.ts | 96 ++-- .../schematics/src/sink/sink.ts | 100 +++-- .../schematics/src/tree/action.ts | 49 +- .../schematics/src/tree/action_spec.ts | 32 +- .../schematics/src/tree/common_spec.ts | 29 +- .../schematics/src/tree/delegate.ts | 52 ++- .../schematics/src/tree/empty.ts | 5 +- .../schematics/src/tree/entry.ts | 18 +- .../schematics/src/tree/host-tree.ts | 91 ++-- .../schematics/src/tree/host-tree_spec.ts | 36 +- .../schematics/src/tree/interface.ts | 36 +- .../schematics/src/tree/null.ts | 42 +- .../schematics/src/tree/recorder.ts | 12 +- .../schematics/src/tree/recorder_spec.ts | 4 +- .../schematics/src/tree/scoped.ts | 38 +- .../schematics/src/tree/scoped_spec.ts | 13 +- .../schematics/src/tree/static.ts | 1 - .../schematics/src/utility/linked-list.ts | 6 +- .../schematics/src/utility/update-buffer.ts | 23 +- .../schematics/src/workflow/base.ts | 82 ++-- .../schematics/src/workflow/interface.ts | 10 +- .../schematics/tasks/node/index.ts | 17 +- .../tasks/package-manager/executor.ts | 23 +- .../schematics/tasks/repo-init/executor.ts | 38 +- .../schematics/tasks/repo-init/init-task.ts | 1 - .../tasks/run-schematic/executor.ts | 3 +- .../schematics/tasks/run-schematic/task.ts | 1 - .../schematics/tasks/tslint-fix/executor.ts | 67 +-- .../tasks/tslint-fix/executor_spec.ts | 85 ++-- .../schematics/tasks/tslint-fix/task.ts | 8 +- .../tasks/tslint-fix/test/custom-rule.ts | 35 +- .../tslint-fix/test/rules/customRuleRule.js | 7 +- .../tasks/tslint-fix/test/run-task.ts | 33 +- .../testing/schematic-test-runner.ts | 34 +- .../schematics/tools/description.ts | 42 +- .../schematics/tools/export-ref.ts | 13 +- .../schematics/tools/export-ref_spec.ts | 1 - .../schematics/tools/fallback-engine-host.ts | 41 +- .../tools/file-system-engine-host-base.ts | 84 ++-- .../tools/file-system-engine-host.ts | 12 +- .../tools/file-system-engine-host_spec.ts | 66 +-- .../schematics/tools/file-system-utility.ts | 8 +- .../tools/node-module-engine-host.ts | 13 +- .../tools/node-module-engine-host_spec.ts | 17 +- .../tools/node-modules-test-engine-host.ts | 9 +- .../tools/schema-option-transform.ts | 22 +- .../tools/workflow/node-workflow.ts | 4 +- .../tools/workflow/node-workflow_spec.ts | 16 +- .../schematics_cli/bin/schematics.ts | 110 +++-- .../schematics_cli/blank/factory.ts | 36 +- .../schematics_cli/schematic/factory.ts | 29 +- .../schematics_cli/schematic/files/README.md | 2 +- .../files/src/my-full-schematic/index.ts | 15 +- .../files/src/my-full-schematic/index_spec.ts | 10 +- .../files/src/my-full-schematic/schema.json | 4 +- .../files/src/my-other-schematic/index.ts | 11 +- .../src/my-other-schematic/index_spec.ts | 2 - .../schematic/files/src/my-schematic/index.ts | 1 - .../files/src/my-schematic/index_spec.ts | 2 - .../schematic/files/tsconfig.json | 18 +- .../schematics_cli/schematic/schema.json | 4 +- packages/ngtools/webpack/README.md | 25 +- .../ngtools/webpack/src/ivy/diagnostics.ts | 4 +- packages/ngtools/webpack/src/ivy/host.ts | 14 +- packages/ngtools/webpack/src/ivy/loader.ts | 3 +- .../ngtools/webpack/src/ngcc_processor.ts | 27 +- packages/ngtools/webpack/src/paths-plugin.ts | 103 +++-- .../ngtools/webpack/src/resource_loader.ts | 9 +- .../webpack/src/transformers/elide_imports.ts | 13 +- .../src/transformers/elide_imports_spec.ts | 148 ++++-- .../webpack/src/transformers/interfaces.ts | 10 +- .../remove-ivy-jit-support-calls_spec.ts | 22 +- .../src/transformers/replace_resources.ts | 35 +- .../transformers/replace_resources_spec.ts | 24 +- .../webpack/src/transformers/spec_helpers.ts | 15 +- packages/schematics/angular/README.md | 40 +- .../angular/app-shell/app-shell-long.md | 4 +- .../schematics/angular/app-shell/index.ts | 88 ++-- .../angular/app-shell/index_spec.ts | 62 +-- .../schematics/angular/app-shell/schema.json | 4 +- .../schematics/angular/application/index.ts | 136 +++--- .../angular/application/index_spec.ts | 323 ++++++++------ .../angular/application/schema.json | 28 +- packages/schematics/angular/class/index.ts | 2 +- .../schematics/angular/class/index_spec.ts | 28 +- packages/schematics/angular/class/schema.json | 4 +- packages/schematics/angular/collection.json | 26 +- .../schematics/angular/component/index.ts | 61 +-- .../schematics/angular/component/schema.json | 13 +- .../schematics/angular/directive/index.ts | 34 +- .../angular/directive/index_spec.ts | 43 +- .../schematics/angular/directive/schema.json | 4 +- packages/schematics/angular/e2e/e2e-long.md | 2 +- packages/schematics/angular/e2e/index.ts | 36 +- packages/schematics/angular/e2e/index_spec.ts | 51 ++- packages/schematics/angular/e2e/schema.json | 4 +- packages/schematics/angular/enum/index.ts | 1 - .../schematics/angular/enum/index_spec.ts | 13 +- packages/schematics/angular/enum/schema.json | 4 +- packages/schematics/angular/guard/index.ts | 10 +- packages/schematics/angular/guard/schema.json | 15 +- .../schematics/angular/interceptor/index.ts | 4 +- .../angular/interceptor/index_spec.ts | 13 +- .../schematics/angular/interface/index.ts | 1 - .../angular/interface/index_spec.ts | 16 +- .../schematics/angular/interface/schema.json | 4 +- packages/schematics/angular/library/index.ts | 10 +- .../schematics/angular/library/index_spec.ts | 216 ++++++--- .../angular/library/library-long.md | 2 +- .../update-10/add-deprecation-rule-tslint.ts | 2 +- .../add-deprecation-rule-tslint_spec.ts | 12 +- .../update-10/remove-es5-browser-support.ts | 48 +- .../remove-es5-browser-support_spec.ts | 11 +- .../remove-solution-style-tsconfig.ts | 13 +- .../remove-solution-style-tsconfig_spec.ts | 37 +- .../update-10/rename-browserslist-config.ts | 2 +- .../update-10/update-angular-config.ts | 2 +- .../update-10/update-angular-config_spec.ts | 7 +- .../update-10/update-dependencies.ts | 11 +- .../update-10/update-libraries-tslib.ts | 23 +- .../update-10/update-libraries-tslib_spec.ts | 25 +- ...date-module-and-target-compiler-options.ts | 39 +- ...module-and-target-compiler-options_spec.ts | 9 +- .../migrations/update-10/update-tslint.ts | 16 +- .../update-10/update-tslint_spec.ts | 70 +-- .../add-declaration-map-compiler-option.ts | 2 +- ...dd-declaration-map-compiler-option_spec.ts | 21 +- .../update-11/replace-ng-packagr-builder.ts | 10 +- .../replace-ng-packagr-builder_spec.ts | 25 +- .../update-11/update-angular-config.ts | 8 +- .../update-11/update-angular-config_spec.ts | 15 +- .../update-11/update-dependencies.ts | 5 +- .../update-12/production-default-config.ts | 87 ++-- .../production-default-config_spec.ts | 63 +-- .../remove-emit-decorator-metadata.ts | 2 +- .../remove-emit-decorator-metadata_spec.ts | 55 ++- .../update-12/update-angular-config.ts | 14 +- .../update-12/update-angular-config_spec.ts | 7 +- .../update-12/update-lazy-module-paths.ts | 18 +- .../update-lazy-module-paths_spec.ts | 10 +- .../update-12/update-web-workers_spec.ts | 4 +- .../migrations/update-12/update-zonejs.ts | 39 +- .../update-12/update-zonejs_spec.ts | 47 +- .../angular/migrations/update-9/add-tslib.ts | 9 +- .../angular/migrations/update-9/index.ts | 4 +- .../migrations/update-9/ivy-libraries.ts | 2 +- .../migrations/update-9/ivy-libraries_spec.ts | 32 +- .../migrations/update-9/ngsw-config_spec.ts | 30 +- .../update-9/remove-tsickle_spec.ts | 13 +- .../migrations/update-9/schematic-options.ts | 4 +- .../update-9/schematic-options_spec.ts | 35 +- .../update-9/update-app-tsconfigs.ts | 18 +- .../update-9/update-app-tsconfigs_spec.ts | 55 ++- .../migrations/update-9/update-i18n.ts | 23 +- .../migrations/update-9/update-i18n_spec.ts | 88 +++- .../update-9/update-server-main-file.ts | 44 +- .../update-9/update-server-main-file_spec.ts | 30 +- .../update-9/update-workspace-config_spec.ts | 71 ++- .../angular/migrations/update-9/utils_spec.ts | 161 ++++--- packages/schematics/angular/module/index.ts | 38 +- .../schematics/angular/module/index_spec.ts | 181 +++++--- .../schematics/angular/module/schema.json | 6 +- packages/schematics/angular/ng-new/index.ts | 13 +- .../schematics/angular/ng-new/index_spec.ts | 13 +- .../angular/no_typescript_runtime_dep_spec.js | 9 +- packages/schematics/angular/pipe/index.ts | 32 +- .../schematics/angular/pipe/index_spec.ts | 12 +- packages/schematics/angular/pipe/schema.json | 4 +- packages/schematics/angular/resolver/index.ts | 7 +- .../schematics/angular/resolver/index_spec.ts | 15 +- .../schematics/angular/resolver/schema.json | 4 +- .../angular/service-worker/index.ts | 15 +- .../angular/service-worker/index_spec.ts | 128 +++--- .../angular/service-worker/schema.d.ts | 24 +- .../angular/service-worker/schema.json | 4 +- packages/schematics/angular/service/index.ts | 4 +- .../schematics/angular/service/index_spec.ts | 18 +- .../schematics/angular/universal/index.ts | 48 +- .../angular/universal/index_spec.ts | 89 ++-- .../schematics/angular/universal/schema.json | 4 +- .../schematics/angular/utility/ast-utils.ts | 237 ++++++---- .../angular/utility/ast-utils_spec.ts | 25 +- packages/schematics/angular/utility/change.ts | 23 +- .../angular/utility/dependencies.ts | 18 +- .../angular/utility/dependencies_spec.ts | 22 +- .../schematics/angular/utility/find-module.ts | 51 +-- .../angular/utility/find-module_spec.ts | 35 +- .../schematics/angular/utility/json-file.ts | 48 +- .../schematics/angular/utility/lint-fix.ts | 19 +- .../angular/utility/ng-ast-utils.ts | 19 +- .../schematics/angular/utility/parse-name.ts | 1 - .../angular/utility/parse-name_spec.ts | 1 - .../angular/utility/test/create-app-module.ts | 8 +- .../angular/utility/test/get-file-content.ts | 1 - .../schematics/angular/utility/validation.ts | 8 +- .../angular/utility/workspace-models.ts | 202 ++++----- .../schematics/angular/utility/workspace.ts | 13 +- .../schematics/angular/web-worker/index.ts | 32 +- .../angular/web-worker/index_spec.ts | 50 +-- .../schematics/angular/web-worker/schema.json | 5 +- .../schematics/angular/workspace/index.ts | 21 +- .../angular/workspace/index_spec.ts | 51 ++- .../schematics/angular/workspace/schema.json | 5 +- renovate.json | 60 +-- scripts/README.md | 38 +- scripts/build-schema.ts | 29 +- scripts/build.ts | 103 ++--- scripts/changelog.ts | 8 +- scripts/create.ts | 5 +- scripts/dist-tag.ts | 14 +- scripts/packages.ts | 29 +- scripts/publish.ts | 55 ++- scripts/snapshots.ts | 39 +- scripts/templates.ts | 3 +- scripts/test.ts | 50 +-- scripts/validate-licenses.ts | 76 ++-- scripts/validate-user-analytics.ts | 15 +- scripts/validate.ts | 10 +- tools/ng_cli_schema_generator.js | 14 +- tools/quicktype_runner.js | 10 +- tools/rebase-pr.js | 70 +-- tsconfig-test.json | 7 +- tsconfig.json | 54 +-- tslint.json | 35 +- 651 files changed, 12347 insertions(+), 10945 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/1-bug-report.md b/.github/ISSUE_TEMPLATE/1-bug-report.md index c24ab5b7ef34..bc0cec42df0e 100644 --- a/.github/ISSUE_TEMPLATE/1-bug-report.md +++ b/.github/ISSUE_TEMPLATE/1-bug-report.md @@ -2,6 +2,7 @@ name: "\U0001F41E Bug report" about: Report a bug in Angular CLI --- + - # 🐞 Bug report ### Command (mark with an `x`) + @@ -34,26 +35,24 @@ Existing issues often contain information about workarounds, resolution, or prog - [ ] version - [ ] doc - ### Is this a regression? Yes, the previous version in which this bug was not present was: .... - ### Description A clear and concise description of the problem... - ## 🔬 Minimal Reproduction + ## 🔥 Exception or Error +

 
 
 
 
- ## 🌍 Your Environment +

 
 
@@ -77,6 +77,7 @@ You can read more about issue submission guidelines here: https://github.com/ang
 
**Anything else relevant?** + diff --git a/.github/ISSUE_TEMPLATE/2-feature-request.md b/.github/ISSUE_TEMPLATE/2-feature-request.md index 9210f5135779..f129bc107360 100644 --- a/.github/ISSUE_TEMPLATE/2-feature-request.md +++ b/.github/ISSUE_TEMPLATE/2-feature-request.md @@ -1,8 +1,8 @@ --- name: "\U0001F680 Feature request" about: Suggest a feature for Angular CLI - --- + - # 🚀 Feature request - ### Command (mark with an `x`) + + - [ ] new - [ ] build - [ ] serve @@ -36,12 +36,13 @@ Existing issues often contain information about workarounds, resolution, or prog - [ ] doc ### Description - A clear and concise description of the problem or missing capability... + A clear and concise description of the problem or missing capability... ### Describe the solution you'd like - If you have a solution in mind, please describe it. + If you have a solution in mind, please describe it. ### Describe alternatives you've considered + Have you considered any alternative solutions or workarounds? diff --git a/.github/ISSUE_TEMPLATE/3-docs-bug.md b/.github/ISSUE_TEMPLATE/3-docs-bug.md index 7cd9ec28753a..7270bb2a963f 100644 --- a/.github/ISSUE_TEMPLATE/3-docs-bug.md +++ b/.github/ISSUE_TEMPLATE/3-docs-bug.md @@ -1,7 +1,6 @@ --- -name: "📚 Docs or angular.io issue report" +name: '📚 Docs or angular.io issue report' about: Report an issue in Angular's documentation or angular.io application - --- 🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑 diff --git a/.github/ISSUE_TEMPLATE/4-security-issue-disclosure.md b/.github/ISSUE_TEMPLATE/4-security-issue-disclosure.md index 70736318d2a3..a5c2c1707fda 100644 --- a/.github/ISSUE_TEMPLATE/4-security-issue-disclosure.md +++ b/.github/ISSUE_TEMPLATE/4-security-issue-disclosure.md @@ -1,7 +1,6 @@ --- name: ⚠️ Security issue disclosure about: Report a security issue in Angular Framework, Material, or CLI - --- 🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑 diff --git a/.github/ISSUE_TEMPLATE/5-support-request.md b/.github/ISSUE_TEMPLATE/5-support-request.md index cdbd2e887db7..509f8d4797bc 100644 --- a/.github/ISSUE_TEMPLATE/5-support-request.md +++ b/.github/ISSUE_TEMPLATE/5-support-request.md @@ -1,14 +1,13 @@ --- -name: "❓ Support request" +name: '❓ Support request' about: Questions and requests for support - --- 🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑 Please do not file questions or support requests on the GitHub issues tracker. -You can get your questions answered using other communication channels. Please see: +You can get your questions answered using other communication channels. Please see: https://github.com/angular/angular-cli/blob/master/CONTRIBUTING.md#question Thank you! diff --git a/.github/ISSUE_TEMPLATE/6-angular-framework.md b/.github/ISSUE_TEMPLATE/6-angular-framework.md index 8a689c55de35..8ab207b2389f 100644 --- a/.github/ISSUE_TEMPLATE/6-angular-framework.md +++ b/.github/ISSUE_TEMPLATE/6-angular-framework.md @@ -1,7 +1,6 @@ --- -name: "⚡Angular Framework" +name: '⚡Angular Framework' about: Issues and feature requests for Angular Framework - --- 🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑 diff --git a/.github/ISSUE_TEMPLATE/7-angular-material.md b/.github/ISSUE_TEMPLATE/7-angular-material.md index fab3fe5b67c8..10b27db5c86f 100644 --- a/.github/ISSUE_TEMPLATE/7-angular-material.md +++ b/.github/ISSUE_TEMPLATE/7-angular-material.md @@ -1,7 +1,6 @@ --- name: "\U0001F48E Angular Material" about: Issues and feature requests for Angular Material - --- 🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑 diff --git a/.github/SAVED_REPLIES.md b/.github/SAVED_REPLIES.md index 29e19832903c..466b8ad5ee52 100644 --- a/.github/SAVED_REPLIES.md +++ b/.github/SAVED_REPLIES.md @@ -4,52 +4,52 @@ The following are canned responses that the Angular CLI team should use to close Since GitHub currently doesn't allow us to have a repository-wide or organization-wide list of [saved replies](https://help.github.com/articles/working-with-saved-replies/), these replies need to be maintained by individual team members. Since the responses can be modified in the future, all responses are versioned to simplify the process of keeping the responses up to date. - ## Angular CLI: Already Fixed (v1) + ``` Thanks for reporting this issue. Luckily, it has already been fixed in one of the recent releases. Please update to the most recent version to resolve the problem. If the problem persists in your application after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior. You can use `ng new repro-app` to create a new project where you reproduce the problem. ``` - ## Angular CLI: Don't Understand (v1) + ``` I'm sorry, but we don't understand the problem you are reporting. If the problem persists, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior. You can use `ng new repro-app` to create a new project where you reproduce the problem. ``` - ## Angular CLI: Duplicate (v1.1) + ``` Thanks for reporting this issue. However, this issue is a duplicate of #. Please subscribe to that issue for future updates. ``` - ## Angular CLI: Insufficient Information Provided (v1) + ``` Thanks for reporting this issue. However, you didn't provide sufficient information for us to understand and reproduce the problem. Please check out [our submission guidelines](https://github.com/angular/angular-cli/blob/master/CONTRIBUTING.md#-submitting-an-issue) to understand why we can't act on issues that are lacking important information. If the problem persists, please file a new issue and ensure you provide all of the required information when filling out the issue template. ``` - ## Angular CLI: NPM install issue (v1) + ``` This seems like a problem with your node/npm and not with Angular CLI. Please have a look at the [fixing npm permissions page](https://docs.npmjs.com/getting-started/fixing-npm-permissions), [common errors page](https://docs.npmjs.com/troubleshooting/common-errors), [npm issue tracker](https://github.com/npm/npm/issues), or open a new issue if the problem you are experiencing isn't known. ``` - ## Angular CLI: Issue Outside of Angular CLI (v1.1) + ``` I'm sorry, but this issue is not caused by Angular CLI. Please contact the author(s) of the project or file an issue on their issue tracker. ``` - ## Angular CLI: Non-reproducible (v1) + ``` I'm sorry, but we can't reproduce the problem following the instructions you provided. Remember that we have a large number of issues to resolve, and have only a limited amount of time to reproduce your issue. @@ -60,24 +60,24 @@ If the problem persists, please open a new issue following [our submission guide A good way to make a minimal repro is to create a new app via `ng new repro-app` and adding the minimum possible code to show the problem. Then you can push this repository to github and link it here. ``` - ## Angular CLI: Obsolete (v1) + ``` Thanks for reporting this issue. This issue is now obsolete due to changes in the recent releases. Please update to the most recent Angular CLI version. If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior. ``` - ## Angular CLI: Support Request (v1) + ``` Hello, we reviewed this issue and determined that it doesn't fall into the bug report or feature request category. This issue tracker is not suitable for support requests, please repost your issue on [StackOverflow](http://stackoverflow.com/) using tag `angular-cli`. If you are wondering why we don't resolve support issues via the issue tracker, please [check out this explanation](https://github.com/angular/angular-cli/blob/master/CONTRIBUTING.md#-got-a-question-or-problem). ``` - ## Angular CLI: Static Analysis errors (v1) + ``` Hello, errors like `Error encountered resolving symbol values statically` mean that there has been some problem in statically analyzing your app. @@ -93,6 +93,7 @@ In that case, please open an issue in https://github.com/angular/angular. ``` ## Angular CLI: Lockfiles (v1) + ``` I'd like to remind everyone that **you only have reproducible installs if you use a lockfile**. Both [NPM v5+](https://docs.npmjs.com/files/package-locks) and [Yarn](https://yarnpkg.com/lang/en/docs/yarn-lock/) support lockfiles. If your CI works one day but not the next and you did not change your code or `package.json`, it is likely because one of your dependencies had a bad release and you did not have a lockfile. diff --git a/.github/angular-robot.yml b/.github/angular-robot.yml index 546301497bd3..e4a402d300b3 100644 --- a/.github/angular-robot.yml +++ b/.github/angular-robot.yml @@ -7,11 +7,11 @@ merge: # set to true to disable disabled: false # the name of the status - context: "ci/angular: merge status" + context: 'ci/angular: merge status' # text to show when all checks pass - successText: "All checks passed!" + successText: 'All checks passed!' # text to show when some checks are failing - failureText: "The following checks are failing:" + failureText: 'The following checks are failing:' # comment that will be added to a PR when there is a conflict, leave empty or set to false to disable mergeConflictComment: >- @@ -20,7 +20,7 @@ merge: Please help to unblock it by resolving these conflicts. Thanks! # label to monitor - mergeLabel: "action: merge" + mergeLabel: 'action: merge' # list of checks that will determine if the merge label can be added checks: @@ -30,28 +30,28 @@ merge: requireReviews: true # list of labels that a PR needs to have, checked with a regexp (e.g. "target:" will work for the label "target: major") requiredLabels: - - "target: *" - - "cla: yes" + - 'target: *' + - 'cla: yes' # list of labels that a PR shouldn't have, checked after the required labels with a regexp forbiddenLabels: - - "action: cleanup" - - "action: review" - - "PR state: blocked" - - "cla: no" + - 'action: cleanup' + - 'action: review' + - 'PR state: blocked' + - 'cla: no' # list of PR statuses that need to be successful requiredStatuses: - - "ci/circleci: build" - - "ci/circleci: setup" - - "ci/circleci: lint" - - "ci/circleci: validate" - - "ci/circleci: test" - - "ci/circleci: e2e-cli-win" - - "ci/circleci: e2e-cli" - - "ci/circleci: test-browsers" - - "ci/angular: size" - - "cla/google" + - 'ci/circleci: build' + - 'ci/circleci: setup' + - 'ci/circleci: lint' + - 'ci/circleci: validate' + - 'ci/circleci: test' + - 'ci/circleci: e2e-cli-win' + - 'ci/circleci: e2e-cli' + - 'ci/circleci: test-browsers' + - 'ci/angular: size' + - 'cla/google' # the comment that will be added when the merge label is added despite failing checks, leave empty or set to false to disable # {{MERGE_LABEL}} will be replaced by the value of the mergeLabel option @@ -78,30 +78,24 @@ triage: defaultMilestone: 12, # arrays of labels that determine if an issue has been triaged by the caretaker l1TriageLabels: - - - - "comp: *" + - - 'comp: *' # arrays of labels that determine if an issue has been fully triaged l2TriageLabels: - - - - "type: bug/fix" - - "severity*" - - "freq*" - - "comp: *" - - - - "type: feature" - - "comp: *" - - - - "type: refactor" - - "comp: *" - - - - "type: RFC / Discussion / question" - - "comp: *" - - - - "type: docs" - - "comp: *" + - - 'type: bug/fix' + - 'severity*' + - 'freq*' + - 'comp: *' + - - 'type: feature' + - 'comp: *' + - - 'type: refactor' + - 'comp: *' + - - 'type: RFC / Discussion / question' + - 'comp: *' + - - 'type: docs' + - 'comp: *' # Size checking size: - circleCiStatusName: "ci/circleci: e2e-cli" + circleCiStatusName: 'ci/circleci: e2e-cli' maxSizeIncrease: 10000 comment: false diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 6499bb344192..cc8aa2b2c506 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,16 +1,16 @@ version: 2 updates: - - package-ecosystem: "npm" - directory: "/" + - package-ecosystem: 'npm' + directory: '/' schedule: - interval: "daily" + interval: 'daily' commit-message: - prefix: "build" + prefix: 'build' labels: - - "comp: build & ci" - - "target: patch" - - "action: merge" + - 'comp: build & ci' + - 'target: patch' + - 'action: merge' # Disable version updates # This does not affect security updates open-pull-requests-limit: 0 diff --git a/.monorepo.json b/.monorepo.json index cab101ad56e0..0cf9710d62e8 100644 --- a/.monorepo.json +++ b/.monorepo.json @@ -41,12 +41,9 @@ "Angular CLI": "http://github.com/angular/angular-cli" }, "packages": { - "@_/benchmark": { - }, - "@_/builders": { - }, - "devkit": { - }, + "@_/benchmark": {}, + "@_/builders": {}, + "devkit": {}, "@angular/cli": { "name": "Angular CLI", "section": "Tooling", diff --git a/.ng-dev/commit-message.ts b/.ng-dev/commit-message.ts index 06bd8eb244fc..98b1f02495fd 100644 --- a/.ng-dev/commit-message.ts +++ b/.ng-dev/commit-message.ts @@ -1,5 +1,9 @@ // tslint:disable-next-line: no-implicit-dependencies -import { COMMIT_TYPES, CommitMessageConfig, ScopeRequirement } from '@angular/dev-infra-private/commit-message/config'; +import { + COMMIT_TYPES, + CommitMessageConfig, + ScopeRequirement, +} from '@angular/dev-infra-private/commit-message/config'; import { packages } from '../lib/packages'; /** @@ -16,7 +20,5 @@ export const commitMessage: CommitMessageConfig = { maxLineLength: Infinity, minBodyLength: 0, minBodyLengthTypeExcludes: ['docs'], - scopes: [ - ...Object.keys(packages), - ], + scopes: [...Object.keys(packages)], }; diff --git a/.ng-dev/format.ts b/.ng-dev/format.ts index 39479cbdbe66..3480c241199b 100644 --- a/.ng-dev/format.ts +++ b/.ng-dev/format.ts @@ -5,6 +5,6 @@ import { FormatConfig } from '@angular/dev-infra-private/format/config'; */ export const format: FormatConfig = { 'prettier': { - matchers: ['**/*.{ts,js,json,yml,yaml,md}'] + matchers: ['**/*.{ts,js,json,yml,yaml,md}'], }, -} +}; diff --git a/.ng-dev/merge.ts b/.ng-dev/merge.ts index eb41a469caad..24dde02bac87 100644 --- a/.ng-dev/merge.ts +++ b/.ng-dev/merge.ts @@ -7,13 +7,11 @@ import { release } from './release'; * Configuration for the merge tool in `ng-dev`. This sets up the labels which * are respected by the merge script (e.g. the target labels). */ -export const merge: DevInfraMergeConfig['merge'] = async api => { +export const merge: DevInfraMergeConfig['merge'] = async (api) => { return { githubApiMerge: { default: 'rebase', - labels: [ - {pattern: 'squash commits', method: 'squash'}, - ], + labels: [{ pattern: 'squash commits', method: 'squash' }], }, claSignedLabel: 'cla: yes', mergeReadyLabel: /^action: merge(-assistance)?/, diff --git a/bin/README.md b/bin/README.md index 6f3d6c17fbd2..8995780c706b 100644 --- a/bin/README.md +++ b/bin/README.md @@ -6,11 +6,11 @@ Each file in this directory follows this pattern: 1. JavaScript only. 1. Requires `../lib/bootstrap-local.js` to bootstrap TypeScript and Node integration. -1. Requires `../lib/packages` and use the package metadata to find the binary script for the -package the script is bootstrapping. +1. Requires `../lib/packages` and use the package metadata to find the binary script for the + package the script is bootstrapping. 1. Call out main, or simply require the file if it has no export. -`devkit-admin` does not follow this pattern as it needs to setup logging and run some localized +`devkit-admin` does not follow this pattern as it needs to setup logging and run some localized logic. In order to add a new script, you should make sure it's in the root `package.json`, so people diff --git a/docs/README.md b/docs/README.md index a8f139c01847..1aa9fc8f9262 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,6 +1,6 @@ # `/docs` Folder -This folder is used for all documentation. It contains a number of subfolders with short +This folder is used for all documentation. It contains a number of subfolders with short descriptions here. ## `/docs/design` diff --git a/docs/design/analytics.md b/docs/design/analytics.md index 1658f5d4b91a..88fcd37b8247 100644 --- a/docs/design/analytics.md +++ b/docs/design/analytics.md @@ -1,20 +1,23 @@ # Usage Metrics Gathering + This document list exactly what is gathered and how. Any change to analytics should most probably include a change to this document. # Pageview + Each command creates a pageview with the path `/command/${commandName}/${subcommandName}`. IE. `ng generate component my-component --dryRun` would create a page view with the path `/command/generate/@schematics_angular/component`. We use page views to keep track of sessions more effectively, and to tag events to a page. -Project names and target names will be removed. +Project names and target names will be removed. The command `ng run some-project:lint:some-configuration` will create a page view with the path `/command/run`. # Dimensions + Google Analytics Custom Dimensions are used to track system values and flag values. These dimensions are aggregated automatically on the backend. @@ -37,6 +40,7 @@ PROJECT NAME TO BUILD OR A MODULE NAME.** Note: There's a limit of 20 custom dimensions. ### List Of All Dimensions + | Id | Flag | Type | |:---:|:---|:---| @@ -65,6 +69,7 @@ Note: There's a limit of 20 custom dimensions. # Metrics ### List of All Metrics + | Id | Flag | Type | |:---:|:---|:---| @@ -86,12 +91,14 @@ Note: There's a limit of 20 custom dimensions. # Operating System and Node Version + A User Agent string is built to "fool" Google Analytics into reading the Operating System and version fields from it. The base dimensions are used for those. Node version is our App ID, but a dimension is also used to get the numeric MAJOR.MINOR of node. # Debugging + Using `DEBUG=universal-analytics` will report all calls to the universal-analytics library, including queuing events and sending them to the server. @@ -105,6 +112,7 @@ Using `DEBUG=ng:analytics:log` will show what we actually send to GA. See [the `debug` NPM library](https://www.npmjs.com/package/debug) for more information. # Disabling Usage Analytics + There are 2 ways of disabling usage analytics: 1. using `ng analytics off` (or changing the global configuration file yourself). This is the same @@ -115,9 +123,10 @@ There are 2 ways of disabling usage analytics: below). # CI + A special user named `ci` is used for analytics for tracking CI information. This is a convention and is in no way enforced. Running on CI by default will disable analytics (because of a lack of TTY on STDIN/OUT). It can be manually enabled using either a global configuration with a value of `ci`, or using the -`NG_CLI_ANALYTICS=ci` environment variable. +`NG_CLI_ANALYTICS=ci` environment variable. diff --git a/docs/design/build-system.md b/docs/design/build-system.md index 93df444fa2ce..fe730f3f9fdd 100644 --- a/docs/design/build-system.md +++ b/docs/design/build-system.md @@ -8,6 +8,7 @@ This document describes a top level view of the functionality in `@angular-devki Deprecated or soon to be removed features are not described here. In broad strokes the main areas are: + - loading and processing sources - code splitting - production optimizations @@ -16,7 +17,6 @@ In broad strokes the main areas are: Many tools are used in this process, and most of these steps happen within a [Webpack](https://webpack.js.org/) build. We maintain a number of Webpack-centric plugins in this repository, some of these are public but most are private since they are very specific to our setup. - ## Overview diagram Below is a diagram of processing sources go through. @@ -31,7 +31,6 @@ Relative paths, such as `./raw-css-loader.ts`, refer to internal plugins, while Sources for Angular CLI browser apps are comprised of TypeScript files, style sheets, assets, scripts, and third party dependencies. A given build will load these sources from disk, process them, and bundle them together. - ### TypeScript and Ahead-Of-Time Compilation Angular builds rely heavily on TypeScript-specific functionality for [Ahead-of-Time template compilation](https://angular.io/guide/aot-compiler) (AOT). @@ -58,20 +57,17 @@ Global stylesheets are injected into the `index.html` file, while component styl The build system supports plain CSS stylesheets as well as the Sass, LESS and Stylus CSS pre-processors. Stylesheet processing functionality is provided by `sass-loader`, `less-loader`, `stylus-loader`, `postcss-loader`, `postcss-import`, augmented in the build system by custom webpack plugins. - ### Assets Assets in the build system refer specifically to a list of files or directories that are meant to be copied verbatim as build artifacts. These files are not processed and commonly include images, favicons, pdfs and other generic file types. They are loaded into the compilation using `copy-webpack-plugin`. - ### Scripts Scripts in the build system refer specifically to JavaScript files that are meant to be loaded directly on `index.html` without being processed. They are loaded into the compilation using a custom webpack plugin. - ### Third party dependencies Third party dependencies are mostly inside `node_modules` and are referenced via imports in source files. @@ -89,7 +85,6 @@ Once the actual JavaScript file is determined, it is loaded into the compilation This resolution strategy supports the [Angular Package Format](https://docs.google.com/document/d/1CZC2rcpxffTDfRDs6p1cfbmKNLA6x5O-NtkJglDaBVs/edit#heading=h.k0mh3o8u5hx). - ## Code splitting Code is automatically split into different files (or chunks, for js files) based on a few different triggers. @@ -102,13 +97,11 @@ If multiple asynchronous chunks contain a reference to the same module, it is pl There is also a special chunk called `runtime` that contains the module loading logic and is loaded before the others. - ## Optimizations The build system contains optimizations aimed at improving the performance (for development builds) or the size of artifacts (for production builds). These are often mutually exclusive and thus we cannot just default to always using them. - ### Development optimizations Development optimizations focus on reducing rebuild time on watched builds. @@ -125,7 +118,6 @@ In development however, we skip the CSS extraction and leave it as JavaScript co Watched builds split the processing load of TypeScript compilation between file emission on the main process and type checking on a forked process. Large projects can also opt-out of AOT compilation for faster rebuilds. - ### Production optimizations Angular CLI focuses on enabling tree-shaking (removing unused modules) and dead code elimination (removing unused module code). @@ -153,7 +145,6 @@ Modules that were concatenated when lazy modules are not present might not be co Aside from tree-shaking, scripts and styles (as defined in the sources above) also undergo optimizations via [Terser](https://github.com/terser/terser) and [CleanCSS](https://github.com/jakubpawlowicz/clean-css) respectively. - ## Post-processing steps There are some steps that are meant to operate over whole applications and thus happen after the compilation finishes and outputs files. @@ -161,29 +152,31 @@ The steps are described in the order in which they are executed during a build. The execution order was determined based on the complexity of the step with a primary goal of minimizing the repetition of computationally expensive operations. ### Differential Loading + Differential loading is a strategy that allows your web application to support multiple browsers, but only load the necessary code that the browser needs. When differential loading is enabled, the CLI generates two distinct variants of application bundles. -* The first contains ES2015 syntax, takes advantage of built-in support in modern browsers, ships fewer polyfills, and results in a smaller total size. -* The second contains code in the older ES5 syntax, along with all necessary polyfills for Angular to function. This results in a larger total size, but supports older browsers. +- The first contains ES2015 syntax, takes advantage of built-in support in modern browsers, ships fewer polyfills, and results in a smaller total size. +- The second contains code in the older ES5 syntax, along with all necessary polyfills for Angular to function. This results in a larger total size, but supports older browsers. This process as designed has the advantage that only one full compilation of the application in ES2015 syntax is required. This removes a large amount of otherwise unnecessary and duplicate processing such as module resolution and dead code elimination. It also guarantees that the application is ES5 compliant including third-party code. The two variants of application bundles are created by the following steps: -1) A full build of the application is performed using an ES2015 output target. -The application's global stylesheets, scripts, and assets are also processed during this step via the full build. These elements are reused for both of application variants. -2) A copy of the JavaScript output application files are transformed (commonly referred to as down-leveled) to ES5 compatible syntax. -ES2015+ syntax elements such as classes are converted into functionally equivalent ES5 code structures. -3) An additional ES5-only polyfills file is generated that contains the required Angular polyfills for ES5-only browsers. -4) A single index HTML file is created that references both application variants and is designed to only load the appropriate files for each browser. + +1. A full build of the application is performed using an ES2015 output target. + The application's global stylesheets, scripts, and assets are also processed during this step via the full build. These elements are reused for both of application variants. +2. A copy of the JavaScript output application files are transformed (commonly referred to as down-leveled) to ES5 compatible syntax. + ES2015+ syntax elements such as classes are converted into functionally equivalent ES5 code structures. +3. An additional ES5-only polyfills file is generated that contains the required Angular polyfills for ES5-only browsers. +4. A single index HTML file is created that references both application variants and is designed to only load the appropriate files for each browser. To support loading the file sets in the appropriate browsers, the HTML `script` element's `type` and `nomodule` attributes are leveraged. Browsers will only load a script with a known type. The ES2015 files are referenced using a type of `module` which is only supported on browsers that support ES2015+ code. Since browsers that do not support ES2015+ code also do not support the `module` script type, these scripts are ignored for browsers that cannot parse and execute the ES2015 code. Browsers that support the `module` script type also support the `nomodule` attribute. -This attribute instructs a browser that supports module scripts to ignore the script with the attribute. There is one browser exception in this case: Safari 10.1. +This attribute instructs a browser that supports module scripts to ignore the script with the attribute. There is one browser exception in this case: Safari 10.1. This browser supports module scripts but does not support the `nomodule` attribute. To support this case, a special polyfill script is included to provide a workaround for the browser. This arrangement of script elements ensures that ES5-only browsers will only execute the ES5 script files and browsers that support ES2015+ will only execute the ES2015 script files. @@ -198,4 +191,4 @@ This sort of localization produces one application for each locale, each in thei The third and last post-processing step is the creation of a [service worker](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API). A listing of final application files is taken, fingerprinted according to their content, and added to the service worker manifest. -This must be the last step because it needs each application file to not be modified further. \ No newline at end of file +This must be the last step because it needs each application file to not be modified further. diff --git a/docs/design/deployurl-basehref.md b/docs/design/deployurl-basehref.md index 160975423aeb..71a804c073e4 100644 --- a/docs/design/deployurl-basehref.md +++ b/docs/design/deployurl-basehref.md @@ -1,18 +1,18 @@ -| | Deploy URL | Base HREF | -|--|:--:|:--:| -| Initial scripts (index.html) | ✅ 👍 | ✅ 👍 | -| Initial stylesheets (index.html) | ✅ 👍 | ✅ 👍 | -| Lazy scripts (routes/import()/etc.) | ✅ 👍 | ✅ 👍 | -| Processed CSS resources (images/fonts/etc.) | ✅ 👍 | ✅ 👍 | -| Relative template (HTML) assets | ❌ 👎 | ✅ 👍 | -| Angular Router Default Base (APP_BASE_HREF) | ❌ | ✅ *1 | -| Single reference in deployed Application | ❌ 👎 | ✅ 👍 | -| Special resource logic within CLI | ✅ 👎 | ❌ 👍 | -| Relative fetch/XMLHttpRequest | ❌ | ✅ | +| | Deploy URL | Base HREF | +| ------------------------------------------- | :--------: | :-------: | +| Initial scripts (index.html) | ✅ 👍 | ✅ 👍 | +| Initial stylesheets (index.html) | ✅ 👍 | ✅ 👍 | +| Lazy scripts (routes/import()/etc.) | ✅ 👍 | ✅ 👍 | +| Processed CSS resources (images/fonts/etc.) | ✅ 👍 | ✅ 👍 | +| Relative template (HTML) assets | ❌ 👎 | ✅ 👍 | +| Angular Router Default Base (APP_BASE_HREF) | ❌ | ✅ \*1 | +| Single reference in deployed Application | ❌ 👎 | ✅ 👍 | +| Special resource logic within CLI | ✅ 👎 | ❌ 👍 | +| Relative fetch/XMLHttpRequest | ❌ | ✅ | ✅ - has/affects the item/trait ❌ - does not have/affect the item/trait 👍 - favorable behavior 👎 - unfavorable behavior -*1 -- Users with more complicated setups may need to manually configure the `APP_BASE_HREF` token within the application. (e.g., application routing base is `/` but assets/scripts/etc. are at `/assets/`) \ No newline at end of file +\*1 -- Users with more complicated setups may need to manually configure the `APP_BASE_HREF` token within the application. (e.g., application routing base is `/` but assets/scripts/etc. are at `/assets/`) diff --git a/docs/design/ngConfig.md b/docs/design/ngConfig.md index bfb7377a992a..17be6f3a0070 100644 --- a/docs/design/ngConfig.md +++ b/docs/design/ngConfig.md @@ -4,11 +4,11 @@ Currently, a project scaffolded with the CLI has no way of specifying options and configurations affecting their projects. There are ways to affect the build (with the `angular-cli-build.js` file), but the following questions cannot be answered without actual project options: -* Where in my directory is my karma.conf file? -* What is my firebase database URL? -* Where is my client code? -* How can I use a different lazy-loading boundary prefix (or none at all)? -* Any other backend I want to run prior to `ng serve`? +- Where in my directory is my karma.conf file? +- What is my firebase database URL? +- Where is my client code? +- How can I use a different lazy-loading boundary prefix (or none at all)? +- Any other backend I want to run prior to `ng serve`? # Proposed Solution @@ -18,7 +18,6 @@ One solution would be to keep the data in the `package.json`. Unfortunately, the Instead of polluting the package file, a `.angular-cli.json` file will be created that contains all the values. Access to that file will be allowed to the user if he knows the structure of the file (unknown keys will be kept but ignored), and it's easy to read and write. - ## Fallback There should be two `.angular-cli.json` files; one for the project and a general one. The general one should contain information that can be useful when scaffolding new apps, or informations about the user. @@ -39,7 +38,7 @@ Every PR that would change the schema should include the update to the `d.ts`. The new command `get` should be used to output values on the terminal. It takes a set of flags and an optional array of [paths](#path); -* `--glob` or `-g`; the path follows a glob format, where `*` can be replaced by any amount of characters and `?` by a single character. This will output `name=value` for each values matched. +- `--glob` or `-g`; the path follows a glob format, where `*` can be replaced by any amount of characters and `?` by a single character. This will output `name=value` for each values matched. Otherwise, outputs the value of the path passed in. If multiple paths are passed in, they follow the format of `name=value`. @@ -47,14 +46,14 @@ Otherwise, outputs the value of the path passed in. If multiple paths are passed The new command `set` should be used to set values in the local configuration file. It takes a set of flags and an optional array of `[path](#path)=value`; -* `--global`; sets the value in the global configuration. -* `--remove`; removes the key (no value should be passed in). +- `--global`; sets the value in the global configuration. +- `--remove`; removes the key (no value should be passed in). The schema needs to be taken into account when setting the value of the field; -* If the field is a number, the string received from the command line is parsed. `NaN` throws an error. -* If the field is an object, an error is thrown. -* If the path is inside an object but the object hasn't been defined yet, sets the object with empty values (use the schema to create a valid object). +- If the field is a number, the string received from the command line is parsed. `NaN` throws an error. +- If the field is an object, an error is thrown. +- If the path is inside an object but the object hasn't been defined yet, sets the object with empty values (use the schema to create a valid object). #### Path
@@ -77,8 +76,12 @@ A simple API would return the TypeScript interface: ```typescript class Config { // ... - get local(): ICliConfig { /* ... */ } - get global(): ICliConfig { /* ... */ } + get local(): ICliConfig { + /* ... */ + } + get global(): ICliConfig { + /* ... */ + } } ``` @@ -115,14 +118,14 @@ The following stands true: ```typescript const config = new Config(/* ... */); -console.log(config.local.key1.key2.value); // 0, even if it doesn't exist. -console.log(config.local.key1.key2.value2); // 2, local overrides. -console.log(config.local.key1.key2.value3); // 3. -console.log(config.local.key1.key2.value4); // Schema's default value. +console.log(config.local.key1.key2.value); // 0, even if it doesn't exist. +console.log(config.local.key1.key2.value2); // 2, local overrides. +console.log(config.local.key1.key2.value3); // 3. +console.log(config.local.key1.key2.value4); // Schema's default value. -console.log(config.global.key1.key2.value); // 0. -console.log(config.global.key1.key2.value2); // 1, only global. -console.log(config.global.key1.key2.value3); // Schema's default value. +console.log(config.global.key1.key2.value); // 0. +console.log(config.global.key1.key2.value2); // 1, only global. +console.log(config.global.key1.key2.value3); // Schema's default value. config.local.key1.key2.value = 1; // Now the value is 1 inside the local. Global stays the same. @@ -132,7 +135,7 @@ config.local.key1.key2.value3 = 5; config.global.key1.key2.value4 = 99; // The local config stays the same. -console.log(config.local.key1.key2.value4); // 99, the global value. +console.log(config.local.key1.key2.value4); // 99, the global value. -config.save(); // Commits if there's a change to global and/or local. +config.save(); // Commits if there's a change to global and/or local. ``` diff --git a/docs/design/third-party-libraries.md b/docs/design/third-party-libraries.md index 0428efe62832..69ac6a7c8de5 100644 --- a/docs/design/third-party-libraries.md +++ b/docs/design/third-party-libraries.md @@ -10,18 +10,18 @@ with metadata that we expect. This document explores ways to improve on the proc The following use cases need to be supported by `ng install`: 1. Support for _any_ thirdparties, ultimately falling back to running `npm install` only and -doing nothing else, if necessary. + doing nothing else, if necessary. 1. Not a new package manager. 1. Metadata storage by thirdparties in `package.json`. This must be accessible by plugins for -the build process or even when scaffolding. + the build process or even when scaffolding. 1. Proper configuration of SystemJs in the browser. 1. SystemJS configuration managed by the user needs to be kept separated from the autogenerated -part. + part. 1. The build process right now is faulty because the `tmp/` directory used by Broccoli is -inside the project. TypeScript when using `moduleResolution: "node"` can resolve the -`node_modules` directory (since it's in an ancestor folder), which means that TypeScript -compiles properly, but the build does not copy files used by TypeScript to `dist/`. We need -to proper map the imports and move them to `tmp` before compiling, then to `dist/` properly. + inside the project. TypeScript when using `moduleResolution: "node"` can resolve the + `node_modules` directory (since it's in an ancestor folder), which means that TypeScript + compiles properly, but the build does not copy files used by TypeScript to `dist/`. We need + to proper map the imports and move them to `tmp` before compiling, then to `dist/` properly. 1. Potentially hook into scaffolding. 1. Potentially hook into the build. 1. Safe uninstall path. @@ -34,27 +34,32 @@ Here's a few stories that should work right off: $ ng new my-app && cd my-app/ $ ng install jquery ``` + ^(this makes jQuery available in the index) ```sh $ ng install angularfire2 > Please specify your Firebase database URL [my-app.firebaseio.com]: _ ``` + ^(makes firebase available and provided to the App) ```sh $ ng install angularfire2 --dbUrl=my-firebase-db.example.com ``` + ^(skip prompts for values passed on the command line) ```sh $ ng install angularfire2 --quiet ``` + ^(using `--quiet` to skip all prompts and use default values) ```sh $ ng install less ``` + ^(now compiles CSS files with less for the appropriate extensions) # Proposed Solution @@ -80,13 +85,16 @@ The `install` task will perform the following subtasks: These packages can be used to wrap libraries that we want to support but can't update easily, like Jasmine or LESS. + 1. **Install typings.** See the [Typings](#typings) section. 1. **Run `postinstall` scripts.** # Proof of Concept + A proof of concept is being developed. # Hooks + The third party library can implement hooks into the scaffolding, and the build system. The CLI's tasks will look for the proper hooks prior to running and execute them. @@ -96,12 +104,14 @@ checking for the `package['angular-cli']['hooks']['${hookName}']`. The hooks are tree, there is no guarantee for the order of execution. ## Install Hooks + The only tricky part here is install hooks. The installed package should recursively call its `(pre|post|)install` hooks only on packages that are newly installed. It should call `(pre|post|)reinstall` on those who were already installed. A map of the currently installed packages should be kept before performing `npm install`. # appData + The `angular-cli` key in the generated app should be used for Angular CLI specific data. This includes the CLI configuration itself, as well as third-parties library configuration. @@ -137,11 +147,12 @@ in the data without user interaction. The special strings `${...}` can be used t with special values in the default string values. The values are taken from the `package.json`. We use a declarative style to enforce sensible defaults and make sure developers think about -this. *In the case where developers want more complex interaction, they can use the -install/uninstall hooks to prompt users.* But 3rd party libraries developers need to be aware +this. _In the case where developers want more complex interaction, they can use the +install/uninstall hooks to prompt users._ But 3rd party libraries developers need to be aware that those hooks might not prompt users (no STDIN) and throw an error. # Providers + Adding Angular providers to the app should be seamless. The install process will create a `providers.js` from all the providers contained in all the dependencies. The User can disclude providers it doesn't want. @@ -163,15 +174,18 @@ ng providers database angularfirebase2 Or, alternatively, the user can add its own providers and dependencies to its components. # Dependencies + Because dependencies are handled by `npm`, we don't have to handle it. # Typings + Typings should be added, but failure to find typings should not be a failure of installation. The user might still want to install custom typings himself in the worst case. The `typings` package can be used to install/verify that typings exist. If the typings do not exist natively, we should tell the user to install the ambient version if he wants to. # Index.html + We do not touch the `index.html` file during the installation task. The default page should link to a SystemJS configuration file that is auto generated by the CLI and not user configurable (see SystemJS below). If the user install a third party library, like jQuery, and @@ -181,6 +195,7 @@ The `index.html` also includes a section to configure SystemJS that can be manag This is separate from the generated code. # SystemJS + It is important that SystemJS works without any modifications by the user. It is also important to leave the liberty to the user to change the SystemJS configuration so that it fits their needs. @@ -190,6 +205,7 @@ being pulled from a CDN in production. During the `ng build` process for product SystemJS configuration script will be rebuilt to fetch from the CDN. # Upgrade Strategy + The upgrade process simply uses NPM. If new appData is added, it should be added manually using a migration hook for `postinstall`. diff --git a/docs/process/bazel.md b/docs/process/bazel.md index fb540e7b61ea..fe136061fe25 100644 --- a/docs/process/bazel.md +++ b/docs/process/bazel.md @@ -52,7 +52,6 @@ Then you will find the intermediate test files in `bazel-out/k8-fastbuild/bin`, Tests that are sharded, via the `shard_count` attribute, can fail if you reduce the number of tests or focus only a few. This will cause some shards to execute 0 tests, which makes the exit with an error code. - Tests that are marked as flaky, via the `flaky` attribute, will repeat when they fail. This will cause any focused test to be repeated multiple time, since the presence of focused tests causes jasmine to exit with a non-zero exit code. @@ -67,4 +66,3 @@ with the yarn workspace symlinks in node_modules. 1. Yarn workspaces is not compatible with Bazel-managed deps [(#12736)](https://github.com/angular/angular-cli/issues/12736) - diff --git a/docs/process/release.md b/docs/process/release.md index 1be2420ecec3..f9dd8b3f40dc 100644 --- a/docs/process/release.md +++ b/docs/process/release.md @@ -2,9 +2,10 @@ 1. Clone the Angular-CLI repo. A local copy works just fine. 1. Create an upstream remote: - ```bash - $ git remote add upstream https://github.com/angular/angular-cli.git - ``` + +```bash +$ git remote add upstream https://github.com/angular/angular-cli.git +``` # Caretaker @@ -16,21 +17,22 @@ Each shift consists of two caretakers. The primary caretaker is responsible for merging PRs to master and patch whereas the secondary caretaker is responsible for the release. Primary-secondary pairs are as follows: -Primary | Secondary ---------|---------- -Alan | Doug -Charles | Keen -Filipe | Joey +| Primary | Secondary | +| ------- | --------- | +| Alan | Doug | +| Charles | Keen | +| Filipe | Joey | ## Merging PRs The list of PRs which are currently ready to merge (approved with passing status checks) can be found with [this search](https://github.com/angular/angular-cli/pulls?q=is%3Apr+is%3Aopen+label%3A%22PR+action%3A+merge%22+-is%3Adraft). This list should be checked daily and any ready PRs should be merged. For each PR, check the -`target` label to understand where it should be merged to. You can find which branches a specific +`target` label to understand where it should be merged to. You can find which branches a specific PR will be merged into with the `yarn ng-dev pr check-target-branches ` command. When ready to merge a PR, run the following command: + ``` yarn ng-dev pr merge ``` @@ -85,7 +87,7 @@ git push upstream --follow-tags **This can ONLY be done by a Google employee.** Log in to the Wombat publishing service using your own github and google.com -account to publish. This enforces the login is done using 2Factor auth. +account to publish. This enforces the login is done using 2Factor auth. Run `npm login --registry https://wombat-dressing-room.appspot.com`: @@ -107,12 +109,14 @@ For the first release of a major version, follow the instructions in [Publishing a Major Version](#publishing-a-major-version) section. For non-major release, check out the patch branch (e.g. `9.1.x`), then run: + ```bash rm -rf node_modules/ && yarn install --frozen-lockfile # Reload dependencies yarn admin publish --tag latest ``` If also publishing a prerelease, check out `master`, then run: + ```bash rm -rf node_modules/ && yarn install --frozen-lockfile # Reload dependencies yarn admin publish --tag next @@ -153,7 +157,7 @@ using the `--githubToken` flag. You just then have to confirm the draft. **For each released version**: -Update `version` in root [`package.json`](/package.json#L3) to the *next* release version. +Update `version` in root [`package.json`](/package.json#L3) to the _next_ release version. ```sh git checkout -b release-bump-vXX diff --git a/docs/specifications/schematic-prompts.md b/docs/specifications/schematic-prompts.md index 08092ef20235..a7c83e6e6d94 100644 --- a/docs/specifications/schematic-prompts.md +++ b/docs/specifications/schematic-prompts.md @@ -1,8 +1,8 @@ # Schematic Prompts -Schematic prompts provide the ability to introduce user interaction into the schematic execution. The schematic runtime supports the ability to allow schematic options to be configured to display a customizable question to the user and then use the response as the value for the option. These prompts are displayed before the execution of the schematic. This allows users direct the operation of the schematic without requiring indepth knowledge of the full spectrum of options available to the user. +Schematic prompts provide the ability to introduce user interaction into the schematic execution. The schematic runtime supports the ability to allow schematic options to be configured to display a customizable question to the user and then use the response as the value for the option. These prompts are displayed before the execution of the schematic. This allows users direct the operation of the schematic without requiring indepth knowledge of the full spectrum of options available to the user. -To enable this capability, the JSON Schema used to define the schematic's options supports extensions to allow the declarative definition of the prompts and their respective behavior. No additional logic or changes are required to the JavaScript for a schematic to support the prompts. +To enable this capability, the JSON Schema used to define the schematic's options supports extensions to allow the declarative definition of the prompts and their respective behavior. No additional logic or changes are required to the JavaScript for a schematic to support the prompts. ## Basic Usage @@ -10,67 +10,69 @@ To illustrate the addition of a prompt to an existing schematic the following ex ```json { - "properties": { - "name": { - "type": "string", - "minLength": 1, - "default": "world" - }, - "useColor": { - "type": "boolean" - } + "properties": { + "name": { + "type": "string", + "minLength": 1, + "default": "world" + }, + "useColor": { + "type": "boolean" } + } } ``` -Suppose it would be preferred if the user was asked for their name. This can be accomplished by augmenting the `name` property definition with an `x-prompt` field. +Suppose it would be preferred if the user was asked for their name. This can be accomplished by augmenting the `name` property definition with an `x-prompt` field. + ```json "x-prompt": "What is your name?" ``` -In most cases, only the text of the prompt is required. To minimize the amount of necessary configuration, the above _shorthand_ form is supported and will typically be all that is required. Full details regarding the _longhand_ form can be found in the **Configuration Reference** section. -Adding a prompt to allow the user to decided whether the schematic will use color when executing its hello action is also very similar. The schema with both prompts would be as follows: +In most cases, only the text of the prompt is required. To minimize the amount of necessary configuration, the above _shorthand_ form is supported and will typically be all that is required. Full details regarding the _longhand_ form can be found in the **Configuration Reference** section. + +Adding a prompt to allow the user to decided whether the schematic will use color when executing its hello action is also very similar. The schema with both prompts would be as follows: + ```json { - "properties": { - "name": { - "type": "string", - "minLength": 1, - "default": "world", - "x-prompt": "What is your name?" - }, - "useColor": { - "type": "boolean", - "x-prompt": "Would you like the response in color?" - } + "properties": { + "name": { + "type": "string", + "minLength": 1, + "default": "world", + "x-prompt": "What is your name?" + }, + "useColor": { + "type": "boolean", + "x-prompt": "Would you like the response in color?" } + } } ``` Prompts have several different types which provide the ability to display an input method that best represents the schematic option's potential values. -* `confirmation` - A **yes** or **no** question; ideal for boolean options -* `input` - textual input; ideal for string or number options -* `list` - a predefined set of items which may be selected +- `confirmation` - A **yes** or **no** question; ideal for boolean options +- `input` - textual input; ideal for string or number options +- `list` - a predefined set of items which may be selected -When using the _shorthand_ form, the most appropriate type will automatically be selected based on the property's schema. In the example, the `name` prompt will use an `input` type because it it is a `string` property. The `useColor` prompt will use a `confirmation` type because it is a boolean property with `yes` corresponding to `true` and `no` corresponding to `false`. +When using the _shorthand_ form, the most appropriate type will automatically be selected based on the property's schema. In the example, the `name` prompt will use an `input` type because it it is a `string` property. The `useColor` prompt will use a `confirmation` type because it is a boolean property with `yes` corresponding to `true` and `no` corresponding to `false`. -It is also important that the response from the user conforms to the contraints of the property. By specifying constraints using the JSON schema, the prompt runtime will automatically validate the response provided by the user. If the value is not acceptable, the user will be asked to enter a new value. This ensures that any values passed to the schematic will meet the expectations of the schematic's implementation and removes the need to add additional checks within the schematic's code. +It is also important that the response from the user conforms to the contraints of the property. By specifying constraints using the JSON schema, the prompt runtime will automatically validate the response provided by the user. If the value is not acceptable, the user will be asked to enter a new value. This ensures that any values passed to the schematic will meet the expectations of the schematic's implementation and removes the need to add additional checks within the schematic's code. -## Configuration Reference +## Configuration Reference -The `x-prompt` field supports two alternatives to enable a prompt for a schematic option. A shorthand form when additional customization is not required and a longhand form providing the ability for more control over the prompt. All user responses are validated against the property's schema. For example, string type properties can use a minimum length or regular expression constraint to control the allowed values. In the event the response fails validation, the user will be asked to enter a new value. +The `x-prompt` field supports two alternatives to enable a prompt for a schematic option. A shorthand form when additional customization is not required and a longhand form providing the ability for more control over the prompt. All user responses are validated against the property's schema. For example, string type properties can use a minimum length or regular expression constraint to control the allowed values. In the event the response fails validation, the user will be asked to enter a new value. ### Longhand Form -In the this form, the `x-prompt` field is an object with subfields that can be used to customize the behavior of the prompt. Note that some fields only apply to specific prompt types. - -| Field | Data Value | Default | -|-|-|-| -| `type` | `confirmation`, `input`, `list` | see shorthand section for details -| `message` | string | N/A (required) -| `items` | string and/or `label`/`value` object pair | only valid with type `list` +In the this form, the `x-prompt` field is an object with subfields that can be used to customize the behavior of the prompt. Note that some fields only apply to specific prompt types. +| Field | Data Value | Default | +| --------- | ----------------------------------------- | --------------------------------- | +| `type` | `confirmation`, `input`, `list` | see shorthand section for details | +| `message` | string | N/A (required) | +| `items` | string and/or `label`/`value` object pair | only valid with type `list` | ### Shorthand Form @@ -78,44 +80,44 @@ In the this form, the `x-prompt` field is an object with subfields that can be u For this usage, the type of the prompt is determined by the type of the containing property. -| Property Schema | Prompt Type | Notes | -|-|:-:|:-:| -| `"type": "boolean"` | `confirmation` | | -| `"type": "string"` | `input` | | -| `"type": "number"` | `input` | only valid numbers accepted | -| `"type": "integer"` | `input` | only valid numbers accepted | -| `"enum": [...]` | `list` | enum members become list selections +| Property Schema | Prompt Type | Notes | +| ------------------- | :------------: | :---------------------------------: | +| `"type": "boolean"` | `confirmation` | | +| `"type": "string"` | `input` | | +| `"type": "number"` | `input` | only valid numbers accepted | +| `"type": "integer"` | `input` | only valid numbers accepted | +| `"enum": [...]` | `list` | enum members become list selections | ### `x-prompt` Schema ```json { - "oneOf": [ - { "type": "string" }, - { - "type": "object", - "properties": { - "type": { "type": "string" }, - "message": { "type": "string" }, - "items": { - "type": "array", - "items": { - "oneOf": [ - { "type": "string" }, - { - "type": "object", - "properties": { - "label": { "type": "string" }, - "value": { } - }, - "required": [ "value" ] - } - ] - } - } - }, - "required": [ "message" ] + "oneOf": [ + { "type": "string" }, + { + "type": "object", + "properties": { + "type": { "type": "string" }, + "message": { "type": "string" }, + "items": { + "type": "array", + "items": { + "oneOf": [ + { "type": "string" }, + { + "type": "object", + "properties": { + "label": { "type": "string" }, + "value": {} + }, + "required": ["value"] + } + ] + } } - ] + }, + "required": ["message"] + } + ] } -``` \ No newline at end of file +``` diff --git a/docs/specifications/update.md b/docs/specifications/update.md index da02a01a7cac..00f1d3f2819b 100644 --- a/docs/specifications/update.md +++ b/docs/specifications/update.md @@ -1,4 +1,3 @@ - # Update Command `ng update` is a new command in the CLI to update one or multiple packages, its peer dependencies, and the peer dependencies that depends on it. @@ -11,16 +10,16 @@ If there are inconsistencies, for example if peer dependencies cannot be matches ng update [options] ``` -You can specify more than one package. Each package follows the convention of `[@scope/]packageName[@version-range-or-dist-tag]`. Packages not found in your dependencies will trigger an error. Any package that has a higher version in your `package.json` will trigger an error. +You can specify more than one package. Each package follows the convention of `[@scope/]packageName[@version-range-or-dist-tag]`. Packages not found in your dependencies will trigger an error. Any package that has a higher version in your `package.json` will trigger an error. -| Flag | Argument | Description | -|---|---|---| -| `--all` | `boolean` | If true, implies that all dependencies should be updated. Defaults is false, using dependencies from the command line instead. | -| `--force` | `boolean` | If true, skip the verification step and perform the update even if some peer dependencies would be invalidated. Peer dependencies errors will still be shown as warning. Defaults to false. | -| `--next` | `boolean` | If true, allows version discovery to include Beta and RC. Defaults to false. | -| `--migrate-only` | `boolean` | If true, don't change the `package.json` file, only apply migration scripts. | -| `--from` | `version` | Apply migrations from a certain version number. | -| `--to` | `version` | Apply migrations up to a certain version number (inclusive). By default will update to the installed version. | +| Flag | Argument | Description | +| ---------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `--all` | `boolean` | If true, implies that all dependencies should be updated. Defaults is false, using dependencies from the command line instead. | +| `--force` | `boolean` | If true, skip the verification step and perform the update even if some peer dependencies would be invalidated. Peer dependencies errors will still be shown as warning. Defaults to false. | +| `--next` | `boolean` | If true, allows version discovery to include Beta and RC. Defaults to false. | +| `--migrate-only` | `boolean` | If true, don't change the `package.json` file, only apply migration scripts. | +| `--from` | `version` | Apply migrations from a certain version number. | +| `--to` | `version` | Apply migrations up to a certain version number (inclusive). By default will update to the installed version. | ## Details @@ -28,39 +27,37 @@ The schematic performs the following steps, in order: 1. Get all installed package names and versions from the `package.json` into `dependencyMap: Map`. 1. From that map, fetch all `package.json` from the NPM repository, which contains all versions, and gather them in a `Map`. - 1. At the same time, update the `Map<>` with the version of the package which is believed to be installed (largest version number matching the version range). - 1. **WARNING**: this might not be the exact installed versions, unfortunately. We should have a proper `package-lock.json` loader, and support `yarn.lock` as well, but these are stretch goals (and where do we stop). -1. For each packages mentioned on the command line, update to the target version (by default largest non-beta non-rc version): - - ```python - # ARGV The packages being requested by the user. - # NPM A map of package name to a map of version to PackageJson structure. - # V A map of package name to available versions. - # PKG A map of package name to PackageJson structure, for the installed versions. - # next A flag for the "--next" command line argument. - - # First add all updating packages' peer dependencies. This should be recursive but simplified - # here for readability. - ARGV += [ NPM[p][max([ v for v in V[p] if (not is_beta(v) or next) ])].peerDependencies - for p in ARGV ] - - for p in ARGV: - x = max([ v for v in V[p] if (not is_beta(v) or next) ]) - - for other in set(PKG.keys()) - set([ p ]): - # Verify all packages' peer dependencies. - if has(other.peerDependencies, p) and !compatible(x, other.peerDependencies[p]): - showError('Cannot update dependency "%s": "%s" is incompatible with the updated dependency' % (x, other)) - - if any( has(other.peerDependencies, peer) and !compatible(x, other.peerDependencies[peer]) - for peer in PKG[p].peerDependencies.keys() ): - showError('Cannot update dependency "%s": "%s" depends on an incompatible peer dependency' % (x, other)) - - update_package_json(p, x) +1. At the same time, update the `Map<>` with the version of the package which is believed to be installed (largest version number matching the version range). +1. **WARNING**: this might not be the exact installed versions, unfortunately. We should have a proper `package-lock.json` loader, and support `yarn.lock` as well, but these are stretch goals (and where do we stop). +1. For each packages mentioned on the command line, update to the target version (by default largest non-beta non-rc version): + +```python +# ARGV The packages being requested by the user. +# NPM A map of package name to a map of version to PackageJson structure. +# V A map of package name to available versions. +# PKG A map of package name to PackageJson structure, for the installed versions. +# next A flag for the "--next" command line argument. + +# First add all updating packages' peer dependencies. This should be recursive but simplified +# here for readability. +ARGV += [ NPM[p][max([ v for v in V[p] if (not is_beta(v) or next) ])].peerDependencies + for p in ARGV ] + +for p in ARGV: + x = max([ v for v in V[p] if (not is_beta(v) or next) ]) + + for other in set(PKG.keys()) - set([ p ]): + # Verify all packages' peer dependencies. + if has(other.peerDependencies, p) and !compatible(x, other.peerDependencies[p]): + showError('Cannot update dependency "%s": "%s" is incompatible with the updated dependency' % (x, other)) + + if any( has(other.peerDependencies, peer) and !compatible(x, other.peerDependencies[peer]) + for peer in PKG[p].peerDependencies.keys() ): + showError('Cannot update dependency "%s": "%s" depends on an incompatible peer dependency' % (x, other)) + + update_package_json(p, x) ``` - - ## Library Developers Libraries are responsible for defining their own update schematics. The `ng update` tool will update the package.json, and if it detects the `"ng-update"` key in package.json of the library, will run the update schematic on it (with version information metadata). @@ -71,14 +68,15 @@ If a library does not define the `"ng-update"` key in their package.json, they a In order to implement migrations in a library, the author must add the `ng-update` key to its `package.json`. This key contains the following fields: -| Field Name | Type | Description | -|---|---|---| -| `requirements` | `{ [packageName: string]: VersionRange }` | A map of package names to version to check for minimal requirement. If one of the libraries listed here does not match the version range specified in `requirements`, an error will be shown to the user to manually update those libraries. For example, `@angular/core` does not support updates from versions earlier than 5, so this field would be `{ '@angular/core': '>= 5' }`. -| `migrations` | `string` | A relative path (or resolved using Node module resolution) to a Schematics collection definition. | -| `packageGroup` | `string[]` | A list of npm packages that are to be grouped together. When running the update schematic it will automatically include all packages as part of the packageGroup in the update (if the user also installed them). | -| `packageGroupName` | `string` | The name of the packageGroup to use. By default, uses the first package in the packageGroup. The packageGroupName needs to be part of the packageGroup and should be a valid package name. | +| Field Name | Type | Description | +| ------------------ | ----------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `requirements` | `{ [packageName: string]: VersionRange }` | A map of package names to version to check for minimal requirement. If one of the libraries listed here does not match the version range specified in `requirements`, an error will be shown to the user to manually update those libraries. For example, `@angular/core` does not support updates from versions earlier than 5, so this field would be `{ '@angular/core': '>= 5' }`. | +| `migrations` | `string` | A relative path (or resolved using Node module resolution) to a Schematics collection definition. | +| `packageGroup` | `string[]` | A list of npm packages that are to be grouped together. When running the update schematic it will automatically include all packages as part of the packageGroup in the update (if the user also installed them). | +| `packageGroupName` | `string` | The name of the packageGroup to use. By default, uses the first package in the packageGroup. The packageGroupName needs to be part of the packageGroup and should be a valid package name. | #### Example given: + Library my-lib wants to have 2 steps to update from version 4 -> 4.5 and 4.5 to 5. It would add this information in its `package.json`: ```json @@ -150,10 +148,11 @@ There might be additional packages that are outdated. I have a dependency on Angular, Material and CLI. I want to update the CLI, then Angular, then Material in separate steps. #### Details + 1. `ng update @angular/cli`. -Updates the CLI and packages that have a peer dependencies on the CLI (none), running refactoring tools from CLI 1 to 6. + Updates the CLI and packages that have a peer dependencies on the CLI (none), running refactoring tools from CLI 1 to 6. 1. `ng update @angular/core`. -Updates the Core package and all packages that have a peer dependency on it. This can get tricky if `@angular/material` get caught in the update because the version installed does not directly allow the new version of `@angular/core`. In this case + Updates the Core package and all packages that have a peer dependency on it. This can get tricky if `@angular/material` get caught in the update because the version installed does not directly allow the new version of `@angular/core`. In this case ### Complex Case @@ -182,10 +181,9 @@ ng update @angular/material ``` - update `@angular/material` to latest version, that should be compatible with the current `@angular/core`. -- if that version is not compatible with you +- if that version is not compatible with you - tell the user about a higher version that requires an update to `@angular/core`. - ## Notes 1. if someone is on CLI 1.5, the command is not supported. The user needs to update to `@angular/cli@latest`, then `ng update @angular/cli`. Post install hook will check versions of cli configuration and show a message to run the `ng update` command. diff --git a/etc/api/angular_devkit/architect/src/index.d.ts b/etc/api/angular_devkit/architect/src/index.d.ts index ec27026f5791..d0a373871592 100644 --- a/etc/api/angular_devkit/architect/src/index.d.ts +++ b/etc/api/angular_devkit/architect/src/index.d.ts @@ -13,7 +13,7 @@ export interface BuilderContext { logger: logging.LoggerApi; target?: Target; workspaceRoot: string; - addTeardown(teardown: () => (Promise | void)): void; + addTeardown(teardown: () => Promise | void): void; getBuilderNameForTarget(target: Target): Promise; getProjectMetadata(projectName: string): Promise; getProjectMetadata(target: Target): Promise; @@ -44,10 +44,10 @@ export declare type BuilderOutputLike = AsyncIterable | Subscriba export declare type BuilderProgress = json.JsonObject & RealBuilderProgress & TypedBuilderProgress; -export declare type BuilderProgressReport = BuilderProgress & ({ +export declare type BuilderProgressReport = BuilderProgress & { target?: Target; builder: BuilderInfo; -}); +}; export declare type BuilderRegistry = experimental.jobs.Registry; @@ -79,7 +79,7 @@ export declare function targetFromTargetString(str: string): Target; export declare function targetStringFromTarget({ project, target, configuration }: Target): string; -export declare type TypedBuilderProgress = ({ +export declare type TypedBuilderProgress = { state: BuilderProgressState.Stopped; } | { state: BuilderProgressState.Error; @@ -92,4 +92,4 @@ export declare type TypedBuilderProgress = ({ status?: string; current: number; total?: number; -}); +}; diff --git a/etc/api/angular_devkit/core/src/_golden-api.d.ts b/etc/api/angular_devkit/core/src/_golden-api.d.ts index 10390f0ff530..35a04b710a1e 100644 --- a/etc/api/angular_devkit/core/src/_golden-api.d.ts +++ b/etc/api/angular_devkit/core/src/_golden-api.d.ts @@ -596,7 +596,7 @@ export declare class PartiallyOrderedSet implements Set { get size(): number; [Symbol.iterator](): Generator; protected _checkCircularDependencies(item: T, deps: Set): void; - add(item: T, deps?: (Set | T[])): this; + add(item: T, deps?: Set | T[]): this; clear(): void; delete(item: T): boolean; entries(): IterableIterator<[T, T]>; diff --git a/lib/bootstrap-local.js b/lib/bootstrap-local.js index c377a4b67152..c6441e56f47d 100644 --- a/lib/bootstrap-local.js +++ b/lib/bootstrap-local.js @@ -27,7 +27,7 @@ debugLocal('starting bootstrap local'); // This processes any extended configs const compilerOptions = ts.getParsedCommandLineOfConfigFile( path.join(__dirname, '../tsconfig-test.json'), - { }, + {}, ts.sys, ).options; @@ -38,8 +38,10 @@ if (process.env['DEVKIT_PROFILING']) { try { profiler = require('v8-profiler-node8'); } catch (err) { - throw new Error(`Could not require 'v8-profiler-node8'. You must install it separetely with` + - `'npm install v8-profiler-node8 --no-save.\n\nOriginal error:\n\n${err}`); + throw new Error( + `Could not require 'v8-profiler-node8'. You must install it separetely with` + + `'npm install v8-profiler-node8 --no-save.\n\nOriginal error:\n\n${err}`, + ); } profiler.startProfiling(); @@ -73,7 +75,6 @@ if (process.env['DEVKIT_LONG_STACK_TRACE']) { global._DevKitIsLocal = true; global._DevKitRoot = path.resolve(__dirname, '..'); - const oldRequireTs = require.extensions['.ts']; require.extensions['.ts'] = function (m, filename) { // If we're in node module, either call the old hook or simply compile the @@ -105,7 +106,6 @@ require.extensions['.ts'] = function (m, filename) { } }; - require.extensions['.ejs'] = function (m, filename) { debugBuildEjs(filename); @@ -121,7 +121,6 @@ const builtinModules = Object.keys(process.binding('natives')); const packages = require('./packages').packages; // If we're running locally, meaning npm linked. This is basically "developer mode". if (!__dirname.match(new RegExp(`\\${path.sep}node_modules\\${path.sep}`))) { - // We mock the module loader so that we can fake our packages when running locally. const Module = require('module'); const oldLoad = Module._load; @@ -144,7 +143,7 @@ if (!__dirname.match(new RegExp(`\\${path.sep}node_modules\\${path.sep}`))) { } else if (resolved && resolved.match(/[\\\/]node_modules[\\\/]/)) { return resolved; } else { - const match = Object.keys(packages).find(pkgName => request.startsWith(pkgName + '/')); + const match = Object.keys(packages).find((pkgName) => request.startsWith(pkgName + '/')); if (match) { const p = path.join(packages[match].root, request.substr(match.length)); return oldResolve.call(this, p, parent); @@ -169,7 +168,10 @@ if (!__dirname.match(new RegExp(`\\${path.sep}node_modules\\${path.sep}`))) { // This script has the be synchronous, so we spawnSync instead of, say, requiring the runner and calling // the method directly. - const tmpJsonSchemaPath = path.join(tmpRoot, maybeTsPath.replace(/[^0-9a-zA-Z.]/g, '_')); + const tmpJsonSchemaPath = path.join( + tmpRoot, + maybeTsPath.replace(/[^0-9a-zA-Z.]/g, '_'), + ); try { if (!fs.existsSync(tmpJsonSchemaPath)) { const quicktypeRunnerPath = path.join(__dirname, '../tools/quicktype_runner.js'); diff --git a/lib/packages.ts b/lib/packages.ts index b4b35784fcfc..cbedc40cb958 100644 --- a/lib/packages.ts +++ b/lib/packages.ts @@ -17,11 +17,10 @@ import * as ts from 'typescript'; const distRoot = path.join(__dirname, '../dist'); const { packages: monorepoPackages } = require('../.monorepo.json'); - export interface PackageInfo { name: string; root: string; - bin: { [name: string]: string}; + bin: { [name: string]: string }; relative: string; main: string; dist: string; @@ -41,7 +40,6 @@ export interface PackageInfo { } export type PackageMap = { [name: string]: PackageInfo }; - export function loadRootPackageJson() { return require('../package.json'); } @@ -77,11 +75,12 @@ function loadPackageJson(p: string) { case 'keywords': const a = pkg[key] || []; const b = Object.keys( - root[key].concat(a).reduce((acc: {[k: string]: boolean}, curr: string) => { + root[key].concat(a).reduce((acc: { [k: string]: boolean }, curr: string) => { acc[curr] = true; return acc; - }, {})); + }, {}), + ); pkg[key] = b; break; @@ -103,54 +102,53 @@ function loadPackageJson(p: string) { return pkg; } - function _findAllPackageJson(dir: string, exclude: RegExp): string[] { const result: string[] = []; - fs.readdirSync(dir) - .forEach(fileName => { - const p = path.join(dir, fileName); - - if (exclude.test(p)) { - return; - } else if (/[\/\\]node_modules[\/\\]/.test(p)) { - return; - } else if (fileName == 'package.json') { - result.push(p); - } else if (fs.statSync(p).isDirectory() && fileName != 'node_modules') { - result.push(..._findAllPackageJson(p, exclude)); - } - }); + fs.readdirSync(dir).forEach((fileName) => { + const p = path.join(dir, fileName); + + if (exclude.test(p)) { + return; + } else if (/[\/\\]node_modules[\/\\]/.test(p)) { + return; + } else if (fileName == 'package.json') { + result.push(p); + } else if (fs.statSync(p).isDirectory() && fileName != 'node_modules') { + result.push(..._findAllPackageJson(p, exclude)); + } + }); return result; } - const tsConfigPath = path.join(__dirname, '../tsconfig.json'); const tsConfig = ts.readConfigFile(tsConfigPath, ts.sys.readFile); -const pattern = '^(' - + (tsConfig.config.exclude as string[]) - .map(ex => path.join(path.dirname(tsConfigPath), ex)) - .map(ex => '(' - + ex - .replace(/[\-\[\]{}()+?./\\^$|]/g, '\\$&') - .replace(/(\\\\|\\\/)\*\*/g, '((\/|\\\\).+?)?') - .replace(/\*/g, '[^/\\\\]*') - + ')') - .join('|') - + ')($|/|\\\\)'; +const pattern = + '^(' + + (tsConfig.config.exclude as string[]) + .map((ex) => path.join(path.dirname(tsConfigPath), ex)) + .map( + (ex) => + '(' + + ex + .replace(/[\-\[\]{}()+?./\\^$|]/g, '\\$&') + .replace(/(\\\\|\\\/)\*\*/g, '((/|\\\\).+?)?') + .replace(/\*/g, '[^/\\\\]*') + + ')', + ) + .join('|') + + ')($|/|\\\\)'; const excludeRe = new RegExp(pattern); // Find all the package.json that aren't excluded from tsconfig. const packageJsonPaths = _findAllPackageJson(path.join(__dirname, '..'), excludeRe) // Remove the root package.json. - .filter(p => p != path.join(__dirname, '../package.json')); - + .filter((p) => p != path.join(__dirname, '../package.json')); function _exec(cmd: string) { return execSync(cmd).toString().trim(); } - let gitShaCache: string; function _getSnapshotHash(_pkg: PackageInfo): string { if (!gitShaCache) { @@ -160,7 +158,6 @@ function _getSnapshotHash(_pkg: PackageInfo): string { return gitShaCache; } - const stableVersion = loadRootPackageJson().version; const experimentalVersion = stableToExperimentalVersion(stableVersion); @@ -178,71 +175,68 @@ export function stableToExperimentalVersion(stable: string): string { // All the supported packages. Go through the packages directory and create a map of // name => PackageInfo. This map is partial as it lacks some information that requires the // map itself to finish building. -export const packages: PackageMap = - packageJsonPaths - .map(pkgPath => ({ root: path.dirname(pkgPath) })) - .reduce((packages: PackageMap, pkg) => { - const pkgRoot = pkg.root; - const packageJson = loadPackageJson(path.join(pkgRoot, 'package.json')); - const name = packageJson['name']; - if (!name) { - // Only build the entry if there's a package name. - return packages; - } - if (!(name in monorepoPackages)) { - throw new Error( - `Package ${name} found in ${JSON.stringify(pkg.root)}, not found in .monorepo.json.`, - ); - } - - const bin: {[name: string]: string} = {}; - Object.keys(packageJson['bin'] || {}).forEach(binName => { - let p = path.resolve(pkg.root, packageJson['bin'][binName]); - if (!fs.existsSync(p)) { - p = p.replace(/\.js$/, '.ts'); - } - bin[binName] = p; - }); - - const experimental = !!packageJson.private || !!packageJson.experimental; - - packages[name] = { - build: path.join(distRoot, pkgRoot.substr(path.dirname(__dirname).length)), - dist: path.join(distRoot, name), - root: pkgRoot, - relative: path.relative(path.dirname(__dirname), pkgRoot), - main: path.resolve(pkgRoot, 'src/index.ts'), - private: !!packageJson.private, - experimental, - // yarn doesn't take kindly to @ in tgz filenames - // https://github.com/yarnpkg/yarn/issues/6339 - tar: path.join(distRoot, name.replace(/\/|@/g, '_') + '.tgz'), - bin, - name, - packageJson, - - snapshot: !!monorepoPackages[name].snapshotRepo, - snapshotRepo: monorepoPackages[name].snapshotRepo, - get snapshotHash() { - return _getSnapshotHash(this); - }, - - dependencies: [], - reverseDependencies: [], - version: experimental ? experimentalVersion : stableVersion, - }; - +export const packages: PackageMap = packageJsonPaths + .map((pkgPath) => ({ root: path.dirname(pkgPath) })) + .reduce((packages: PackageMap, pkg) => { + const pkgRoot = pkg.root; + const packageJson = loadPackageJson(path.join(pkgRoot, 'package.json')); + const name = packageJson['name']; + if (!name) { + // Only build the entry if there's a package name. return packages; - }, {}); + } + if (!(name in monorepoPackages)) { + throw new Error( + `Package ${name} found in ${JSON.stringify(pkg.root)}, not found in .monorepo.json.`, + ); + } + + const bin: { [name: string]: string } = {}; + Object.keys(packageJson['bin'] || {}).forEach((binName) => { + let p = path.resolve(pkg.root, packageJson['bin'][binName]); + if (!fs.existsSync(p)) { + p = p.replace(/\.js$/, '.ts'); + } + bin[binName] = p; + }); + const experimental = !!packageJson.private || !!packageJson.experimental; + + packages[name] = { + build: path.join(distRoot, pkgRoot.substr(path.dirname(__dirname).length)), + dist: path.join(distRoot, name), + root: pkgRoot, + relative: path.relative(path.dirname(__dirname), pkgRoot), + main: path.resolve(pkgRoot, 'src/index.ts'), + private: !!packageJson.private, + experimental, + // yarn doesn't take kindly to @ in tgz filenames + // https://github.com/yarnpkg/yarn/issues/6339 + tar: path.join(distRoot, name.replace(/\/|@/g, '_') + '.tgz'), + bin, + name, + packageJson, + + snapshot: !!monorepoPackages[name].snapshotRepo, + snapshotRepo: monorepoPackages[name].snapshotRepo, + get snapshotHash() { + return _getSnapshotHash(this); + }, + + dependencies: [], + reverseDependencies: [], + version: experimental ? experimentalVersion : stableVersion, + }; + + return packages; + }, {}); // Update with dependencies. for (const pkgName of Object.keys(packages)) { const pkg = packages[pkgName]; const pkgJson = require(path.join(pkg.root, 'package.json')); - pkg.dependencies = Object.keys(packages).filter(name => { - return name in (pkgJson.dependencies || {}) - || name in (pkgJson.devDependencies || {}); + pkg.dependencies = Object.keys(packages).filter((name) => { + return name in (pkgJson.dependencies || {}) || name in (pkgJson.devDependencies || {}); }); - pkg.dependencies.forEach(depName => packages[depName].reverseDependencies.push(pkgName)); + pkg.dependencies.forEach((depName) => packages[depName].reverseDependencies.push(pkgName)); } diff --git a/packages/README.md b/packages/README.md index eb38cb395147..aab7eadc1c92 100644 --- a/packages/README.md +++ b/packages/README.md @@ -4,5 +4,5 @@ This folder is the root of all defined packages in this repository. Packages that are marked as `private: true` will not be published to NPM. -This folder includes a directory for every scope in NPM, without the `@` sign. Then one folder +This folder includes a directory for every scope in NPM, without the `@` sign. Then one folder per package, which contains the `package.json`. diff --git a/packages/angular/cli/README.md b/packages/angular/cli/README.md index 96b40aacbad5..954dcd7d702c 100644 --- a/packages/angular/cli/README.md +++ b/packages/angular/cli/README.md @@ -1,6 +1,7 @@ ## Angular CLI + [![Dependency Status][david-badge]][david-badge-url] [![devDependency Status][david-dev-badge]][david-dev-badge-url] @@ -14,7 +15,6 @@ [![GitHub forks](https://img.shields.io/github/forks/angular/angular-cli.svg?style=social&label=Fork)](https://github.com/angular/angular-cli/fork) [![GitHub stars](https://img.shields.io/github/stars/angular/angular-cli.svg?style=social&label=Star)](https://github.com/angular/angular-cli) - ## Note If you are updating from a beta or RC version, check out our [1.0 Update Guide](https://github.com/angular/angular-cli/wiki/stories-1.0-update). @@ -30,25 +30,27 @@ with NPM 5.5.1 or higher. ## Table of Contents -* [Installation](#installation) -* [Usage](#usage) -* [Generating a New Project](#generating-and-serving-an-angular-project-via-a-development-server) -* [Generating Components, Directives, Pipes and Services](#generating-components-directives-pipes-and-services) -* [Updating Angular CLI](#updating-angular-cli) -* [Development Hints for working on Angular CLI](#development-hints-for-working-on-angular-cli) -* [Documentation](#documentation) -* [License](#license) +- [Installation](#installation) +- [Usage](#usage) +- [Generating a New Project](#generating-and-serving-an-angular-project-via-a-development-server) +- [Generating Components, Directives, Pipes and Services](#generating-components-directives-pipes-and-services) +- [Updating Angular CLI](#updating-angular-cli) +- [Development Hints for working on Angular CLI](#development-hints-for-working-on-angular-cli) +- [Documentation](#documentation) +- [License](#license) ## Installation **BEFORE YOU INSTALL:** please read the [prerequisites](#prerequisites) ### Install Globally + ```bash npm install -g @angular/cli ``` ### Install Locally + ```bash npm install @angular/cli ``` @@ -58,6 +60,7 @@ To run a locally installed version of the angular-cli, you can call `ng` command Alternatively, you can install [npx](https://www.npmjs.com/package/npx) and run `npx ng ` within the local directory where `npm install @angular/cli` was run, which will use the locally installed angular-cli. ### Install Specific Version (Example: 6.1.1) + ```bash npm install -g @angular/cli@6.1.1 ``` @@ -75,6 +78,7 @@ ng new PROJECT-NAME cd PROJECT-NAME ng serve ``` + Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. You can configure the default HTTP host and port used by the development server with two command-line options : @@ -102,33 +106,32 @@ ng g component ./newer-cmp ng g component feature/new-cmp # and your component will be generated in src/app/feature/new-cmp ``` -You can find all possible blueprints in the table below: - -Scaffold | Usage ---- | --- -[Component](https://angular.io/cli/generate#component) | `ng g component my-new-component` -[Directive](https://angular.io/cli/generate#directive) | `ng g directive my-new-directive` -[Pipe](https://angular.io/cli/generate#pipe) | `ng g pipe my-new-pipe` -[Service](https://angular.io/cli/generate#service) | `ng g service my-new-service` -[Class](https://angular.io/cli/generate#class) | `ng g class my-new-class` -[Guard](https://angular.io/cli/generate#guard) | `ng g guard my-new-guard` -[Interface](https://angular.io/cli/generate#interface) | `ng g interface my-new-interface` -[Enum](https://angular.io/cli/generate#enum) | `ng g enum my-new-enum` -[Module](https://angular.io/cli/generate#module) | `ng g module my-module` - +You can find all possible blueprints in the table below: +| Scaffold | Usage | +| ------------------------------------------------------ | --------------------------------- | +| [Component](https://angular.io/cli/generate#component) | `ng g component my-new-component` | +| [Directive](https://angular.io/cli/generate#directive) | `ng g directive my-new-directive` | +| [Pipe](https://angular.io/cli/generate#pipe) | `ng g pipe my-new-pipe` | +| [Service](https://angular.io/cli/generate#service) | `ng g service my-new-service` | +| [Class](https://angular.io/cli/generate#class) | `ng g class my-new-class` | +| [Guard](https://angular.io/cli/generate#guard) | `ng g guard my-new-guard` | +| [Interface](https://angular.io/cli/generate#interface) | `ng g interface my-new-interface` | +| [Enum](https://angular.io/cli/generate#enum) | `ng g enum my-new-enum` | +| [Module](https://angular.io/cli/generate#module) | `ng g module my-module` | angular-cli will add reference to `components`, `directives` and `pipes` automatically in the `app.module.ts`. If you need to add this references to another custom module, follow these steps: - 1. `ng g module new-module` to create a new module - 2. call `ng g component new-module/new-component` +1. `ng g module new-module` to create a new module +2. call `ng g component new-module/new-component` This should add the new `component`, `directive` or `pipe` reference to the `new-module` you've created. ### Updating Angular CLI If you're using Angular CLI `1.0.0-beta.28` or less, you need to uninstall `angular-cli` package. It should be done due to changing of package's name and scope from `angular-cli` to `@angular/cli`: + ```bash npm uninstall -g angular-cli npm uninstall --save-dev angular-cli @@ -137,6 +140,7 @@ npm uninstall --save-dev angular-cli To update Angular CLI to a new version, you must update both the global package and your project's local package. Global package: + ```bash npm uninstall -g @angular/cli npm cache verify @@ -145,6 +149,7 @@ npm install -g @angular/cli@latest ``` Local project package: + ```bash rm -rf node_modules dist # use rmdir /S/Q node_modules dist in Windows Command Prompt; use rm -r -fo node_modules,dist in Windows PowerShell npm install --save-dev @angular/cli@latest @@ -155,7 +160,6 @@ If you are updating to 1.0 from a beta or RC version, check out our [1.0 Update You can find more details about changes between versions in [the Releases tab on GitHub](https://github.com/angular/angular-cli/releases). - ## Development Hints for working on Angular CLI ### Working with master @@ -231,15 +235,17 @@ For more informations about Node.js debugging in VS Code, see the related [VS Co In order to investigate performance issues, CPU profiling is often useful. To capture a CPU profiling, you can: + 1. install the v8-profiler-node8 dependency: `npm install v8-profiler-node8 --no-save` 1. set the NG_CLI_PROFILING Environment variable to the file name you want: - * on Unix systems (Linux & Mac OS X): ̀`export NG_CLI_PROFILING=my-profile` - * on Windows: ̀̀`setx NG_CLI_PROFILING my-profile` + - on Unix systems (Linux & Mac OS X): ̀`export NG_CLI_PROFILING=my-profile` + - on Windows: ̀̀`setx NG_CLI_PROFILING my-profile` Then, just run the ng command on which you want to capture a CPU profile. You will then obtain a `my-profile.cpuprofile` file in the folder from which you ran the ng command. You can use the Chrome Devtools to process it. To do so: + 1. open `chrome://inspect/#devices` in Chrome 1. click on "Open dedicated DevTools for Node" 1. go to the "profiler" tab @@ -256,7 +262,6 @@ The documentation for the Angular CLI is located on our [documentation website]( [MIT](https://github.com/angular/angular-cli/blob/master/LICENSE) - [travis-badge]: https://travis-ci.org/angular/angular-cli.svg?branch=master [travis-badge-url]: https://travis-ci.org/angular/angular-cli [david-badge]: https://david-dm.org/angular/angular-cli.svg @@ -266,4 +271,3 @@ The documentation for the Angular CLI is located on our [documentation website]( [npm-badge]: https://img.shields.io/npm/v/@angular/cli.svg [npm-badge-url]: https://www.npmjs.com/package/@angular/cli [license-url]: https://github.com/angular/angular-cli/blob/master/LICENSE - diff --git a/packages/angular/cli/bin/postinstall/analytics-prompt.js b/packages/angular/cli/bin/postinstall/analytics-prompt.js index 04121439939e..b24c319ede10 100644 --- a/packages/angular/cli/bin/postinstall/analytics-prompt.js +++ b/packages/angular/cli/bin/postinstall/analytics-prompt.js @@ -10,7 +10,7 @@ try { analytics .hasGlobalAnalyticsConfiguration() - .then(hasGlobalConfig => { + .then((hasGlobalConfig) => { if (!hasGlobalConfig) { return analytics.promptGlobalAnalytics(); } diff --git a/packages/angular/cli/commands/add-impl.ts b/packages/angular/cli/commands/add-impl.ts index dd309030f928..f9103af4d8ae 100644 --- a/packages/angular/cli/commands/add-impl.ts +++ b/packages/angular/cli/commands/add-impl.ts @@ -170,9 +170,7 @@ export class AddCommand extends SchematicCommand { collectionName = manifest.name; if (await this.hasMismatchedPeer(manifest)) { - spinner.warn( - 'Package has unmet peer dependencies. Adding the package may not succeed.', - ); + spinner.warn('Package has unmet peer dependencies. Adding the package may not succeed.'); } else { spinner.succeed(`Package information loaded.`); } @@ -215,12 +213,9 @@ export class AddCommand extends SchematicCommand { packageManager, options.registry ? [`--registry="${options.registry}"`] : undefined, ); - const resolvedCollectionPath = require.resolve( - join(collectionName, 'package.json'), - { - paths: [tempPath], - }, - ); + const resolvedCollectionPath = require.resolve(join(collectionName, 'package.json'), { + paths: [tempPath], + }); collectionName = dirname(resolvedCollectionPath); } else { diff --git a/packages/angular/cli/commands/add.json b/packages/angular/cli/commands/add.json index 014ec5ab4d6b..99cd82d897fb 100644 --- a/packages/angular/cli/commands/add.json +++ b/packages/angular/cli/commands/add.json @@ -42,8 +42,7 @@ "default": false } }, - "required": [ - ] + "required": [] }, { "$ref": "./definitions.json#/definitions/interactive" diff --git a/packages/angular/cli/commands/add.md b/packages/angular/cli/commands/add.md index 465438a4e5b2..09cd2e239d76 100644 --- a/packages/angular/cli/commands/add.md +++ b/packages/angular/cli/commands/add.md @@ -2,6 +2,7 @@ Adds the npm package for a published library to your workspace, and configures the project in the current working directory (or the default project if you are not in a project directory) to use that library, as specified by the library's schematic. For example, adding `@angular/pwa` configures your project for PWA support: + ```bash ng add @angular/pwa ``` diff --git a/packages/angular/cli/commands/analytics-impl.ts b/packages/angular/cli/commands/analytics-impl.ts index c5703e0680e1..d27032f30d23 100644 --- a/packages/angular/cli/commands/analytics-impl.ts +++ b/packages/angular/cli/commands/analytics-impl.ts @@ -15,7 +15,6 @@ import { Command } from '../models/command'; import { Arguments } from '../models/interface'; import { ProjectSetting, Schema as AnalyticsCommandSchema, SettingOrProject } from './analytics'; - export class AnalyticsCommand extends Command { public async run(options: AnalyticsCommandSchema & Arguments) { // Our parser does not support positional enums (won't report invalid parameters). Do the @@ -34,10 +33,14 @@ export class AnalyticsCommand extends Command { return 2; } - } else if (options.settingOrProject == SettingOrProject.Project - && options.projectSetting === undefined) { - this.logger.error(`Argument ${JSON.stringify(options.settingOrProject)} requires a second ` - + `argument of one of the following value: on, off.`); + } else if ( + options.settingOrProject == SettingOrProject.Project && + options.projectSetting === undefined + ) { + this.logger.error( + `Argument ${JSON.stringify(options.settingOrProject)} requires a second ` + + `argument of one of the following value: on, off.`, + ); return 2; } diff --git a/packages/angular/cli/commands/analytics-long.md b/packages/angular/cli/commands/analytics-long.md index 60e0d86686e8..87b9925d1473 100644 --- a/packages/angular/cli/commands/analytics-long.md +++ b/packages/angular/cli/commands/analytics-long.md @@ -1,7 +1,8 @@ -The value of *settingOrProject* is one of the following. -* "on" : Enables analytics gathering and reporting for the user. -* "off" : Disables analytics gathering and reporting for the user. -* "ci" : Enables analytics and configures reporting for use with Continuous Integration, -which uses a common CI user. -* "prompt" : Prompts the user to set the status interactively. -* "project" : Sets the default status for the project to the *projectSetting* value, which can be any of the other values. The *projectSetting* argument is ignored for all other values of *settingOrProject*. \ No newline at end of file +The value of _settingOrProject_ is one of the following. + +- "on" : Enables analytics gathering and reporting for the user. +- "off" : Disables analytics gathering and reporting for the user. +- "ci" : Enables analytics and configures reporting for use with Continuous Integration, + which uses a common CI user. +- "prompt" : Prompts the user to set the status interactively. +- "project" : Sets the default status for the project to the _projectSetting_ value, which can be any of the other values. The _projectSetting_ argument is ignored for all other values of _settingOrProject_. diff --git a/packages/angular/cli/commands/analytics.json b/packages/angular/cli/commands/analytics.json index e34234d0e39d..ee2612b20399 100644 --- a/packages/angular/cli/commands/analytics.json +++ b/packages/angular/cli/commands/analytics.json @@ -14,13 +14,7 @@ { "properties": { "settingOrProject": { - "enum": [ - "on", - "off", - "ci", - "project", - "prompt" - ], + "enum": ["on", "off", "ci", "project", "prompt"], "description": "Directly enables or disables all usage analytics for the user, or prompts the user to set the status interactively, or sets the default status for the project.", "$default": { "$source": "argv", @@ -28,11 +22,7 @@ } }, "projectSetting": { - "enum": [ - "on", - "off", - "prompt" - ], + "enum": ["on", "off", "prompt"], "description": "Sets the default analytics enablement status for the project.", "$default": { "$source": "argv", @@ -40,9 +30,7 @@ } } }, - "required": [ - "settingOrProject" - ] + "required": ["settingOrProject"] }, { "$ref": "./definitions.json#/definitions/base" } ] diff --git a/packages/angular/cli/commands/build.json b/packages/angular/cli/commands/build.json index 2dbe778cafed..df9d93b85a19 100644 --- a/packages/angular/cli/commands/build.json +++ b/packages/angular/cli/commands/build.json @@ -4,7 +4,7 @@ "description": "Compiles an Angular app into an output directory named dist/ at the given output path. Must be executed from within a workspace directory.", "$longDescription": "./build-long.md", - "$aliases": [ "b" ], + "$aliases": ["b"], "$scope": "in", "$type": "architect", "$impl": "./build-impl#BuildCommand", diff --git a/packages/angular/cli/commands/config-impl.ts b/packages/angular/cli/commands/config-impl.ts index cf5211ce5ba3..3e8022d18e22 100644 --- a/packages/angular/cli/commands/config-impl.ts +++ b/packages/angular/cli/commands/config-impl.ts @@ -9,21 +9,20 @@ import { JsonValue, tags } from '@angular-devkit/core'; import { v4 as uuidV4 } from 'uuid'; import { Command } from '../models/command'; import { Arguments, CommandScope } from '../models/interface'; -import { - getWorkspaceRaw, - migrateLegacyGlobalConfig, - validateWorkspace, -} from '../utilities/config'; +import { getWorkspaceRaw, migrateLegacyGlobalConfig, validateWorkspace } from '../utilities/config'; import { JSONFile, parseJson } from '../utilities/json-file'; import { Schema as ConfigCommandSchema } from './config'; -const validCliPaths = new Map string) | undefined>([ +const validCliPaths = new Map< + string, + ((arg: string | number | boolean | undefined) => string) | undefined +>([ ['cli.warnings.versionMismatch', undefined], ['cli.defaultCollection', undefined], ['cli.packageManager', undefined], ['cli.analytics', undefined], ['cli.analyticsSharing.tracking', undefined], - ['cli.analyticsSharing.uuid', v => v ? `${v}` : uuidV4()], + ['cli.analyticsSharing.uuid', (v) => (v ? `${v}` : uuidV4())], ]); /** @@ -54,12 +53,12 @@ function parseJsonPath(path: string): (string | number)[] { const indices = match[2] .slice(1, -1) .split('][') - .map(x => (/^\d$/.test(x) ? +x : x.replace(/\"|\'/g, ''))); + .map((x) => (/^\d$/.test(x) ? +x : x.replace(/\"|\'/g, ''))); result.push(...indices); } } - return result.filter(fragment => fragment != null); + return result.filter((fragment) => fragment != null); } function normalizeValue(value: string | undefined | boolean | number): JsonValue | undefined { @@ -93,7 +92,7 @@ export class ConfigCommand extends Command { We found a global configuration that was used in Angular CLI 1. It has been automatically migrated.`); } - } catch { } + } catch {} } if (options.value == undefined) { diff --git a/packages/angular/cli/commands/config-long.md b/packages/angular/cli/commands/config-long.md index 5f6052b3894a..7f44f63b3b32 100644 --- a/packages/angular/cli/commands/config-long.md +++ b/packages/angular/cli/commands/config-long.md @@ -10,4 +10,4 @@ while on the command line options can be given in either camelCase or dash-case. For further details, see [Workspace Configuration](guide/workspace-config). -For configuration of CLI usage analytics, see [Gathering an Viewing CLI Usage Analytics](./usage-analytics-gathering). \ No newline at end of file +For configuration of CLI usage analytics, see [Gathering an Viewing CLI Usage Analytics](./usage-analytics-gathering). diff --git a/packages/angular/cli/commands/config.json b/packages/angular/cli/commands/config.json index 95a1f874119b..bec13fca4c0f 100644 --- a/packages/angular/cli/commands/config.json +++ b/packages/angular/cli/commands/config.json @@ -36,8 +36,7 @@ "aliases": ["g"] } }, - "required": [ - ] + "required": [] }, { "$ref": "./definitions.json#/definitions/base" } ] diff --git a/packages/angular/cli/commands/definitions.json b/packages/angular/cli/commands/definitions.json index 5da8c67159a2..a18355349f46 100644 --- a/packages/angular/cli/commands/definitions.json +++ b/packages/angular/cli/commands/definitions.json @@ -16,9 +16,7 @@ "configuration": { "description": "One or more named builder configurations as a comma-separated list as specified in the \"configurations\" section of angular.json.\nThe builder uses the named configurations to run the given target.\nFor more information, see https://angular.io/guide/workspace-config#alternate-build-configurations.\nSetting this explicitly overrides the \"--prod\" flag.", "type": "string", - "aliases": [ - "c" - ] + "aliases": ["c"] }, "prod": { "description": "Shorthand for \"--configuration=production\".\nSet the build configuration to the production target.\nBy default, the production target is set up in the workspace configuration such that all builds make use of bundling, limited tree-shaking, and also limited dead code elimination.", @@ -43,13 +41,13 @@ "dryRun": { "type": "boolean", "default": false, - "aliases": [ "d" ], + "aliases": ["d"], "description": "Run through and reports activity without writing out results." }, "force": { "type": "boolean", "default": false, - "aliases": [ "f" ], + "aliases": ["f"], "description": "Force overwriting of existing files." } } diff --git a/packages/angular/cli/commands/deploy-long.md b/packages/angular/cli/commands/deploy-long.md index afe619565c0a..9d13ad2a9890 100644 --- a/packages/angular/cli/commands/deploy-long.md +++ b/packages/angular/cli/commands/deploy-long.md @@ -19,4 +19,4 @@ For example: } } } - ``` \ No newline at end of file +``` diff --git a/packages/angular/cli/commands/deploy.json b/packages/angular/cli/commands/deploy.json index 31f6d8e7e4c5..cc7c860dde1c 100644 --- a/packages/angular/cli/commands/deploy.json +++ b/packages/angular/cli/commands/deploy.json @@ -22,9 +22,7 @@ "configuration": { "description": "One or more named builder configurations as a comma-separated list as specified in the \"configurations\" section of angular.json.\nThe builder uses the named configurations to run the given target.\nFor more information, see https://angular.io/guide/workspace-config#alternate-build-configurations.", "type": "string", - "aliases": [ - "c" - ] + "aliases": ["c"] } }, "required": [] diff --git a/packages/angular/cli/commands/doc-impl.ts b/packages/angular/cli/commands/doc-impl.ts index 2b1aa87f22de..bc0611812c6d 100644 --- a/packages/angular/cli/commands/doc-impl.ts +++ b/packages/angular/cli/commands/doc-impl.ts @@ -39,7 +39,7 @@ export class DocCommand extends Command { /* tslint:disable-next-line:no-implicit-dependencies */ const currentNgVersion = (await import('@angular/core')).VERSION.major; domain = `v${currentNgVersion}.angular.io`; - } catch (e) { } + } catch (e) {} } let searchUrl = `https://${domain}/api?query=${options.keyword}`; diff --git a/packages/angular/cli/commands/doc.json b/packages/angular/cli/commands/doc.json index de6cf2ff6323..bb01549c6099 100644 --- a/packages/angular/cli/commands/doc.json +++ b/packages/angular/cli/commands/doc.json @@ -4,7 +4,7 @@ "description": "Opens the official Angular documentation (angular.io) in a browser, and searches for a given keyword.", "$longDescription": "", - "$aliases": [ "d" ], + "$aliases": ["d"], "$type": "native", "$impl": "./doc-impl#DocCommand", @@ -26,7 +26,7 @@ "default": false, "description": "Search all of angular.io. Otherwise, searches only API reference documentation." }, - "version" : { + "version": { "oneOf": [ { "type": "number", @@ -39,8 +39,7 @@ "description": "Contains the version of Angular to use for the documentation. If not provided, the command uses your current Angular core version." } }, - "required": [ - ] + "required": [] }, { "$ref": "./definitions.json#/definitions/base" } ] diff --git a/packages/angular/cli/commands/e2e-impl.ts b/packages/angular/cli/commands/e2e-impl.ts index 388360ad7095..730d09a1fbf0 100644 --- a/packages/angular/cli/commands/e2e-impl.ts +++ b/packages/angular/cli/commands/e2e-impl.ts @@ -9,7 +9,6 @@ import { ArchitectCommand } from '../models/architect-command'; import { Arguments } from '../models/interface'; import { Schema as E2eCommandSchema } from './e2e'; - export class E2eCommand extends ArchitectCommand { public readonly target = 'e2e'; public readonly multiTarget = true; diff --git a/packages/angular/cli/commands/e2e-long.md b/packages/angular/cli/commands/e2e-long.md index 6b651df713d9..369b0c71e443 100644 --- a/packages/angular/cli/commands/e2e-long.md +++ b/packages/angular/cli/commands/e2e-long.md @@ -1,2 +1,2 @@ Must be executed from within a workspace directory. -When a project name is not supplied, it will execute for all projects. \ No newline at end of file +When a project name is not supplied, it will execute for all projects. diff --git a/packages/angular/cli/commands/e2e.json b/packages/angular/cli/commands/e2e.json index e8777a361bc3..a8c8cccc4b62 100644 --- a/packages/angular/cli/commands/e2e.json +++ b/packages/angular/cli/commands/e2e.json @@ -4,7 +4,7 @@ "description": "Builds and serves an Angular app, then runs end-to-end tests.", "$longDescription": "./e2e-long.md", - "$aliases": [ "e" ], + "$aliases": ["e"], "$scope": "in", "$type": "architect", "$impl": "./e2e-impl#E2eCommand", diff --git a/packages/angular/cli/commands/easter-egg.json b/packages/angular/cli/commands/easter-egg.json index b42b12b1156e..79d9e1bb2edf 100644 --- a/packages/angular/cli/commands/easter-egg.json +++ b/packages/angular/cli/commands/easter-egg.json @@ -8,7 +8,5 @@ "$impl": "./easter-egg-impl#AwesomeCommand", "type": "object", - "allOf": [ - { "$ref": "./definitions.json#/definitions/base" } - ] + "allOf": [{ "$ref": "./definitions.json#/definitions/base" }] } diff --git a/packages/angular/cli/commands/generate-impl.ts b/packages/angular/cli/commands/generate-impl.ts index 40e81d1e5d5c..ca893d5888d8 100644 --- a/packages/angular/cli/commands/generate-impl.ts +++ b/packages/angular/cli/commands/generate-impl.ts @@ -53,7 +53,7 @@ export class GenerateCommand extends SchematicCommand { } } - this.description.options.forEach(option => { + this.description.options.forEach((option) => { if (option.name == 'schematic') { option.subcommands = subcommands; } @@ -90,7 +90,9 @@ export class GenerateCommand extends SchematicCommand { ); } - private async parseSchematicInfo(options: GenerateCommandSchema): Promise<[string, string | undefined]> { + private async parseSchematicInfo( + options: GenerateCommandSchema, + ): Promise<[string, string | undefined]> { let collectionName = await this.getDefaultSchematicCollection(); let schematicName = options.schematic; @@ -107,7 +109,7 @@ export class GenerateCommand extends SchematicCommand { this.logger.info(''); // Find the generate subcommand. - const subcommand = this.description.options.filter(x => x.subcommands)[0]; + const subcommand = this.description.options.filter((x) => x.subcommands)[0]; if (Object.keys((subcommand && subcommand.subcommands) || {}).length == 1) { this.logger.info(`\nTo see help for a schematic run:`); this.logger.info(colors.cyan(` ng generate --help`)); diff --git a/packages/angular/cli/commands/generate.json b/packages/angular/cli/commands/generate.json index 833fe78436b3..53228340abd4 100644 --- a/packages/angular/cli/commands/generate.json +++ b/packages/angular/cli/commands/generate.json @@ -4,7 +4,7 @@ "description": "Generates and/or modifies files based on a schematic.", "$longDescription": "", - "$aliases": [ "g" ], + "$aliases": ["g"], "$scope": "in", "$type": "schematics", "$impl": "./generate-impl#GenerateCommand", @@ -22,8 +22,7 @@ } } }, - "required": [ - ] + "required": [] }, { "$ref": "./definitions.json#/definitions/base" }, { "$ref": "./definitions.json#/definitions/schematic" }, diff --git a/packages/angular/cli/commands/help-long.md b/packages/angular/cli/commands/help-long.md index b104a1a6c03e..cc4b790f906e 100644 --- a/packages/angular/cli/commands/help-long.md +++ b/packages/angular/cli/commands/help-long.md @@ -1,7 +1,7 @@ - For help with individual commands, use the `--help` or `-h` option with the command. +For help with individual commands, use the `--help` or `-h` option with the command. - For example, +For example, - ```sh - ng help serve - ``` +```sh +ng help serve +``` diff --git a/packages/angular/cli/commands/help.json b/packages/angular/cli/commands/help.json index 266a6d72aa6d..a6513118d0e4 100644 --- a/packages/angular/cli/commands/help.json +++ b/packages/angular/cli/commands/help.json @@ -9,7 +9,5 @@ "$impl": "./help-impl#HelpCommand", "type": "object", - "allOf": [ - { "$ref": "./definitions.json#/definitions/base" } - ] + "allOf": [{ "$ref": "./definitions.json#/definitions/base" }] } diff --git a/packages/angular/cli/commands/lint-long.md b/packages/angular/cli/commands/lint-long.md index 1588c8438fff..d6a4ee0f79b8 100644 --- a/packages/angular/cli/commands/lint-long.md +++ b/packages/angular/cli/commands/lint-long.md @@ -17,4 +17,4 @@ For example: } } } - ``` \ No newline at end of file +``` diff --git a/packages/angular/cli/commands/lint.json b/packages/angular/cli/commands/lint.json index e157fe583f57..824632e79f76 100644 --- a/packages/angular/cli/commands/lint.json +++ b/packages/angular/cli/commands/lint.json @@ -24,9 +24,7 @@ "configuration": { "description": "One or more named builder configurations as a comma-separated list as specified in the \"configurations\" section of angular.json.\nThe builder uses the named configurations to run the given target.\nFor more information, see https://angular.io/guide/workspace-config#alternate-build-configurations.", "type": "string", - "aliases": [ - "c" - ] + "aliases": ["c"] } }, "required": [] diff --git a/packages/angular/cli/commands/new-impl.ts b/packages/angular/cli/commands/new-impl.ts index e4448a9178a0..53646a1296d4 100644 --- a/packages/angular/cli/commands/new-impl.ts +++ b/packages/angular/cli/commands/new-impl.ts @@ -10,13 +10,12 @@ import { Arguments } from '../models/interface'; import { SchematicCommand } from '../models/schematic-command'; import { Schema as NewCommandSchema } from './new'; - export class NewCommand extends SchematicCommand { public readonly allowMissingWorkspace = true; schematicName = 'ng-new'; async initialize(options: NewCommandSchema & Arguments) { - this.collectionName = options.collection || await this.getDefaultSchematicCollection(); + this.collectionName = options.collection || (await this.getDefaultSchematicCollection()); return super.initialize(options); } @@ -37,5 +36,4 @@ export class NewCommand extends SchematicCommand { force: !!options.force, }); } - } diff --git a/packages/angular/cli/commands/new.json b/packages/angular/cli/commands/new.json index 640104d61524..90efa76056be 100644 --- a/packages/angular/cli/commands/new.json +++ b/packages/angular/cli/commands/new.json @@ -4,7 +4,7 @@ "description": "Creates a new workspace and an initial Angular application.", "$longDescription": "./new.md", - "$aliases": [ "n" ], + "$aliases": ["n"], "$scope": "out", "$type": "schematic", "$impl": "./new-impl#NewCommand", @@ -15,13 +15,13 @@ "properties": { "collection": { "type": "string", - "aliases": [ "c" ], + "aliases": ["c"], "description": "A collection of schematics to use in generating the initial application." }, "verbose": { "type": "boolean", "default": false, - "aliases": [ "v" ], + "aliases": ["v"], "description": "Add more details to output logging." } }, diff --git a/packages/angular/cli/commands/new.md b/packages/angular/cli/commands/new.md index 5d344b5d4312..0d8699958041 100644 --- a/packages/angular/cli/commands/new.md +++ b/packages/angular/cli/commands/new.md @@ -3,14 +3,14 @@ Creates and initializes a new Angular application that is the default project fo Provides interactive prompts for optional configuration, such as adding routing support. All prompts can safely be allowed to default. -* The new workspace folder is given the specified project name, and contains configuration files at the top level. +- The new workspace folder is given the specified project name, and contains configuration files at the top level. -* By default, the files for a new initial application (with the same name as the workspace) are placed in the `src/` subfolder. Corresponding end-to-end tests are placed in the `e2e/` subfolder. +- By default, the files for a new initial application (with the same name as the workspace) are placed in the `src/` subfolder. Corresponding end-to-end tests are placed in the `e2e/` subfolder. -* The new application's configuration appears in the `projects` section of the `angular.json` workspace configuration file, under its project name. +- The new application's configuration appears in the `projects` section of the `angular.json` workspace configuration file, under its project name. -* Subsequent applications that you generate in the workspace reside in the `projects/` subfolder. +- Subsequent applications that you generate in the workspace reside in the `projects/` subfolder. If you plan to have multiple applications in the workspace, you can create an empty workspace by setting the `--createApplication` option to false. You can then use `ng generate application` to create an initial application. -This allows a workspace name different from the initial app name, and ensures that all applications reside in the `/projects` subfolder, matching the structure of the configuration file. \ No newline at end of file +This allows a workspace name different from the initial app name, and ensures that all applications reside in the `/projects` subfolder, matching the structure of the configuration file. diff --git a/packages/angular/cli/commands/run-long.md b/packages/angular/cli/commands/run-long.md index a95bbd78a27a..65a307fcd771 100644 --- a/packages/angular/cli/commands/run-long.md +++ b/packages/angular/cli/commands/run-long.md @@ -13,4 +13,4 @@ Execute the command using the following format. ``` ng run project:target[:configuration] -``` \ No newline at end of file +``` diff --git a/packages/angular/cli/commands/run.json b/packages/angular/cli/commands/run.json index cd269a7b34b2..f4e2287dbf35 100644 --- a/packages/angular/cli/commands/run.json +++ b/packages/angular/cli/commands/run.json @@ -24,11 +24,10 @@ "configuration": { "description": "One or more named builder configurations as a comma-separated list as specified in the \"configurations\" section of angular.json.\nThe builder uses the named configurations to run the given target.\nFor more information, see https://angular.io/guide/workspace-config#alternate-build-configurations.", "type": "string", - "aliases": [ "c" ] + "aliases": ["c"] } }, - "required": [ - ] + "required": [] }, { "$ref": "./definitions.json#/definitions/base" diff --git a/packages/angular/cli/commands/serve.json b/packages/angular/cli/commands/serve.json index 8926362231d1..efc7ba4089ae 100644 --- a/packages/angular/cli/commands/serve.json +++ b/packages/angular/cli/commands/serve.json @@ -4,7 +4,7 @@ "description": "Builds and serves your app, rebuilding on file changes.", "$longDescription": "", - "$aliases": [ "s" ], + "$aliases": ["s"], "$scope": "in", "$type": "architect", "$impl": "./serve-impl#ServeCommand", diff --git a/packages/angular/cli/commands/test-long.md b/packages/angular/cli/commands/test-long.md index 64dae312ab47..25086c174e15 100644 --- a/packages/angular/cli/commands/test-long.md +++ b/packages/angular/cli/commands/test-long.md @@ -1,2 +1,2 @@ Takes the name of the project, as specified in the `projects` section of the `angular.json` workspace configuration file. -When a project name is not supplied, it will execute for all projects. \ No newline at end of file +When a project name is not supplied, it will execute for all projects. diff --git a/packages/angular/cli/commands/test.json b/packages/angular/cli/commands/test.json index a9ebb3f8044c..5fb4ce014c48 100644 --- a/packages/angular/cli/commands/test.json +++ b/packages/angular/cli/commands/test.json @@ -4,7 +4,7 @@ "description": "Runs unit tests in a project.", "$longDescription": "./test-long.md", - "$aliases": [ "t" ], + "$aliases": ["t"], "$scope": "in", "$type": "architect", "$impl": "./test-impl#TestCommand", diff --git a/packages/angular/cli/commands/update-impl.ts b/packages/angular/cli/commands/update-impl.ts index da5b343c9af5..0d885305e584 100644 --- a/packages/angular/cli/commands/update-impl.ts +++ b/packages/angular/cli/commands/update-impl.ts @@ -43,7 +43,7 @@ const pickManifest = require('npm-pick-manifest') as ( const NG_VERSION_9_POST_MSG = colors.cyan( '\nYour project has been updated to Angular version 9!\n' + - 'For more info, please see: https://v9.angular.io/guide/updating-to-version-9', + 'For more info, please see: https://v9.angular.io/guide/updating-to-version-9', ); const UPDATE_SCHEMATIC_COLLECTION = path.join( @@ -68,17 +68,14 @@ export class UpdateCommand extends Command { async initialize() { this.packageManager = await getPackageManager(this.context.root); - this.workflow = new NodeWorkflow( - this.context.root, - { - packageManager: this.packageManager, - // __dirname -> favor @schematics/update from this package - // Otherwise, use packages from the active workspace (migrations) - resolvePaths: [__dirname, this.context.root], - schemaValidation: true, - engineHostCreator: (options) => new SchematicEngineHost(options.resolvePaths), - }, - ); + this.workflow = new NodeWorkflow(this.context.root, { + packageManager: this.packageManager, + // __dirname -> favor @schematics/update from this package + // Otherwise, use packages from the active workspace (migrations) + resolvePaths: [__dirname, this.context.root], + schemaValidation: true, + engineHostCreator: (options) => new SchematicEngineHost(options.resolvePaths), + }); } private async executeSchematic( @@ -90,7 +87,7 @@ export class UpdateCommand extends Command { let logs: string[] = []; const files = new Set(); - const reporterSubscription = this.workflow.reporter.subscribe(event => { + const reporterSubscription = this.workflow.reporter.subscribe((event) => { // Strip leading slash to prevent confusion. const eventPath = event.path.startsWith('/') ? event.path.substr(1) : event.path; @@ -120,11 +117,11 @@ export class UpdateCommand extends Command { } }); - const lifecycleSubscription = this.workflow.lifeCycle.subscribe(event => { + const lifecycleSubscription = this.workflow.lifeCycle.subscribe((event) => { if (event.kind == 'end' || event.kind == 'post-tasks-start') { if (!error) { // Output the logging queue, no error happened. - logs.forEach(log => this.logger.info(` ${log}`)); + logs.forEach((log) => this.logger.info(` ${log}`)); logs = []; } } @@ -147,12 +144,14 @@ export class UpdateCommand extends Command { return { success: !error, files }; } catch (e) { if (e instanceof UnsuccessfulWorkflowExecution) { - this.logger.error(`${colors.symbols.cross} Migration failed. See above for further details.\n`); + this.logger.error( + `${colors.symbols.cross} Migration failed. See above for further details.\n`, + ); } else { const logPath = writeErrorToLogFile(e); this.logger.fatal( `${colors.symbols.cross} Migration failed: ${e.message}\n` + - ` See "${logPath}" for further details.\n`, + ` See "${logPath}" for further details.\n`, ); } @@ -170,7 +169,7 @@ export class UpdateCommand extends Command { commit?: boolean, ): Promise { const collection = this.workflow.engine.createCollection(collectionPath); - const name = collection.listSchematicNames().find(name => name === migrationName); + const name = collection.listSchematicNames().find((name) => name === migrationName); if (!name) { this.logger.error(`Cannot find migration '${migrationName}' in '${packageName}'.`); @@ -223,15 +222,13 @@ export class UpdateCommand extends Command { return true; } - this.logger.info( - colors.cyan(`** Executing migrations of package '${packageName}' **\n`), - ); + this.logger.info(colors.cyan(`** Executing migrations of package '${packageName}' **\n`)); return this.executePackageMigrations(migrations, packageName, commit); } private async executePackageMigrations( - migrations: Iterable<{ name: string; description: string; collection: { name: string }}>, + migrations: Iterable<{ name: string; description: string; collection: { name: string } }>, packageName: string, commit = false, ): Promise { @@ -239,8 +236,9 @@ export class UpdateCommand extends Command { const [title, ...description] = migration.description.split('. '); this.logger.info( - colors.cyan(colors.symbols.pointer) + ' ' + - colors.bold(title.endsWith('.') ? title : title + '.'), + colors.cyan(colors.symbols.pointer) + + ' ' + + colors.bold(title.endsWith('.') ? title : title + '.'), ); if (description.length) { @@ -278,10 +276,11 @@ export class UpdateCommand extends Command { await ensureCompatibleNpm(this.context.root); // Check if the current installed CLI version is older than the latest version. - if (!disableVersionCheck && await this.checkCLILatestVersion(options.verbose, options.next)) { + if (!disableVersionCheck && (await this.checkCLILatestVersion(options.verbose, options.next))) { this.logger.warn( - `The installed local Angular CLI version is older than the latest ${options.next ? 'pre-release' : 'stable'} version.\n` + - 'Installing a temporary version to perform the update.', + `The installed local Angular CLI version is older than the latest ${ + options.next ? 'pre-release' : 'stable' + } version.\n` + 'Installing a temporary version to perform the update.', ); return runTempPackageBin( @@ -299,9 +298,10 @@ export class UpdateCommand extends Command { }; if (options.all) { - const updateCmd = this.packageManager === PackageManager.Yarn - ? `'yarn upgrade-interactive' or 'yarn upgrade'` - : `'${this.packageManager} update'`; + const updateCmd = + this.packageManager === PackageManager.Yarn + ? `'yarn upgrade-interactive' or 'yarn upgrade'` + : `'${this.packageManager} update'`; this.logger.warn(` '--all' functionality has been removed as updating multiple packages at once is not recommended. @@ -324,7 +324,7 @@ export class UpdateCommand extends Command { return 1; } - if (packages.some(v => v.name === packageIdentifier.name)) { + if (packages.some((v) => v.name === packageIdentifier.name)) { this.logger.error(`Duplicate package '${packageIdentifier.name}' specified.`); return 1; @@ -391,7 +391,9 @@ export class UpdateCommand extends Command { if (options.migrateOnly) { if (!options.from && typeof options.migrateOnly !== 'string') { - this.logger.error('"from" option is required when using the "migrate-only" option without a migration name.'); + this.logger.error( + '"from" option is required when using the "migrate-only" option without a migration name.', + ); return 1; } else if (packages.length !== 1) { @@ -508,10 +510,10 @@ export class UpdateCommand extends Command { if (success) { if ( - packageName === '@angular/core' - && options.from - && +options.from.split('.')[0] < 9 - && (options.to || packageNode.version).split('.')[0] === '9' + packageName === '@angular/core' && + options.from && + +options.from.split('.')[0] < 9 && + (options.to || packageNode.version).split('.')[0] === '9' ) { this.logger.info(NG_VERSION_9_POST_MSG); } @@ -622,10 +624,12 @@ export class UpdateCommand extends Command { }; const updateTo = updateVersions[currentMajorVersion]; - this.logger.error('Updating multiple major versions at once is not recommended. ' + - `Run 'ng update @angular/cli@${updateTo}' in your workspace directory ` + - `to update to latest '${updateTo}.x' version of '@angular/cli'.\n\n` + - 'For more information about the update process, see https://update.angular.io/.'); + this.logger.error( + 'Updating multiple major versions at once is not recommended. ' + + `Run 'ng update @angular/cli@${updateTo}' in your workspace directory ` + + `to update to latest '${updateTo}.x' version of '@angular/cli'.\n\n` + + 'For more information about the update process, see https://update.angular.io/.', + ); return 1; } @@ -653,7 +657,8 @@ export class UpdateCommand extends Command { if (success && options.createCommits) { const committed = this.commit( - `Angular CLI update for packages - ${packagesToUpdate.join(', ')}`); + `Angular CLI update for packages - ${packagesToUpdate.join(', ')}`, + ); if (!committed) { return 1; } @@ -744,7 +749,14 @@ export class UpdateCommand extends Command { } } - if (migrations.some(m => m.package === '@angular/core' && m.to.split('.')[0] === '9' && +m.from.split('.')[0] < 9)) { + if ( + migrations.some( + (m) => + m.package === '@angular/core' && + m.to.split('.')[0] === '9' && + +m.from.split('.')[0] < 9, + ) + ) { this.logger.info(NG_VERSION_9_POST_MSG); } } @@ -776,8 +788,7 @@ export class UpdateCommand extends Command { try { createCommit(message); } catch (err) { - this.logger.error( - `Failed to commit update (${message}):\n${err.stderr}`); + this.logger.error(`Failed to commit update (${message}):\n${err.stderr}`); return false; } @@ -786,8 +797,7 @@ export class UpdateCommand extends Command { const hash = findCurrentGitSha(); const shortMessage = message.split('\n')[0]; if (hash) { - this.logger.info(` Committed migration step (${getShortHash(hash)}): ${ - shortMessage}.`); + this.logger.info(` Committed migration step (${getShortHash(hash)}): ${shortMessage}.`); } else { // Commit was successful, but reading the hash was not. Something weird happened, // but nothing that would stop the update. Just log the weirdness and continue. @@ -800,7 +810,10 @@ export class UpdateCommand extends Command { private checkCleanGit(): boolean { try { - const topLevel = execSync('git rev-parse --show-toplevel', { encoding: 'utf8', stdio: 'pipe' }); + const topLevel = execSync('git rev-parse --show-toplevel', { + encoding: 'utf8', + stdio: 'pipe', + }); const result = execSync('git status --porcelain', { encoding: 'utf8', stdio: 'pipe' }); if (result.trim().length === 0) { return true; @@ -825,7 +838,7 @@ export class UpdateCommand extends Command { /** * Checks if the current installed CLI version is older than the latest version. * @returns `true` when the installed version is older. - */ + */ private async checkCLILatestVersion(verbose = false, next = false): Promise { const { version: installedCLIVersion } = require('../package.json'); @@ -871,7 +884,7 @@ function createCommit(message: string) { */ function findCurrentGitSha(): string | null { try { - const hash = execSync('git rev-parse HEAD', {encoding: 'utf8', stdio: 'pipe'}); + const hash = execSync('git rev-parse HEAD', { encoding: 'utf8', stdio: 'pipe' }); return hash.trim(); } catch { diff --git a/packages/angular/cli/commands/version-impl.ts b/packages/angular/cli/commands/version-impl.ts index cdcb7e971139..ba2e07f7e293 100644 --- a/packages/angular/cli/commands/version-impl.ts +++ b/packages/angular/cli/commands/version-impl.ts @@ -51,19 +51,16 @@ export class VersionCommand extends Command { ]; const versions = packageNames - .filter(x => patterns.some(p => p.test(x))) - .reduce( - (acc, name) => { - if (name in acc) { - return acc; - } + .filter((x) => patterns.some((p) => p.test(x))) + .reduce((acc, name) => { + if (name in acc) { + return acc; + } - acc[name] = this.getVersion(name); + acc[name] = this.getVersion(name); - return acc; - }, - {} as { [module: string]: string }, - ); + return acc; + }, {} as { [module: string]: string }); const ngCliVersion = cliPackage.version; let angularCoreVersion = ''; @@ -100,7 +97,7 @@ export class VersionCommand extends Command { |___/ ` .split('\n') - .map(x => colors.red(x)) + .map((x) => colors.red(x)) .join('\n'); this.logger.info(asciiArt); @@ -132,7 +129,7 @@ export class VersionCommand extends Command { Package${namePad.slice(7)}Version -------${namePad.replace(/ /g, '-')}------------------ ${Object.keys(versions) - .map(module => `${module}${namePad.slice(module.length)}${versions[module]}`) + .map((module) => `${module}${namePad.slice(module.length)}${versions[module]}`) .sort() .join('\n')} `.replace(/^ {6}/gm, ''), @@ -145,7 +142,7 @@ export class VersionCommand extends Command { // Try to find the package in the workspace try { - packagePath = require.resolve(`${moduleName}/package.json`, { paths: [ this.context.root ]}); + packagePath = require.resolve(`${moduleName}/package.json`, { paths: [this.context.root] }); } catch {} // If not found, try to find within the CLI diff --git a/packages/angular/cli/commands/version.json b/packages/angular/cli/commands/version.json index 657cb14dce71..8f4c3ff1fdd1 100644 --- a/packages/angular/cli/commands/version.json +++ b/packages/angular/cli/commands/version.json @@ -4,12 +4,10 @@ "description": "Outputs Angular CLI version.", "$longDescription": "", - "$aliases": [ "v" ], + "$aliases": ["v"], "$scope": "all", "$impl": "./version-impl#VersionCommand", "type": "object", - "allOf": [ - { "$ref": "./definitions.json#/definitions/base" } - ] + "allOf": [{ "$ref": "./definitions.json#/definitions/base" }] } diff --git a/packages/angular/cli/lib/cli/index.ts b/packages/angular/cli/lib/cli/index.ts index 7cea5663c8d6..bb187c83f208 100644 --- a/packages/angular/cli/lib/cli/index.ts +++ b/packages/angular/cli/lib/cli/index.ts @@ -17,41 +17,38 @@ import { findWorkspaceFile } from '../../utilities/project'; export { VERSION, Version } from '../../models/version'; const debugEnv = process.env['NG_DEBUG']; -const isDebug = - debugEnv !== undefined && - debugEnv !== '0' && - debugEnv.toLowerCase() !== 'false'; +const isDebug = debugEnv !== undefined && debugEnv !== '0' && debugEnv.toLowerCase() !== 'false'; // tslint:disable: no-console -export default async function(options: { testing?: boolean; cliArgs: string[] }) { +export default async function (options: { testing?: boolean; cliArgs: string[] }) { // This node version check ensures that the requirements of the project instance of the CLI are met - const version = process.versions.node.split('.').map(part => Number(part)); + const version = process.versions.node.split('.').map((part) => Number(part)); if (version[0] < 12 || (version[0] === 12 && version[1] < 14)) { process.stderr.write( `Node.js version ${process.version} detected.\n` + - 'The Angular CLI requires a minimum v12.14.\n\n' + - 'Please update your Node.js version or visit https://nodejs.org/ for additional instructions.\n', + 'The Angular CLI requires a minimum v12.14.\n\n' + + 'Please update your Node.js version or visit https://nodejs.org/ for additional instructions.\n', ); return 3; } const logger = createConsoleLogger(isDebug, process.stdout, process.stderr, { - info: s => (colors.enabled ? s : removeColor(s)), - debug: s => (colors.enabled ? s : removeColor(s)), - warn: s => (colors.enabled ? colors.bold.yellow(s) : removeColor(s)), - error: s => (colors.enabled ? colors.bold.red(s) : removeColor(s)), - fatal: s => (colors.enabled ? colors.bold.red(s) : removeColor(s)), + info: (s) => (colors.enabled ? s : removeColor(s)), + debug: (s) => (colors.enabled ? s : removeColor(s)), + warn: (s) => (colors.enabled ? colors.bold.yellow(s) : removeColor(s)), + error: (s) => (colors.enabled ? colors.bold.red(s) : removeColor(s)), + fatal: (s) => (colors.enabled ? colors.bold.red(s) : removeColor(s)), }); // Redirect console to logger - console.info = console.log = function(...args) { + console.info = console.log = function (...args) { logger.info(format(...args)); }; - console.warn = function(...args) { + console.warn = function (...args) { logger.warn(format(...args)); }; - console.error = function(...args) { + console.error = function (...args) { logger.error(format(...args)); }; diff --git a/packages/angular/cli/lib/config/workspace-schema.json b/packages/angular/cli/lib/config/workspace-schema.json index 43bd1e07ddb4..f6d816ea024e 100644 --- a/packages/angular/cli/lib/config/workspace-schema.json +++ b/packages/angular/cli/lib/config/workspace-schema.json @@ -27,7 +27,7 @@ "projects": { "type": "object", "patternProperties": { - "^(?:@[a-zA-Z0-9_-]+\/)?[a-zA-Z0-9_-]+$": { + "^(?:@[a-zA-Z0-9_-]+/)?[a-zA-Z0-9_-]+$": { "$ref": "#/definitions/project" } }, @@ -35,9 +35,7 @@ } }, "additionalProperties": false, - "required": [ - "version" - ], + "required": ["version"], "definitions": { "cliOptions": { "type": "object", @@ -49,12 +47,7 @@ "packageManager": { "description": "Specify which package manager tool to use.", "type": "string", - "enum": [ - "npm", - "cnpm", - "yarn", - "pnpm" - ] + "enum": ["npm", "cnpm", "yarn", "pnpm"] }, "warnings": { "description": "Control CLI specific console warnings", @@ -67,10 +60,7 @@ } }, "analytics": { - "type": [ - "boolean", - "string" - ], + "type": ["boolean", "string"], "description": "Share anonymous usage data with the Angular Team at Google." }, "analyticsSharing": { @@ -173,10 +163,7 @@ "projectType": { "type": "string", "description": "Project type.", - "enum": [ - "application", - "library" - ] + "enum": ["application", "library"] }, "architect": { "type": "object", @@ -191,37 +178,23 @@ } } }, - "required": [ - "root", - "projectType" - ], + "required": ["root", "projectType"], "anyOf": [ { - "required": [ - "architect" - ], + "required": ["architect"], "not": { - "required": [ - "targets" - ] + "required": ["targets"] } }, { - "required": [ - "targets" - ], + "required": ["targets"], "not": { - "required": [ - "architect" - ] + "required": ["architect"] } }, { "not": { - "required": [ - "targets", - "architect" - ] + "required": ["targets", "architect"] } } ], @@ -351,9 +324,7 @@ } } }, - "required": [ - "builder" - ] + "required": ["builder"] }, { "type": "object", @@ -561,9 +532,7 @@ "$ref": "#/definitions/schematicOptions" } }, - "required": [ - "version" - ] + "required": ["version"] } } -} \ No newline at end of file +} diff --git a/packages/angular/cli/lib/init.ts b/packages/angular/cli/lib/init.ts index cb1764824c87..598b628978a8 100644 --- a/packages/angular/cli/lib/init.ts +++ b/packages/angular/cli/lib/init.ts @@ -91,9 +91,7 @@ if (process.env['NG_CLI_PROFILING']) { .version; } catch (error) { // tslint:disable-next-line no-console - console.error( - 'Version mismatch check skipped. Unable to retrieve local version: ' + error, - ); + console.error('Version mismatch check skipped. Unable to retrieve local version: ' + error); } } @@ -134,17 +132,19 @@ if (process.env['NG_CLI_PROFILING']) { } return cli; -})().then(cli => { - return cli({ - cliArgs: process.argv.slice(2), - inputStream: process.stdin, - outputStream: process.stdout, +})() + .then((cli) => { + return cli({ + cliArgs: process.argv.slice(2), + inputStream: process.stdin, + outputStream: process.stdout, + }); + }) + .then((exitCode: number) => { + process.exit(exitCode); + }) + .catch((err: Error) => { + // tslint:disable-next-line no-console + console.error('Unknown error: ' + err.toString()); + process.exit(127); }); -}).then((exitCode: number) => { - process.exit(exitCode); -}) -.catch((err: Error) => { - // tslint:disable-next-line no-console - console.error('Unknown error: ' + err.toString()); - process.exit(127); -}); diff --git a/packages/angular/cli/models/analytics-collector.ts b/packages/angular/cli/models/analytics-collector.ts index f68745040a5e..da775363f34f 100644 --- a/packages/angular/cli/models/analytics-collector.ts +++ b/packages/angular/cli/models/analytics-collector.ts @@ -85,10 +85,7 @@ export class AnalyticsCollector implements analytics.Analytics { private readonly parameters: Record = {}; private readonly analyticsLogDebug = debug('ng:analytics:log'); - constructor( - trackingId: string, - userId: string, - ) { + constructor(trackingId: string, userId: string) { // API Version this.parameters['v'] = '1'; // User ID @@ -113,8 +110,12 @@ export class AnalyticsCollector implements analytics.Analytics { this.parameters['cd' + analytics.NgCliAnalyticsDimensions.CpuCount] = os.cpus().length; // Get the first CPU's speed. It's very rare to have multiple CPUs of different speed (in most // non-ARM configurations anyway), so that's all we care about. - this.parameters['cd' + analytics.NgCliAnalyticsDimensions.CpuSpeed] = Math.floor(os.cpus()[0].speed); - this.parameters['cd' + analytics.NgCliAnalyticsDimensions.RamInGigabytes] = Math.round(os.totalmem() / (1024 * 1024 * 1024)); + this.parameters['cd' + analytics.NgCliAnalyticsDimensions.CpuSpeed] = Math.floor( + os.cpus()[0].speed, + ); + this.parameters['cd' + analytics.NgCliAnalyticsDimensions.RamInGigabytes] = Math.round( + os.totalmem() / (1024 * 1024 * 1024), + ); this.parameters['cd' + analytics.NgCliAnalyticsDimensions.NodeVersion] = nodeVersion; } @@ -128,7 +129,12 @@ export class AnalyticsCollector implements analytics.Analytics { this.addToQueue('pageview', { dp, dh, dt, metrics, dimensions }); } - timing(utc: string, utv: string, utt: string | number, options: analytics.TimingOptions = {}): void { + timing( + utc: string, + utv: string, + utt: string | number, + options: analytics.TimingOptions = {}, + ): void { const { label: utl, metrics, dimensions } = options; this.addToQueue('timing', { utc, utv, utt, utl, metrics, dimensions }); } @@ -163,7 +169,10 @@ export class AnalyticsCollector implements analytics.Analytics { private addToQueue(eventType: 'pageview', parameters: PageviewParameters): void; private addToQueue(eventType: 'timing', parameters: TimingParameters): void; private addToQueue(eventType: 'screenview', parameters: ScreenviewParameters): void; - private addToQueue(eventType: 'event' | 'pageview' | 'timing' | 'screenview', parameters: BaseParameters): void { + private addToQueue( + eventType: 'event' | 'pageview' | 'timing' | 'screenview', + parameters: BaseParameters, + ): void { const { metrics, dimensions, ...restParameters } = parameters; const data = { ...this.parameters, @@ -180,21 +189,26 @@ export class AnalyticsCollector implements analytics.Analytics { this.analyticsLogDebug('send event: %j', data); return new Promise((resolve, reject) => { - const request = https.request({ - host: 'www.google-analytics.com', - method: 'POST', - path: data.length > 1 ? '/batch' : '/collect', - }, response => { - if (response.statusCode !== 200) { - reject(new Error(`Analytics reporting failed with status code: ${response.statusCode}.`)); - - return; - } - }); + const request = https.request( + { + host: 'www.google-analytics.com', + method: 'POST', + path: data.length > 1 ? '/batch' : '/collect', + }, + (response) => { + if (response.statusCode !== 200) { + reject( + new Error(`Analytics reporting failed with status code: ${response.statusCode}.`), + ); + + return; + } + }, + ); request.on('error', reject); - const queryParameters = data.map(p => querystring.stringify(p)).join('\n'); + const queryParameters = data.map((p) => querystring.stringify(p)).join('\n'); request.write(queryParameters); request.end(resolve); }); @@ -204,12 +218,14 @@ export class AnalyticsCollector implements analytics.Analytics { * Creates the dimension and metrics variables to add to the queue. * @private */ - private customVariables(options: analytics.CustomDimensionsAndMetricsOptions): Record { + private customVariables( + options: analytics.CustomDimensionsAndMetricsOptions, + ): Record { const additionals: Record = {}; const { dimensions, metrics } = options; - dimensions?.forEach((v, i) => additionals[`cd${i}`] = v); - metrics?.forEach((v, i) => additionals[`cm${i}`] = v); + dimensions?.forEach((v, i) => (additionals[`cd${i}`] = v)); + metrics?.forEach((v, i) => (additionals[`cm${i}`] = v)); return additionals; } @@ -282,7 +298,6 @@ function _buildUserAgentString() { } } - /** * Get a language code. * @private @@ -311,7 +326,7 @@ function _getWindowsLanguageCode(): string | undefined { // This is true on Windows XP, 7, 8 and 10 AFAIK. Would return empty string or fail if it // doesn't work. return execSync('wmic.exe os get locale').toString().trim(); - } catch { } + } catch {} return undefined; } diff --git a/packages/angular/cli/models/analytics.ts b/packages/angular/cli/models/analytics.ts index 037ff0599cf9..2002c9ad06c0 100644 --- a/packages/angular/cli/models/analytics.ts +++ b/packages/angular/cli/models/analytics.ts @@ -51,7 +51,7 @@ export const analyticsPackageSafelist = [ ]; export function isPackageNameSafeForAnalytics(name: string): boolean { - return analyticsPackageSafelist.some(pattern => { + return analyticsPackageSafelist.some((pattern) => { if (typeof pattern == 'string') { return pattern === name; } else { @@ -86,7 +86,6 @@ export function setAnalyticsConfig(level: 'global' | 'local', value: string | bo config.save(); analyticsDebug('done'); - } /** @@ -207,7 +206,7 @@ export async function hasGlobalAnalyticsConfiguration(): Promise { if (analyticsConfig !== null && analyticsConfig !== undefined) { return true; } - } catch { } + } catch {} return false; } @@ -278,14 +277,13 @@ export async function getGlobalAnalytics(): Promise { try { const globalWorkspace = await getWorkspace('local'); - const analyticsConfig: string | undefined | null | { uid?: string } = globalWorkspace - && globalWorkspace.getCli() - && globalWorkspace.getCli()['analytics']; + const analyticsConfig: string | undefined | null | { uid?: string } = + globalWorkspace && globalWorkspace.getCli() && globalWorkspace.getCli()['analytics']; if (analyticsConfig !== undefined) { return true; } - } catch { } + } catch {} return false; } @@ -300,7 +298,9 @@ export async function getWorkspaceAnalytics(): Promise { this._registry = new json.schema.CoreSchemaRegistry(); this._registry.addPostTransform(json.schema.transforms.addUndefinedDefaults); - this._registry.useXDeprecatedProvider(msg => this.logger.warn(msg)); + this._registry.useXDeprecatedProvider((msg) => this.logger.warn(msg)); if (!this.workspace) { this.logger.fatal('A workspace is required for this command.'); @@ -47,7 +47,10 @@ export abstract class ArchitectCommand< return 1; } - this._architectHost = new WorkspaceNodeModulesArchitectHost(this.workspace, this.workspace.basePath); + this._architectHost = new WorkspaceNodeModulesArchitectHost( + this.workspace, + this.workspace.basePath, + ); this._architect = new Architect(this._architectHost, this._registry); if (!this.target) { @@ -82,14 +85,18 @@ export abstract class ArchitectCommand< } if (targetProjectNames.length === 0) { - this.logger.fatal(this.missingTargetError || `No projects support the '${this.target}' target.`); + this.logger.fatal( + this.missingTargetError || `No projects support the '${this.target}' target.`, + ); return 1; } if (projectName && !targetProjectNames.includes(projectName)) { - this.logger.fatal(this.missingTargetError || - `Project '${projectName}' does not support the '${this.target}' target.`); + this.logger.fatal( + this.missingTargetError || + `Project '${projectName}' does not support the '${this.target}' target.`, + ); return 1; } @@ -117,7 +124,9 @@ export abstract class ArchitectCommand< const builderLeftovers = parsedOptions['--'] || []; leftoverMap.set(name, { optionDefs, parsedOptions }); - potentialProjectNames = new Set(builderLeftovers.filter(x => potentialProjectNames.has(x))); + potentialProjectNames = new Set( + builderLeftovers.filter((x) => potentialProjectNames.has(x)), + ); } if (potentialProjectNames.size === 1) { @@ -170,7 +179,9 @@ export abstract class ArchitectCommand< // This is a special case where we just return. return; } else { - this.logger.fatal(this.missingTargetError || 'Cannot determine project or target for command.'); + this.logger.fatal( + this.missingTargetError || 'Cannot determine project or target for command.', + ); return 1; } @@ -203,10 +214,7 @@ export abstract class ArchitectCommand< return await this.runArchitectTarget(options); } - protected async runSingleTarget( - target: Target, - targetOptions: string[], - ) { + protected async runSingleTarget(target: Target, targetOptions: string[]) { // We need to build the builderSpec twice because architect does not understand // overrides separately (getting the configuration builds the whole project, including // overrides). @@ -222,7 +230,7 @@ export abstract class ArchitectCommand< typeof builderDesc.optionSchema === 'object' && builderDesc.optionSchema.additionalProperties; if (overrides['--'] && !allowAdditionalProperties) { - (overrides['--'] || []).forEach(additional => { + (overrides['--'] || []).forEach((additional) => { this.logger.fatal(`Unknown option: '${additional.split(/=/)[0]}'`); }); @@ -230,7 +238,7 @@ export abstract class ArchitectCommand< } await this.reportAnalytics([this.description.name], { - ...await this._architectHost.getOptionsForTarget(target) as unknown as T, + ...(((await this._architectHost.getOptionsForTarget(target)) as unknown) as T), ...overrides, }); @@ -261,10 +269,7 @@ export abstract class ArchitectCommand< // Running them in parallel would jumble the log messages. let result = 0; for (const project of this.getProjectNamesByTarget(this.target)) { - result |= await this.runSingleTarget( - { ...targetSpec, project } as Target, - extra, - ); + result |= await this.runSingleTarget({ ...targetSpec, project } as Target, extra); } return result; @@ -341,12 +346,15 @@ export abstract class ArchitectCommand< if (commandOptions.prod) { // The --prod flag will always be the first configuration, available to be overwritten // by following configurations. - this.logger.warn('Option "--prod" is deprecated: Use "--configuration production" instead.'); + this.logger.warn( + 'Option "--prod" is deprecated: Use "--configuration production" instead.', + ); configuration = 'production'; } if (commandOptions.configuration) { - configuration = - `${configuration ? `${configuration},` : ''}${commandOptions.configuration}`; + configuration = `${configuration ? `${configuration},` : ''}${ + commandOptions.configuration + }`; } } diff --git a/packages/angular/cli/models/command-runner.ts b/packages/angular/cli/models/command-runner.ts index 3a7401b4852e..0b8b01fe4baa 100644 --- a/packages/angular/cli/models/command-runner.ts +++ b/packages/angular/cli/models/command-runner.ts @@ -61,7 +61,10 @@ export interface CommandMapOptions { * Create the analytics instance. * @private */ -async function _createAnalytics(workspace: boolean, skipPrompt = false): Promise { +async function _createAnalytics( + workspace: boolean, + skipPrompt = false, +): Promise { let config = await getGlobalAnalytics(); // If in workspace and global analytics is enabled, defer to workspace level if (workspace && config) { @@ -119,7 +122,9 @@ export async function runCommand( logger: logging.Logger, workspace: AngularWorkspace | undefined, commands: CommandMapOptions = standardCommands, - options: { analytics?: analytics.Analytics; currentDirectory: string } = { currentDirectory: process.cwd() }, + options: { analytics?: analytics.Analytics; currentDirectory: string } = { + currentDirectory: process.cwd(), + }, ): Promise { // This registry is exclusively used for flattening schemas, and not for validating. const registry = new schema.CoreSchemaRegistry([]); @@ -189,7 +194,7 @@ export async function runCommand( const aliasDesc = await loadCommandDescription(name, commands[name], registry); const aliases = aliasDesc.aliases; - if (aliases && aliases.some(alias => alias === commandName)) { + if (aliases && aliases.some((alias) => alias === commandName)) { commandName = name; description = aliasDesc; break; @@ -233,8 +238,7 @@ export async function runCommand( }); const analytics = - options.analytics || - (await _createAnalytics(!!workspace, description.name === 'update')); + options.analytics || (await _createAnalytics(!!workspace, description.name === 'update')); const context = { workspace, analytics, diff --git a/packages/angular/cli/models/command.ts b/packages/angular/cli/models/command.ts index 7f334aefe748..b9f49d0ec1a0 100644 --- a/packages/angular/cli/models/command.ts +++ b/packages/angular/cli/models/command.ts @@ -53,9 +53,8 @@ export abstract class Command } async printJsonHelp(): Promise { - const replacer = (key: string, value: string) => key === 'name' - ? strings.dasherize(value) - : value; + const replacer = (key: string, value: string) => + key === 'name' ? strings.dasherize(value) : value; this.logger.info(JSON.stringify(this.description, replacer, 2)); return 0; @@ -65,10 +64,11 @@ export abstract class Command this.logger.info(this.description.description); const name = this.description.name; - const args = this.description.options.filter(x => x.positional !== undefined); - const opts = this.description.options.filter(x => x.positional === undefined); + const args = this.description.options.filter((x) => x.positional !== undefined); + const opts = this.description.options.filter((x) => x.positional === undefined); - const argDisplay = args && args.length > 0 ? ' ' + args.map(a => `<${a.name}>`).join(' ') : ''; + const argDisplay = + args && args.length > 0 ? ' ' + args.map((a) => `<${a.name}>`).join(' ') : ''; const optionsDisplay = opts && opts.length > 0 ? ` [options]` : ``; this.logger.info(`usage: ng ${name}${argDisplay}${optionsDisplay}`); @@ -82,15 +82,15 @@ export abstract class Command } protected async printHelpOptions(options: Option[] = this.description.options) { - const args = options.filter(opt => opt.positional !== undefined); - const opts = options.filter(opt => opt.positional === undefined); + const args = options.filter((opt) => opt.positional !== undefined); + const opts = options.filter((opt) => opt.positional === undefined); const formatDescription = (description: string) => ` ${description.replace(/\n/g, '\n ')}`; if (args.length > 0) { this.logger.info(`arguments:`); - args.forEach(o => { + args.forEach((o) => { this.logger.info(` ${colors.cyan(o.name)}`); if (o.description) { this.logger.info(formatDescription(o.description)); @@ -103,12 +103,12 @@ export abstract class Command } this.logger.info(`options:`); opts - .filter(o => !o.hidden) + .filter((o) => !o.hidden) .sort((a, b) => a.name.localeCompare(b.name)) - .forEach(o => { + .forEach((o) => { const aliases = o.aliases && o.aliases.length > 0 - ? '(' + o.aliases.map(a => `-${a}`).join(' ') + ')' + ? '(' + o.aliases.map((a) => `-${a}`).join(' ') + ')' : ''; this.logger.info(` ${colors.cyan('--' + strings.dasherize(o.name))} ${aliases}`); if (o.description) { diff --git a/packages/angular/cli/models/interface.ts b/packages/angular/cli/models/interface.ts index cb4bde347ce8..9c908d913247 100644 --- a/packages/angular/cli/models/interface.ts +++ b/packages/angular/cli/models/interface.ts @@ -39,7 +39,7 @@ export interface CommandInterface { * Command constructor. */ export interface CommandConstructor { - new( + new ( context: CommandContext, description: CommandDescription, logger: logging.Logger, @@ -158,7 +158,7 @@ export interface Option { /** * Deprecation. If this flag is not false a warning will be shown on the console. Either `true` * or a string to show the user as a notice. - */ + */ deprecated?: boolean | string; } diff --git a/packages/angular/cli/models/parser.ts b/packages/angular/cli/models/parser.ts index 66e81aed78c7..b1e98d0b3f2a 100644 --- a/packages/angular/cli/models/parser.ts +++ b/packages/angular/cli/models/parser.ts @@ -9,7 +9,6 @@ import { BaseException, logging, strings } from '@angular-devkit/core'; import { Arguments, Option, OptionType, Value } from './interface'; - export class ParseArgumentException extends BaseException { constructor( public readonly comments: string[], @@ -20,7 +19,6 @@ export class ParseArgumentException extends BaseException { } } - function _coerceType(str: string | undefined, type: OptionType, v?: Value): Value | undefined { switch (type) { case OptionType.Any: @@ -31,8 +29,8 @@ function _coerceType(str: string | undefined, type: OptionType, v?: Value): Valu return _coerceType(str, OptionType.Boolean, v) !== undefined ? _coerceType(str, OptionType.Boolean, v) : _coerceType(str, OptionType.Number, v) !== undefined - ? _coerceType(str, OptionType.Number, v) - : _coerceType(str, OptionType.String, v); + ? _coerceType(str, OptionType.Number, v) + : _coerceType(str, OptionType.String, v); case OptionType.String: return str || ''; @@ -66,8 +64,8 @@ function _coerceType(str: string | undefined, type: OptionType, v?: Value): Valu return Array.isArray(v) ? v.concat(str || '') : v === undefined - ? [str || ''] - : [v + '', str || '']; + ? [str || ''] + : [v + '', str || '']; default: return undefined; @@ -93,18 +91,15 @@ function _coerce(str: string | undefined, o: Option | null, v?: Value): Value | } } - function _getOptionFromName(name: string, options: Option[]): Option | undefined { - const camelName = /(-|_)/.test(name) - ? strings.camelize(name) - : name; + const camelName = /(-|_)/.test(name) ? strings.camelize(name) : name; for (const option of options) { if (option.name === name || option.name === camelName) { return option; } - if (option.aliases.some(x => x === name || x === camelName)) { + if (option.aliases.some((x) => x === name || x === camelName)) { return option; } } @@ -121,14 +116,21 @@ function _removeLeadingDashes(key: string): string { function _assignOption( arg: string, nextArg: string | undefined, - { options, parsedOptions, leftovers, ignored, errors, warnings }: { - options: Option[], - parsedOptions: Arguments, - positionals: string[], - leftovers: string[], - ignored: string[], - errors: string[], - warnings: string[], + { + options, + parsedOptions, + leftovers, + ignored, + errors, + warnings, + }: { + options: Option[]; + parsedOptions: Arguments; + positionals: string[]; + leftovers: string[]; + ignored: string[]; + errors: string[]; + warnings: string[]; }, ) { const from = arg.startsWith('--') ? 2 : 1; @@ -192,9 +194,9 @@ function _assignOption( if (parsedOptions[option.name] !== v) { if (parsedOptions[option.name] !== undefined && option.type !== OptionType.Array) { warnings.push( - `Option ${JSON.stringify(option.name)} was already specified with value ` - + `${JSON.stringify(parsedOptions[option.name])}. The new value ${JSON.stringify(v)} ` - + `will override it.`, + `Option ${JSON.stringify(option.name)} was already specified with value ` + + `${JSON.stringify(parsedOptions[option.name])}. The new value ${JSON.stringify(v)} ` + + `will override it.`, ); } @@ -203,7 +205,7 @@ function _assignOption( } else { let error = `Argument ${key} could not be parsed using value ${JSON.stringify(value)}.`; if (option.enum) { - error += ` Valid values are: ${option.enum.map(x => JSON.stringify(x)).join(', ')}.`; + error += ` Valid values are: ${option.enum.map((x) => JSON.stringify(x)).join(', ')}.`; } else { error += `Valid type(s) is: ${(option.types || [option.type]).join(', ')}`; } @@ -215,7 +217,7 @@ function _assignOption( if (/^[a-z]+[A-Z]/.test(key)) { warnings.push( 'Support for camel case arguments has been deprecated and will be removed in a future major version.\n' + - `Use '--${strings.dasherize(key)}' instead of '--${key}'.`, + `Use '--${strings.dasherize(key)}' instead of '--${key}'.`, ); } } @@ -223,7 +225,6 @@ function _assignOption( return consumedNextArg; } - /** * Parse the arguments in a consistent way, but without having any option definition. This tries * to assess what the user wants in a free form. For example, using `--name=false` will set the @@ -261,7 +262,7 @@ export function parseFreeFormArguments(args: string[]): Arguments { parsedOptions[name] = v; } } else if (arg.startsWith('-')) { - arg.split('').forEach(x => parsedOptions[x] = true); + arg.split('').forEach((x) => (parsedOptions[x] = true)); } else { leftovers.push(arg); } @@ -274,7 +275,6 @@ export function parseFreeFormArguments(args: string[]): Arguments { return parsedOptions; } - /** * Parse the arguments in a consistent way, from a list of standardized options. * The result object will have a key per option name, with the `_` key reserved for positional @@ -357,7 +357,7 @@ export function parseArguments( // simpler. if (positionals.length > 0) { let pos = 0; - for (let i = 0; i < positionals.length;) { + for (let i = 0; i < positionals.length; ) { let found = false; let incrementPos = false; let incrementI = true; @@ -394,7 +394,7 @@ export function parseArguments( } if (warnings.length > 0 && logger) { - warnings.forEach(message => logger.warn(message)); + warnings.forEach((message) => logger.warn(message)); } if (errors.length > 0) { diff --git a/packages/angular/cli/models/parser_spec.ts b/packages/angular/cli/models/parser_spec.ts index e57b852387a4..8cb844edb4f6 100644 --- a/packages/angular/cli/models/parser_spec.ts +++ b/packages/angular/cli/models/parser_spec.ts @@ -13,27 +13,47 @@ import { ParseArgumentException, parseArguments } from './parser'; describe('parseArguments', () => { const options: Option[] = [ - { name: 'bool', aliases: [ 'b' ], type: OptionType.Boolean, description: '' }, - { name: 'num', aliases: [ 'n' ], type: OptionType.Number, description: '' }, - { name: 'str', aliases: [ 's' ], type: OptionType.String, description: '' }, - { name: 'strUpper', aliases: [ 'S' ], type: OptionType.String, description: '' }, + { name: 'bool', aliases: ['b'], type: OptionType.Boolean, description: '' }, + { name: 'num', aliases: ['n'], type: OptionType.Number, description: '' }, + { name: 'str', aliases: ['s'], type: OptionType.String, description: '' }, + { name: 'strUpper', aliases: ['S'], type: OptionType.String, description: '' }, { name: 'helloWorld', aliases: [], type: OptionType.String, description: '' }, { name: 'helloBool', aliases: [], type: OptionType.Boolean, description: '' }, - { name: 'arr', aliases: [ 'a' ], type: OptionType.Array, description: '' }, + { name: 'arr', aliases: ['a'], type: OptionType.Array, description: '' }, { name: 'p1', positional: 0, aliases: [], type: OptionType.String, description: '' }, { name: 'p2', positional: 1, aliases: [], type: OptionType.String, description: '' }, { name: 'p3', positional: 2, aliases: [], type: OptionType.Number, description: '' }, - { name: 't1', aliases: [], type: OptionType.Boolean, - types: [OptionType.Boolean, OptionType.String], description: '' }, - { name: 't2', aliases: [], type: OptionType.Boolean, - types: [OptionType.Boolean, OptionType.Number], description: '' }, - { name: 't3', aliases: [], type: OptionType.Number, - types: [OptionType.Number, OptionType.Any], description: '' }, + { + name: 't1', + aliases: [], + type: OptionType.Boolean, + types: [OptionType.Boolean, OptionType.String], + description: '', + }, + { + name: 't2', + aliases: [], + type: OptionType.Boolean, + types: [OptionType.Boolean, OptionType.Number], + description: '', + }, + { + name: 't3', + aliases: [], + type: OptionType.Number, + types: [OptionType.Number, OptionType.Any], + description: '', + }, { name: 'e1', aliases: [], type: OptionType.String, enum: ['hello', 'world'], description: '' }, { name: 'e2', aliases: [], type: OptionType.String, enum: ['hello', ''], description: '' }, - { name: 'e3', aliases: [], type: OptionType.Boolean, - types: [OptionType.Boolean, OptionType.String], enum: ['json', true, false], - description: '' }, + { + name: 'e3', + aliases: [], + type: OptionType.Boolean, + types: [OptionType.Boolean, OptionType.String], + enum: ['json', true, false], + description: '', + }, ]; const tests: { [test: string]: Partial | ['!!!', Partial, string[]] } = { @@ -75,10 +95,15 @@ describe('parseArguments', () => { '--bool val1 --etc --num val2 --v': [ '!!!', { bool: true, p1: 'val1', p2: 'val2', '--': ['--etc', '--v'] }, - ['--num' ], + ['--num'], ], - '--bool val1 --etc --num=1 val2 --v': { bool: true, num: 1, p1: 'val1', p2: 'val2', - '--': ['--etc', '--v'] }, + '--bool val1 --etc --num=1 val2 --v': { + bool: true, + num: 1, + p1: 'val1', + p2: 'val2', + '--': ['--etc', '--v'], + }, '--arr=a d': { arr: ['a'], p1: 'd' }, '--arr=a --arr=b --arr c d': { arr: ['a', 'b', 'c'], p1: 'd' }, '--arr=1 --arr --arr c d': { arr: ['1', '', 'c'], p1: 'd' }, @@ -121,7 +146,7 @@ describe('parseArguments', () => { '--e1=yellow': ['!!!', {}, ['--e1=yellow']], '--e1': ['!!!', {}, ['--e1']], '--e1 true': ['!!!', { p1: 'true' }, ['--e1']], - '--e1=true': ['!!!', {}, ['--e1=true']], + '--e1=true': ['!!!', {}, ['--e1=true']], '--e2 hello': { e2: 'hello' }, '--e2=hello': { e2: 'hello' }, '--e2 yellow': { p1: 'yellow', e2: '' }, @@ -138,13 +163,13 @@ describe('parseArguments', () => { '--e3=true': { e3: true }, 'a b c 1': { p1: 'a', p2: 'b', '--': ['c', '1'] }, - '-p=1 -c=prod': {'--': ['-p=1', '-c=prod'] }, - '--p --c': {'--': ['--p', '--c'] }, - '--p=123': {'--': ['--p=123'] }, - '--p -c': {'--': ['--p', '-c'] }, - '-p --c': {'--': ['-p', '--c'] }, - '-p --c 123': {'--': ['-p', '--c', '123'] }, - '--c 123 -p': {'--': ['--c', '123', '-p'] }, + '-p=1 -c=prod': { '--': ['-p=1', '-c=prod'] }, + '--p --c': { '--': ['--p', '--c'] }, + '--p=123': { '--': ['--p=123'] }, + '--p -c': { '--': ['--p', '-c'] }, + '-p --c': { '--': ['-p', '--c'] }, + '-p --c 123': { '--': ['-p', '--c', '123'] }, + '--c 123 -p': { '--': ['--c', '123', '-p'] }, }; Object.entries(tests).forEach(([str, expected]) => { @@ -172,14 +197,12 @@ describe('parseArguments', () => { }); it('handles a flag being added multiple times', () => { - const options = [ - { name: 'bool', aliases: [], type: OptionType.Boolean, description: '' }, - ]; + const options = [{ name: 'bool', aliases: [], type: OptionType.Boolean, description: '' }]; const logger = new logging.Logger(''); const messages: string[] = []; - logger.subscribe(entry => messages.push(entry.message)); + logger.subscribe((entry) => messages.push(entry.message)); let result = parseArguments(['--bool'], options, logger); expect(result).toEqual({ bool: true }); diff --git a/packages/angular/cli/models/schematic-command.ts b/packages/angular/cli/models/schematic-command.ts index 99d2f13a95c1..944bcf98ac52 100644 --- a/packages/angular/cli/models/schematic-command.ts +++ b/packages/angular/cli/models/schematic-command.ts @@ -6,14 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import { - logging, - normalize, - schema, - strings, - tags, - workspaces, -} from '@angular-devkit/core'; +import { logging, normalize, schema, strings, tags, workspaces } from '@angular-devkit/core'; import { DryRunEvent, UnsuccessfulWorkflowExecution, @@ -89,7 +82,7 @@ export abstract class SchematicCommand< schematic.description.schemaJson || {}, ); - this.description.options.push(...options.filter(x => !x.hidden)); + this.description.options.push(...options.filter((x) => !x.hidden)); // Remove any user analytics from schematics that are NOT part of our safelist. for (const o of this.description.options) { @@ -104,7 +97,7 @@ export abstract class SchematicCommand< await super.printHelp(); this.logger.info(''); - const subCommandOption = this.description.options.filter(x => x.subcommands)[0]; + const subCommandOption = this.description.options.filter((x) => x.subcommands)[0]; if (!subCommandOption || !subCommandOption.subcommands) { return 0; @@ -116,7 +109,7 @@ export abstract class SchematicCommand< this.logger.info('Available Schematics:'); const namesPerCollection: { [c: string]: string[] } = {}; - schematicNames.forEach(name => { + schematicNames.forEach((name) => { let [collectionName, schematicName] = name.split(/:/, 2); if (!schematicName) { schematicName = collectionName; @@ -131,11 +124,11 @@ export abstract class SchematicCommand< }); const defaultCollection = await this.getDefaultSchematicCollection(); - Object.keys(namesPerCollection).forEach(collectionName => { + Object.keys(namesPerCollection).forEach((collectionName) => { const isDefault = defaultCollection == collectionName; this.logger.info(` Collection "${collectionName}"${isDefault ? ' (default)' : ''}:`); - namesPerCollection[collectionName].forEach(schematicName => { + namesPerCollection[collectionName].forEach((schematicName) => { this.logger.info(` ${schematicName}`); }); }); @@ -148,7 +141,7 @@ export abstract class SchematicCommand< } async printHelpUsage() { - const subCommandOption = this.description.options.filter(x => x.subcommands)[0]; + const subCommandOption = this.description.options.filter((x) => x.subcommands)[0]; if (!subCommandOption || !subCommandOption.subcommands) { return; @@ -158,7 +151,7 @@ export abstract class SchematicCommand< if (schematicNames.length == 1) { this.logger.info(this.description.description); - const opts = this.description.options.filter(x => x.positional === undefined); + const opts = this.description.options.filter((x) => x.positional === undefined); const [collectionName, schematicName] = schematicNames[0].split(/:/)[0]; // Display if this is not the default collectionName, @@ -169,10 +162,10 @@ export abstract class SchematicCommand< : schematicNames[0]; const schematicOptions = subCommandOption.subcommands[schematicNames[0]].options; - const schematicArgs = schematicOptions.filter(x => x.positional !== undefined); + const schematicArgs = schematicOptions.filter((x) => x.positional !== undefined); const argDisplay = schematicArgs.length > 0 - ? ' ' + schematicArgs.map(a => `<${strings.dasherize(a.name)}>`).join(' ') + ? ' ' + schematicArgs.map((a) => `<${strings.dasherize(a.name)}>`).join(' ') : ''; this.logger.info(tags.oneLine` @@ -214,16 +207,13 @@ export abstract class SchematicCommand< } return options - .filter(o => o.format === 'path') - .map(o => o.name) - .reduce( - (acc, curr) => { - acc[curr] = workingDir; - - return acc; - }, - {} as { [name: string]: string }, - ); + .filter((o) => o.format === 'path') + .map((o) => o.name) + .reduce((acc, curr) => { + acc[curr] = workingDir; + + return acc; + }, {} as { [name: string]: string }); } /* @@ -244,18 +234,22 @@ export abstract class SchematicCommand< // A schema registry is required to allow customizing addUndefinedDefaults registry: new schema.CoreSchemaRegistry(formats.standardFormats), resolvePaths: this.workspace - // Workspace - ? this.collectionName === this.defaultCollectionName - // Favor __dirname for @schematics/angular to use the build-in version - ? [__dirname, process.cwd(), root] + ? // Workspace + this.collectionName === this.defaultCollectionName + ? // Favor __dirname for @schematics/angular to use the build-in version + [__dirname, process.cwd(), root] : [process.cwd(), root, __dirname] - // Global - : [__dirname, process.cwd()], + : // Global + [__dirname, process.cwd()], schemaValidation: true, optionTransforms: [ // Add configuration file defaults async (schematic, current) => ({ - ...(await getSchematicDefaults(schematic.collection.name, schematic.name, getProjectName())), + ...(await getSchematicDefaults( + schematic.collection.name, + schematic.name, + getProjectName(), + )), ...current, }), ], @@ -264,7 +258,11 @@ export abstract class SchematicCommand< const getProjectName = () => { if (this.workspace) { - const projectNames = getProjectsByPath(this.workspace, process.cwd(), this.workspace.basePath); + const projectNames = getProjectsByPath( + this.workspace, + process.cwd(), + this.workspace.basePath, + ); if (projectNames.length === 1) { return projectNames[0]; @@ -289,7 +287,7 @@ export abstract class SchematicCommand< workflow.registry.addPostTransform(schema.transforms.addUndefinedDefaults); workflow.registry.addSmartDefaultProvider('projectName', getProjectName); - workflow.registry.useXDeprecatedProvider(msg => this.logger.warn(msg)); + workflow.registry.useXDeprecatedProvider((msg) => this.logger.warn(msg)); let shouldReportAnalytics = true; workflow.engineHost.registerOptionsTransform(async (_, options) => { @@ -304,8 +302,8 @@ export abstract class SchematicCommand< if (options.interactive !== false && isTTY()) { workflow.registry.usePromptProvider((definitions: Array) => { const questions: inquirer.QuestionCollection = definitions - .filter(definition => !options.defaults || definition.default === undefined) - .map(definition => { + .filter((definition) => !options.defaults || definition.default === undefined) + .map((definition) => { const question: inquirer.Question = { name: definition.id, message: definition.message, @@ -314,7 +312,7 @@ export abstract class SchematicCommand< const validator = definition.validator; if (validator) { - question.validate = input => validator(input); + question.validate = (input) => validator(input); // Filter allows transformation of the value prior to validation question.filter = async (input) => { @@ -349,13 +347,13 @@ export abstract class SchematicCommand< break; case 'list': question.type = definition.multiselect ? 'checkbox' : 'list'; - (question as inquirer.CheckboxQuestion).choices = definition.items?.map(item => { + (question as inquirer.CheckboxQuestion).choices = definition.items?.map((item) => { return typeof item == 'string' ? item : { - name: item.label, - value: item.value, - }; + name: item.label, + value: item.value, + }; }); break; default: @@ -438,10 +436,11 @@ export abstract class SchematicCommand< } const allowAdditionalProperties = - typeof schematic.description.schemaJson === 'object' && schematic.description.schemaJson.additionalProperties; + typeof schematic.description.schemaJson === 'object' && + schematic.description.schemaJson.additionalProperties; if (args['--'] && !allowAdditionalProperties) { - args['--'].forEach(additional => { + args['--'].forEach((additional) => { this.logger.fatal(`Unknown option: '${additional.split(/=/)[0]}'`); }); @@ -492,11 +491,11 @@ export abstract class SchematicCommand< } }); - workflow.lifeCycle.subscribe(event => { + workflow.lifeCycle.subscribe((event) => { if (event.kind == 'end' || event.kind == 'post-tasks-start') { if (!error) { // Output the logging queue, no error happened. - loggingQueue.forEach(log => this.logger.info(log)); + loggingQueue.forEach((log) => this.logger.info(log)); } loggingQueue = []; @@ -514,7 +513,7 @@ export abstract class SchematicCommand< } } - return new Promise(resolve => { + return new Promise((resolve) => { workflow .execute({ collection: collectionName, @@ -586,7 +585,7 @@ function getProjectsByPath( const projects = Array.from(workspace.projects.entries()) .map(([name, project]) => [systemPath.resolve(root, project.root), name] as [string, string]) - .filter(tuple => isInside(tuple[0], path)) + .filter((tuple) => isInside(tuple[0], path)) // Sort tuples by depth, with the deeper ones first. Since the first member is a path and // we filtered all invalid paths, the longest will be the deepest (and in case of equality // the sort is stable and the first declared project will win). @@ -597,7 +596,7 @@ function getProjectsByPath( } else if (projects.length > 1) { const firstPath = projects[0][0]; - return projects.filter(v => v[0] === firstPath).map(v => v[1]); + return projects.filter((v) => v[0] === firstPath).map((v) => v[1]); } return []; diff --git a/packages/angular/cli/src/commands/update/schematic/index.ts b/packages/angular/cli/src/commands/update/schematic/index.ts index 21005571bd9d..ef7d2f914c3a 100644 --- a/packages/angular/cli/src/commands/update/schematic/index.ts +++ b/packages/angular/cli/src/commands/update/schematic/index.ts @@ -7,12 +7,7 @@ */ import { logging, tags } from '@angular-devkit/core'; -import { - Rule, - SchematicContext, - SchematicsException, - Tree, -} from '@angular-devkit/schematics'; +import { Rule, SchematicContext, SchematicsException, Tree } from '@angular-devkit/schematics'; import { NodePackageInstallTask } from '@angular-devkit/schematics/tasks'; import * as npa from 'npm-package-arg'; import * as semver from 'semver'; @@ -21,10 +16,9 @@ import { NpmRepositoryPackageJson } from './npm-package-json'; import { Dependency, JsonSchemaForNpmPackageJsonFiles } from './package-json'; import { Schema as UpdateSchema } from './schema'; -type VersionRange = string & { __VERSION_RANGE: void; }; +type VersionRange = string & { __VERSION_RANGE: void }; type PeerVersionTransform = string | ((range: string) => string); - // Angular guarantees that a major is compatible with its following major (so packages that depend // on Angular 5 are also compatible with Angular 6). This is, in code, represented by verifying // that all other packages that have a peer dependency of `"@angular/core": "^5.0.0"` actually @@ -56,7 +50,6 @@ export function angularMajorCompatGuarantee(range: string) { return semver.validRange(newRange) || range; } - // This is a map of packageGroupName to range extending function. If it isn't found, the range is // kept the same. const knownPeerCompatibleList: { [name: string]: PeerVersionTransform } = { @@ -79,7 +72,7 @@ interface PackageInfo { interface UpdateMetadata { packageGroupName?: string; - packageGroup: { [ packageName: string ]: string }; + packageGroup: { [packageName: string]: string }; requirements: { [packageName: string]: string }; migrations?: string; } @@ -111,8 +104,8 @@ function _updatePeerVersion(infoMap: Map, name: string, ran function _validateForwardPeerDependencies( name: string, infoMap: Map, - peers: {[name: string]: string}, - peersMeta: { [name: string]: { optional?: boolean }}, + peers: { [name: string]: string }, + peersMeta: { [name: string]: { optional?: boolean } }, logger: logging.LoggerApi, next: boolean, ): boolean { @@ -123,26 +116,31 @@ function _validateForwardPeerDependencies( const isOptional = peersMeta[peer] && !!peersMeta[peer].optional; if (!maybePeerInfo) { if (!isOptional) { - logger.warn([ - `Package ${JSON.stringify(name)} has a missing peer dependency of`, - `${JSON.stringify(peer)} @ ${JSON.stringify(range)}.`, - ].join(' ')); + logger.warn( + [ + `Package ${JSON.stringify(name)} has a missing peer dependency of`, + `${JSON.stringify(peer)} @ ${JSON.stringify(range)}.`, + ].join(' '), + ); } continue; } - const peerVersion = maybePeerInfo.target && maybePeerInfo.target.packageJson.version - ? maybePeerInfo.target.packageJson.version - : maybePeerInfo.installed.version; + const peerVersion = + maybePeerInfo.target && maybePeerInfo.target.packageJson.version + ? maybePeerInfo.target.packageJson.version + : maybePeerInfo.installed.version; logger.debug(` Range intersects(${range}, ${peerVersion})...`); if (!semver.satisfies(peerVersion, range, { includePrerelease: next || undefined })) { - logger.error([ - `Package ${JSON.stringify(name)} has an incompatible peer dependency to`, - `${JSON.stringify(peer)} (requires ${JSON.stringify(range)},`, - `would install ${JSON.stringify(peerVersion)})`, - ].join(' ')); + logger.error( + [ + `Package ${JSON.stringify(name)} has an incompatible peer dependency to`, + `${JSON.stringify(peer)} (requires ${JSON.stringify(range)},`, + `would install ${JSON.stringify(peerVersion)})`, + ].join(' '), + ); validationFailed = true; continue; @@ -152,7 +150,6 @@ function _validateForwardPeerDependencies( return validationFailed; } - function _validateReversePeerDependencies( name: string, version: string, @@ -188,12 +185,14 @@ function _validateReversePeerDependencies( const extendedRange = _updatePeerVersion(infoMap, peer, range); if (!semver.satisfies(version, extendedRange, { includePrerelease: next || undefined })) { - logger.error([ - `Package ${JSON.stringify(installed)} has an incompatible peer dependency to`, - `${JSON.stringify(name)} (requires`, - `${JSON.stringify(range)}${extendedRange == range ? '' : ' (extended)'},`, - `would install ${JSON.stringify(version)}).`, - ].join(' ')); + logger.error( + [ + `Package ${JSON.stringify(installed)} has an incompatible peer dependency to`, + `${JSON.stringify(name)} (requires`, + `${JSON.stringify(range)}${extendedRange == range ? '' : ' (extended)'},`, + `would install ${JSON.stringify(version)}).`, + ].join(' '), + ); return true; } @@ -210,15 +209,15 @@ function _validateUpdatePackages( logger: logging.LoggerApi, ): void { logger.debug('Updating the following packages:'); - infoMap.forEach(info => { + infoMap.forEach((info) => { if (info.target) { logger.debug(` ${info.name} => ${info.target.version}`); } }); let peerErrors = false; - infoMap.forEach(info => { - const {name, target} = info; + infoMap.forEach((info) => { + const { name, target } = info; if (!target) { return; } @@ -227,22 +226,27 @@ function _validateUpdatePackages( logger.debug(`${name}...`); const { peerDependencies = {}, peerDependenciesMeta = {} } = target.packageJson; - peerErrors = _validateForwardPeerDependencies(name, infoMap, peerDependencies, - peerDependenciesMeta, pkgLogger, next) || peerErrors; - peerErrors - = _validateReversePeerDependencies(name, target.version, infoMap, pkgLogger, next) - || peerErrors; + peerErrors = + _validateForwardPeerDependencies( + name, + infoMap, + peerDependencies, + peerDependenciesMeta, + pkgLogger, + next, + ) || peerErrors; + peerErrors = + _validateReversePeerDependencies(name, target.version, infoMap, pkgLogger, next) || + peerErrors; }); if (!force && peerErrors) { - throw new SchematicsException(tags.stripIndents - `Incompatible peer dependencies found. + throw new SchematicsException(tags.stripIndents`Incompatible peer dependencies found. Peer dependency warnings when installing dependencies means that those dependencies might not work correctly together. You can use the '--force' option to ignore incompatible peer dependencies and instead address these warnings later.`); } } - function _performUpdate( tree: Tree, context: SchematicContext, @@ -270,16 +274,16 @@ function _performUpdate( }; const toInstall = [...infoMap.values()] - .map(x => [x.name, x.target, x.installed]) - // tslint:disable-next-line:no-non-null-assertion - .filter(([name, target, installed]) => { - return !!name && !!target && !!installed; - }) as [string, PackageVersionInfo, PackageVersionInfo][]; + .map((x) => [x.name, x.target, x.installed]) + // tslint:disable-next-line:no-non-null-assertion + .filter(([name, target, installed]) => { + return !!name && !!target && !!installed; + }) as [string, PackageVersionInfo, PackageVersionInfo][]; toInstall.forEach(([name, target, installed]) => { logger.info( - `Updating package.json with dependency ${name} ` - + `@ ${JSON.stringify(target.version)} (was ${JSON.stringify(installed.version)})...`, + `Updating package.json with dependency ${name} ` + + `@ ${JSON.stringify(target.version)} (was ${JSON.stringify(installed.version)})...`, ); if (packageJson.dependencies && packageJson.dependencies[name]) { @@ -323,11 +327,9 @@ function _performUpdate( return; } - const collection = ( - target.updateMetadata.migrations.match(/^[./]/) - ? name + '/' - : '' - ) + target.updateMetadata.migrations; + const collection = + (target.updateMetadata.migrations.match(/^[./]/) ? name + '/' : '') + + target.updateMetadata.migrations; externalMigrations.push({ package: name, @@ -365,19 +367,20 @@ function _getUpdateMetadata( const packageGroup = metadata['packageGroup']; // Verify that packageGroup is an array of strings or an map of versions. This is not an error // but we still warn the user and ignore the packageGroup keys. - if (Array.isArray(packageGroup) && packageGroup.every(x => typeof x == 'string')) { + if (Array.isArray(packageGroup) && packageGroup.every((x) => typeof x == 'string')) { result.packageGroup = packageGroup.reduce((group, name) => { group[name] = packageJson.version; return group; }, result.packageGroup); - } else if (typeof packageGroup == 'object' && packageGroup - && Object.values(packageGroup).every(x => typeof x == 'string')) { + } else if ( + typeof packageGroup == 'object' && + packageGroup && + Object.values(packageGroup).every((x) => typeof x == 'string') + ) { result.packageGroup = packageGroup; } else { - logger.warn( - `packageGroup metadata of package ${packageJson.name} is malformed. Ignoring.`, - ); + logger.warn(`packageGroup metadata of package ${packageJson.name} is malformed. Ignoring.`); } result.packageGroupName = Object.keys(result.packageGroup)[0]; @@ -390,12 +393,12 @@ function _getUpdateMetadata( if (metadata['requirements']) { const requirements = metadata['requirements']; // Verify that requirements are - if (typeof requirements != 'object' - || Array.isArray(requirements) - || Object.keys(requirements).some(name => typeof requirements[name] != 'string')) { - logger.warn( - `requirements metadata of package ${packageJson.name} is malformed. Ignoring.`, - ); + if ( + typeof requirements != 'object' || + Array.isArray(requirements) || + Object.keys(requirements).some((name) => typeof requirements[name] != 'string') + ) { + logger.warn(`requirements metadata of package ${packageJson.name} is malformed. Ignoring.`); } else { result.requirements = requirements; } @@ -413,7 +416,6 @@ function _getUpdateMetadata( return result; } - function _usageMessage( options: UpdateSchema, infoMap: Map, @@ -423,7 +425,10 @@ function _usageMessage( const packagesToUpdate = [...infoMap.entries()] .map(([name, info]) => { const tag = options.next - ? (info.npmPackageJson['dist-tags']['next'] ? 'next' : 'latest') : 'latest'; + ? info.npmPackageJson['dist-tags']['next'] + ? 'next' + : 'latest' + : 'latest'; const version = info.npmPackageJson['dist-tags'][tag]; const target = info.npmPackageJson.versions[version]; @@ -436,7 +441,7 @@ function _usageMessage( }; }) .filter(({ info, version, target }) => { - return (target && semver.compare(info.installed.version, version) < 0); + return target && semver.compare(info.installed.version, version) < 0; }) .filter(({ target }) => { return target['ng-update']; @@ -445,8 +450,8 @@ function _usageMessage( // Look for packageGroup. if (target['ng-update'] && target['ng-update']['packageGroup']) { const packageGroup = target['ng-update']['packageGroup']; - const packageGroupName = target['ng-update']['packageGroupName'] - || target['ng-update']['packageGroup'][0]; + const packageGroupName = + target['ng-update']['packageGroupName'] || target['ng-update']['packageGroup'][0]; if (packageGroupName) { if (packageGroups.has(name)) { return null; @@ -465,8 +470,8 @@ function _usageMessage( return [name, `${info.installed.version} -> ${version} `, command]; }) - .filter(x => x !== null) - .sort((a, b) => a && b ? a[0].localeCompare(b[0]) : 0); + .filter((x) => x !== null) + .sort((a, b) => (a && b ? a[0].localeCompare(b[0]) : 0)); if (packagesToUpdate.length == 0) { logger.info('We analyzed your package.json and everything seems to be in order. Good work!'); @@ -474,24 +479,21 @@ function _usageMessage( return; } - logger.info( - 'We analyzed your package.json, there are some packages to update:\n', - ); + logger.info('We analyzed your package.json, there are some packages to update:\n'); // Find the largest name to know the padding needed. - let namePad = Math.max(...[...infoMap.keys()].map(x => x.length)) + 2; + let namePad = Math.max(...[...infoMap.keys()].map((x) => x.length)) + 2; if (!Number.isFinite(namePad)) { namePad = 30; } const pads = [namePad, 25, 0]; logger.info( - ' ' - + ['Name', 'Version', 'Command to update'].map((x, i) => x.padEnd(pads[i])).join(''), + ' ' + ['Name', 'Version', 'Command to update'].map((x, i) => x.padEnd(pads[i])).join(''), ); - logger.info(' ' + '-'.repeat(pads.reduce((s, x) => s += x, 0) + 20)); + logger.info(' ' + '-'.repeat(pads.reduce((s, x) => (s += x), 0) + 20)); - packagesToUpdate.forEach(fields => { + packagesToUpdate.forEach((fields) => { if (!fields) { return; } @@ -500,14 +502,13 @@ function _usageMessage( }); logger.info( - `\nThere might be additional packages which don't provide 'ng update' capabilities that are outdated.\n` - + `You can update the additional packages by running the update command of your package manager.`, + `\nThere might be additional packages which don't provide 'ng update' capabilities that are outdated.\n` + + `You can update the additional packages by running the update command of your package manager.`, ); return; } - function _buildPackageInfo( tree: Tree, packages: Map, @@ -518,9 +519,7 @@ function _buildPackageInfo( const name = npmPackageJson.name; const packageJsonRange = allDependencies.get(name); if (!packageJsonRange) { - throw new SchematicsException( - `Package ${JSON.stringify(name)} was not found in package.json.`, - ); + throw new SchematicsException(`Package ${JSON.stringify(name)} was not found in package.json.`); } // Find out the currently installed version. Either from the package.json or the node_modules/ @@ -533,10 +532,7 @@ function _buildPackageInfo( } if (!installedVersion) { // Find the version from NPM that fits the range to max. - installedVersion = semver.maxSatisfying( - Object.keys(npmPackageJson.versions), - packageJsonRange, - ); + installedVersion = semver.maxSatisfying(Object.keys(npmPackageJson.versions), packageJsonRange); } if (!installedVersion) { @@ -573,10 +569,10 @@ function _buildPackageInfo( const target: PackageVersionInfo | undefined = targetVersion ? { - version: targetVersion, - packageJson: npmPackageJson.versions[targetVersion], - updateMetadata: _getUpdateMetadata(npmPackageJson.versions[targetVersion], logger), - } + version: targetVersion, + packageJson: npmPackageJson.versions[targetVersion], + updateMetadata: _getUpdateMetadata(npmPackageJson.versions[targetVersion], logger), + } : undefined; // Check if there's an installed version. @@ -593,7 +589,6 @@ function _buildPackageInfo( }; } - function _buildPackageList( options: UpdateSchema, projectDeps: Map, @@ -602,9 +597,7 @@ function _buildPackageList( // Parse the packages options to set the targeted version. const packages = new Map(); const commandLinePackages = - (options.packages && options.packages.length > 0) - ? options.packages - : []; + options.packages && options.packages.length > 0 ? options.packages : []; for (const pkg of commandLinePackages) { // Split the version asked on command line. @@ -628,7 +621,6 @@ function _buildPackageList( return packages; } - function _addPackageGroup( tree: Tree, packages: Map, @@ -643,9 +635,10 @@ function _addPackageGroup( const info = _buildPackageInfo(tree, packages, allDependencies, npmPackageJson, logger); - const version = (info.target && info.target.version) - || npmPackageJson['dist-tags'][maybePackage] - || maybePackage; + const version = + (info.target && info.target.version) || + npmPackageJson['dist-tags'][maybePackage] || + maybePackage; if (!npmPackageJson.versions[version]) { return; } @@ -658,7 +651,7 @@ function _addPackageGroup( if (!packageGroup) { return; } - if (Array.isArray(packageGroup) && !packageGroup.some(x => typeof x != 'string')) { + if (Array.isArray(packageGroup) && !packageGroup.some((x) => typeof x != 'string')) { packageGroup = packageGroup.reduce((acc, curr) => { acc[curr] = maybePackage; @@ -667,9 +660,10 @@ function _addPackageGroup( } // Only need to check if it's an object because we set it right the time before. - if (typeof packageGroup != 'object' - || packageGroup === null - || Object.values(packageGroup).some(v => typeof v != 'string') + if ( + typeof packageGroup != 'object' || + packageGroup === null || + Object.values(packageGroup).some((v) => typeof v != 'string') ) { logger.warn(`packageGroup metadata of package ${npmPackageJson.name} is malformed.`); @@ -677,9 +671,9 @@ function _addPackageGroup( } Object.keys(packageGroup) - .filter(name => !packages.has(name)) // Don't override names from the command line. - .filter(name => allDependencies.has(name)) // Remove packages that aren't installed. - .forEach(name => { + .filter((name) => !packages.has(name)) // Don't override names from the command line. + .filter((name) => allDependencies.has(name)) // Remove packages that aren't installed. + .forEach((name) => { packages.set(name, packageGroup[name]); }); } @@ -705,9 +699,10 @@ function _addPeerDependencies( const info = _buildPackageInfo(tree, packages, allDependencies, npmPackageJson, logger); - const version = (info.target && info.target.version) - || npmPackageJson['dist-tags'][maybePackage] - || maybePackage; + const version = + (info.target && info.target.version) || + npmPackageJson['dist-tags'][maybePackage] || + maybePackage; if (!npmPackageJson.versions[version]) { return; } @@ -736,7 +731,6 @@ function _addPeerDependencies( } } - function _getAllDependencies(tree: Tree): Array { const packageJsonContent = tree.read('/package.json'); if (!packageJsonContent) { @@ -751,9 +745,9 @@ function _getAllDependencies(tree: Tree): Array } return [ - ...Object.entries(packageJson.peerDependencies || {}) as Array<[string, VersionRange]>, - ...Object.entries(packageJson.devDependencies || {}) as Array<[string, VersionRange]>, - ...Object.entries(packageJson.dependencies || {}) as Array<[string, VersionRange]>, + ...(Object.entries(packageJson.peerDependencies || {}) as Array<[string, VersionRange]>), + ...(Object.entries(packageJson.devDependencies || {}) as Array<[string, VersionRange]>), + ...(Object.entries(packageJson.dependencies || {}) as Array<[string, VersionRange]>), ]; } @@ -786,7 +780,7 @@ function isPkgFromRegistry(name: string, specifier: string): boolean { return !!result.registry; } -export default function(options: UpdateSchema): Rule { +export default function (options: UpdateSchema): Rule { if (!options.packages) { // We cannot just return this because we need to fetch the packages from NPM still for the // help/guide to show. @@ -810,48 +804,52 @@ export default function(options: UpdateSchema): Rule { return async (tree: Tree, context: SchematicContext) => { const logger = context.logger; - const npmDeps = new Map(_getAllDependencies(tree).filter(([name, specifier]) => { - try { - return isPkgFromRegistry(name, specifier); - } catch { - logger.warn(`Package ${name} was not found on the registry. Skipping.`); - - return false; - } - })); + const npmDeps = new Map( + _getAllDependencies(tree).filter(([name, specifier]) => { + try { + return isPkgFromRegistry(name, specifier); + } catch { + logger.warn(`Package ${name} was not found on the registry. Skipping.`); + + return false; + } + }), + ); const packages = _buildPackageList(options, npmDeps, logger); // Grab all package.json from the npm repository. This requires a lot of HTTP calls so we // try to parallelize as many as possible. - const allPackageMetadata = await Promise.all(Array.from(npmDeps.keys()).map(depName => getNpmPackageJson( - depName, - logger, - { registryUrl: options.registry, usingYarn, verbose: options.verbose }, - ))); + const allPackageMetadata = await Promise.all( + Array.from(npmDeps.keys()).map((depName) => + getNpmPackageJson(depName, logger, { + registryUrl: options.registry, + usingYarn, + verbose: options.verbose, + }), + ), + ); // Build a map of all dependencies and their packageJson. - const npmPackageJsonMap = allPackageMetadata.reduce( - (acc, npmPackageJson) => { - // If the package was not found on the registry. It could be private, so we will just - // ignore. If the package was part of the list, we will error out, but will simply ignore - // if it's either not requested (so just part of package.json. silently) or if it's a - // `--all` situation. There is an edge case here where a public package peer depends on a - // private one, but it's rare enough. - if (!npmPackageJson.name) { - if (npmPackageJson.requestedName && packages.has(npmPackageJson.requestedName)) { - throw new SchematicsException( - `Package ${JSON.stringify(npmPackageJson.requestedName)} was not found on the ` - + 'registry. Cannot continue as this may be an error.'); - } - } else { - // If a name is present, it is assumed to be fully populated - acc.set(npmPackageJson.name, npmPackageJson as NpmRepositoryPackageJson); + const npmPackageJsonMap = allPackageMetadata.reduce((acc, npmPackageJson) => { + // If the package was not found on the registry. It could be private, so we will just + // ignore. If the package was part of the list, we will error out, but will simply ignore + // if it's either not requested (so just part of package.json. silently) or if it's a + // `--all` situation. There is an edge case here where a public package peer depends on a + // private one, but it's rare enough. + if (!npmPackageJson.name) { + if (npmPackageJson.requestedName && packages.has(npmPackageJson.requestedName)) { + throw new SchematicsException( + `Package ${JSON.stringify(npmPackageJson.requestedName)} was not found on the ` + + 'registry. Cannot continue as this may be an error.', + ); } + } else { + // If a name is present, it is assumed to be fully populated + acc.set(npmPackageJson.name, npmPackageJson as NpmRepositoryPackageJson); + } - return acc; - }, - new Map(), - ); + return acc; + }, new Map()); // Augment the command line package list with packageGroups and forward peer dependencies. // Each added package may uncover new package groups and peer dependencies, so we must @@ -880,11 +878,7 @@ export default function(options: UpdateSchema): Rule { return; } - const sublog = new logging.LevelCapLogger( - 'validation', - logger.createChild(''), - 'warn', - ); + const sublog = new logging.LevelCapLogger('validation', logger.createChild(''), 'warn'); _validateUpdatePackages(packageInfoMap, !!options.force, !!options.next, sublog); _performUpdate(tree, context, packageInfoMap, logger, !!options.migrateOnly); diff --git a/packages/angular/cli/src/commands/update/schematic/index_spec.ts b/packages/angular/cli/src/commands/update/schematic/index_spec.ts index bd0c42ebf58a..6db5433caec8 100644 --- a/packages/angular/cli/src/commands/update/schematic/index_spec.ts +++ b/packages/angular/cli/src/commands/update/schematic/index_spec.ts @@ -15,7 +15,6 @@ import { map } from 'rxjs/operators'; // tslint:disable-line: no-implicit-depend import * as semver from 'semver'; import { angularMajorCompatGuarantee } from './index'; - describe('angularMajorCompatGuarantee', () => { [ '5.0.0', @@ -27,7 +26,7 @@ describe('angularMajorCompatGuarantee', () => { '6.1.0-beta.0', '6.1.0-rc.0', '6.10.11', - ].forEach(golden => { + ].forEach((golden) => { it('works with ' + JSON.stringify(golden), () => { expect(semver.satisfies(golden, angularMajorCompatGuarantee('^5.0.0'))).toBeTruthy(); }); @@ -54,44 +53,63 @@ describe('@schematics/update', () => { appTree = new UnitTestTree(new HostTree(host)); }); - it('ignores dependencies not hosted on the NPM registry', done => { - const tree = new UnitTestTree(new HostTree(new virtualFs.test.TestHost({ - '/package.json': `{ + it('ignores dependencies not hosted on the NPM registry', (done) => { + const tree = new UnitTestTree( + new HostTree( + new virtualFs.test.TestHost({ + '/package.json': `{ "name": "blah", "dependencies": { "@angular-devkit-tests/update-base": "file:update-base-1.0.0.tgz" } }`, - }))); + }), + ), + ); - schematicRunner.runSchematicAsync('update', undefined, tree).pipe( - map(t => { - const packageJson = JSON.parse(t.readContent('/package.json')); - expect(packageJson['dependencies']['@angular-devkit-tests/update-base']) - .toBe('file:update-base-1.0.0.tgz'); - }), - ).toPromise().then(done, done.fail); + schematicRunner + .runSchematicAsync('update', undefined, tree) + .pipe( + map((t) => { + const packageJson = JSON.parse(t.readContent('/package.json')); + expect(packageJson['dependencies']['@angular-devkit-tests/update-base']).toBe( + 'file:update-base-1.0.0.tgz', + ); + }), + ) + .toPromise() + .then(done, done.fail); }, 45000); it('should not error with yarn 2.0 protocols', async () => { - const tree = new UnitTestTree(new HostTree(new virtualFs.test.TestHost({ - '/package.json': `{ + const tree = new UnitTestTree( + new HostTree( + new virtualFs.test.TestHost({ + '/package.json': `{ "name": "blah", "dependencies": { "src": "src@link:./src", "@angular-devkit-tests/update-base": "1.0.0" } }`, - }))); + }), + ), + ); - const newTree = await schematicRunner.runSchematicAsync('update', { - packages: ['@angular-devkit-tests/update-base'], - }, tree).toPromise(); + const newTree = await schematicRunner + .runSchematicAsync( + 'update', + { + packages: ['@angular-devkit-tests/update-base'], + }, + tree, + ) + .toPromise(); const { dependencies } = JSON.parse(newTree.readContent('/package.json')); expect(dependencies['@angular-devkit-tests/update-base']).toBe('1.1.0'); }); - it('updates Angular as compatible with Angular N-1', done => { + it('updates Angular as compatible with Angular N-1', (done) => { // Add the basic migration package. const content = virtualFs.fileBufferToString(host.sync.read(normalize('/package.json'))); const packageJson = JSON.parse(content); @@ -105,33 +123,41 @@ describe('@schematics/update', () => { virtualFs.stringToFileBuffer(JSON.stringify(packageJson)), ); - schematicRunner.runSchematicAsync('update', { - packages: ['@angular/core@^6.0.0'], - }, appTree).pipe( - map(tree => { - const packageJson = JSON.parse(tree.readContent('/package.json')); - expect(packageJson['dependencies']['@angular/core'][0]).toBe('6'); + schematicRunner + .runSchematicAsync( + 'update', + { + packages: ['@angular/core@^6.0.0'], + }, + appTree, + ) + .pipe( + map((tree) => { + const packageJson = JSON.parse(tree.readContent('/package.json')); + expect(packageJson['dependencies']['@angular/core'][0]).toBe('6'); - // Check install task. - expect(schematicRunner.tasks).toEqual([ - { - name: 'node-package', - options: jasmine.objectContaining({ - command: 'install', - }), - }, - { - name: 'run-schematic', - options: jasmine.objectContaining({ - name: 'migrate', - }), - }, - ]); - }), - ).toPromise().then(done, done.fail); + // Check install task. + expect(schematicRunner.tasks).toEqual([ + { + name: 'node-package', + options: jasmine.objectContaining({ + command: 'install', + }), + }, + { + name: 'run-schematic', + options: jasmine.objectContaining({ + name: 'migrate', + }), + }, + ]); + }), + ) + .toPromise() + .then(done, done.fail); }, 45000); - it('updates Angular as compatible with Angular N-1 (2)', done => { + it('updates Angular as compatible with Angular N-1 (2)', (done) => { // Add the basic migration package. const content = virtualFs.fileBufferToString(host.sync.read(normalize('/package.json'))); const packageJson = JSON.parse(content); @@ -151,33 +177,41 @@ describe('@schematics/update', () => { virtualFs.stringToFileBuffer(JSON.stringify(packageJson)), ); - schematicRunner.runSchematicAsync('update', { - packages: ['@angular/core@^6.0.0'], - }, appTree).pipe( - map(tree => { - const packageJson = JSON.parse(tree.readContent('/package.json')); - expect(packageJson['dependencies']['@angular/core'][0]).toBe('6'); - expect(packageJson['dependencies']['rxjs'][0]).toBe('6'); - expect(packageJson['dependencies']['typescript'][0]).toBe('2'); - expect(packageJson['dependencies']['typescript'][2]).not.toBe('4'); + schematicRunner + .runSchematicAsync( + 'update', + { + packages: ['@angular/core@^6.0.0'], + }, + appTree, + ) + .pipe( + map((tree) => { + const packageJson = JSON.parse(tree.readContent('/package.json')); + expect(packageJson['dependencies']['@angular/core'][0]).toBe('6'); + expect(packageJson['dependencies']['rxjs'][0]).toBe('6'); + expect(packageJson['dependencies']['typescript'][0]).toBe('2'); + expect(packageJson['dependencies']['typescript'][2]).not.toBe('4'); - // Check install task. - expect(schematicRunner.tasks).toEqual([ - { - name: 'node-package', - options: jasmine.objectContaining({ - command: 'install', - }), - }, - { - name: 'run-schematic', - options: jasmine.objectContaining({ - name: 'migrate', - }), - }, - ]); - }), - ).toPromise().then(done, done.fail); + // Check install task. + expect(schematicRunner.tasks).toEqual([ + { + name: 'node-package', + options: jasmine.objectContaining({ + command: 'install', + }), + }, + { + name: 'run-schematic', + options: jasmine.objectContaining({ + name: 'migrate', + }), + }, + ]); + }), + ) + .toPromise() + .then(done, done.fail); }, 45000); it('uses packageGroup for versioning', async () => { @@ -192,29 +226,36 @@ describe('@schematics/update', () => { virtualFs.stringToFileBuffer(JSON.stringify(packageJson)), ); - await schematicRunner.runSchematicAsync('update', { - packages: ['@angular-devkit-tests/update-package-group-1'], - }, appTree).pipe( - map(tree => { - const packageJson = JSON.parse(tree.readContent('/package.json')); - const deps = packageJson['dependencies']; - expect(deps['@angular-devkit-tests/update-package-group-1']).toBe('1.2.0'); - expect(deps['@angular-devkit-tests/update-package-group-2']).toBe('2.0.0'); + await schematicRunner + .runSchematicAsync( + 'update', + { + packages: ['@angular-devkit-tests/update-package-group-1'], + }, + appTree, + ) + .pipe( + map((tree) => { + const packageJson = JSON.parse(tree.readContent('/package.json')); + const deps = packageJson['dependencies']; + expect(deps['@angular-devkit-tests/update-package-group-1']).toBe('1.2.0'); + expect(deps['@angular-devkit-tests/update-package-group-2']).toBe('2.0.0'); - // Check install task. - expect(schematicRunner.tasks).toEqual([ - { - name: 'node-package', - options: jasmine.objectContaining({ - command: 'install', - }), - }, - ]); - }), - ).toPromise(); + // Check install task. + expect(schematicRunner.tasks).toEqual([ + { + name: 'node-package', + options: jasmine.objectContaining({ + command: 'install', + }), + }, + ]); + }), + ) + .toPromise(); }, 45000); - it('can migrate only', done => { + it('can migrate only', (done) => { // Add the basic migration package. const content = virtualFs.fileBufferToString(host.sync.read(normalize('/package.json'))); const packageJson = JSON.parse(content); @@ -224,30 +265,39 @@ describe('@schematics/update', () => { virtualFs.stringToFileBuffer(JSON.stringify(packageJson)), ); - schematicRunner.runSchematicAsync('update', { - packages: ['@angular-devkit-tests/update-migrations'], - migrateOnly: true, - }, appTree).pipe( - map(tree => { - const packageJson = JSON.parse(tree.readContent('/package.json')); - expect(packageJson['dependencies']['@angular-devkit-tests/update-base']).toBe('1.0.0'); - expect(packageJson['dependencies']['@angular-devkit-tests/update-migrations']) - .toBe('1.0.0'); + schematicRunner + .runSchematicAsync( + 'update', + { + packages: ['@angular-devkit-tests/update-migrations'], + migrateOnly: true, + }, + appTree, + ) + .pipe( + map((tree) => { + const packageJson = JSON.parse(tree.readContent('/package.json')); + expect(packageJson['dependencies']['@angular-devkit-tests/update-base']).toBe('1.0.0'); + expect(packageJson['dependencies']['@angular-devkit-tests/update-migrations']).toBe( + '1.0.0', + ); - // Check install task. - expect(schematicRunner.tasks).toEqual([ - { - name: 'run-schematic', - options: jasmine.objectContaining({ - name: 'migrate', - }), - }, - ]); - }), - ).toPromise().then(done, done.fail); + // Check install task. + expect(schematicRunner.tasks).toEqual([ + { + name: 'run-schematic', + options: jasmine.objectContaining({ + name: 'migrate', + }), + }, + ]); + }), + ) + .toPromise() + .then(done, done.fail); }, 45000); - it('can migrate from only', done => { + it('can migrate from only', (done) => { // Add the basic migration package. const content = virtualFs.fileBufferToString(host.sync.read(normalize('/package.json'))); const packageJson = JSON.parse(content); @@ -257,34 +307,43 @@ describe('@schematics/update', () => { virtualFs.stringToFileBuffer(JSON.stringify(packageJson)), ); - schematicRunner.runSchematicAsync('update', { - packages: ['@angular-devkit-tests/update-migrations'], - migrateOnly: true, - from: '0.1.2', - }, appTree).pipe( - map(tree => { - const packageJson = JSON.parse(tree.readContent('/package.json')); - expect(packageJson['dependencies']['@angular-devkit-tests/update-migrations']) - .toBe('1.6.0'); + schematicRunner + .runSchematicAsync( + 'update', + { + packages: ['@angular-devkit-tests/update-migrations'], + migrateOnly: true, + from: '0.1.2', + }, + appTree, + ) + .pipe( + map((tree) => { + const packageJson = JSON.parse(tree.readContent('/package.json')); + expect(packageJson['dependencies']['@angular-devkit-tests/update-migrations']).toBe( + '1.6.0', + ); - // Check install task. - expect(schematicRunner.tasks).toEqual([ - { - name: 'run-schematic', - options: jasmine.objectContaining({ - name: 'migrate', + // Check install task. + expect(schematicRunner.tasks).toEqual([ + { + name: 'run-schematic', options: jasmine.objectContaining({ - from: '0.1.2', - to: '1.6.0', + name: 'migrate', + options: jasmine.objectContaining({ + from: '0.1.2', + to: '1.6.0', + }), }), - }), - }, - ]); - }), - ).toPromise().then(done, done.fail); + }, + ]); + }), + ) + .toPromise() + .then(done, done.fail); }, 45000); - it('can install and migrate with --from (short version number)', done => { + it('can install and migrate with --from (short version number)', (done) => { // Add the basic migration package. const content = virtualFs.fileBufferToString(host.sync.read(normalize('/package.json'))); const packageJson = JSON.parse(content); @@ -294,34 +353,43 @@ describe('@schematics/update', () => { virtualFs.stringToFileBuffer(JSON.stringify(packageJson)), ); - schematicRunner.runSchematicAsync('update', { - packages: ['@angular-devkit-tests/update-migrations'], - migrateOnly: true, - from: '0', - }, appTree).pipe( - map(tree => { - const packageJson = JSON.parse(tree.readContent('/package.json')); - expect(packageJson['dependencies']['@angular-devkit-tests/update-migrations']) - .toBe('1.6.0'); + schematicRunner + .runSchematicAsync( + 'update', + { + packages: ['@angular-devkit-tests/update-migrations'], + migrateOnly: true, + from: '0', + }, + appTree, + ) + .pipe( + map((tree) => { + const packageJson = JSON.parse(tree.readContent('/package.json')); + expect(packageJson['dependencies']['@angular-devkit-tests/update-migrations']).toBe( + '1.6.0', + ); - // Check install task. - expect(schematicRunner.tasks).toEqual([ - { - name: 'run-schematic', - options: jasmine.objectContaining({ - name: 'migrate', + // Check install task. + expect(schematicRunner.tasks).toEqual([ + { + name: 'run-schematic', options: jasmine.objectContaining({ - from: '0.0.0', - to: '1.6.0', + name: 'migrate', + options: jasmine.objectContaining({ + from: '0.0.0', + to: '1.6.0', + }), }), - }), - }, - ]); - }), - ).toPromise().then(done, done.fail); + }, + ]); + }), + ) + .toPromise() + .then(done, done.fail); }, 45000); - it('validates peer dependencies', done => { + it('validates peer dependencies', (done) => { const content = virtualFs.fileBufferToString(host.sync.read(normalize('/package.json'))); const packageJson = JSON.parse(content); const dependencies = packageJson['dependencies']; @@ -336,21 +404,31 @@ describe('@schematics/update', () => { ); const messages: string[] = []; - schematicRunner.logger.subscribe(x => messages.push(x.message)); + schematicRunner.logger.subscribe((x) => messages.push(x.message)); const hasPeerdepMsg = (dep: string) => - messages.some(str => str.includes(`missing peer dependency of "${dep}"`)); + messages.some((str) => str.includes(`missing peer dependency of "${dep}"`)); - schematicRunner.runSchematicAsync('update', { - packages: ['@angular-devkit/build-angular'], - next: true, - }, appTree).pipe( - map(() => { - expect(hasPeerdepMsg('@angular/compiler-cli')) - .toBeTruthy(`Should show @angular/compiler-cli message.`); - expect(hasPeerdepMsg('typescript')).toBeTruthy(`Should show typescript message.`); - expect(hasPeerdepMsg('@angular/localize')) - .toBeFalsy(`Should not show @angular/localize message.`); - }), - ).toPromise().then(done, done.fail); + schematicRunner + .runSchematicAsync( + 'update', + { + packages: ['@angular-devkit/build-angular'], + next: true, + }, + appTree, + ) + .pipe( + map(() => { + expect(hasPeerdepMsg('@angular/compiler-cli')).toBeTruthy( + `Should show @angular/compiler-cli message.`, + ); + expect(hasPeerdepMsg('typescript')).toBeTruthy(`Should show typescript message.`); + expect(hasPeerdepMsg('@angular/localize')).toBeFalsy( + `Should not show @angular/localize message.`, + ); + }), + ) + .toPromise() + .then(done, done.fail); }, 45000); }); diff --git a/packages/angular/cli/src/commands/update/schematic/npm.ts b/packages/angular/cli/src/commands/update/schematic/npm.ts index 429a6ffd1745..f92f923458bd 100644 --- a/packages/angular/cli/src/commands/update/schematic/npm.ts +++ b/packages/angular/cli/src/commands/update/schematic/npm.ts @@ -45,9 +45,7 @@ function readOptions( path.join(homedir(), dotFilename), ]; - const projectConfigLocations: string[] = [ - path.join(cwd, dotFilename), - ]; + const projectConfigLocations: string[] = [path.join(cwd, dotFilename)]; const root = path.parse(cwd).root; for (let curDir = path.dirname(cwd); curDir && curDir !== root; curDir = path.dirname(curDir)) { projectConfigLocations.unshift(path.join(curDir, dotFilename)); @@ -92,7 +90,7 @@ function readOptions( const cafile = path.resolve(path.dirname(location), value); try { options['ca'] = readFileSync(cafile, 'utf8').replace(/\r?\n/g, '\n'); - } catch { } + } catch {} } break; default: @@ -141,23 +139,20 @@ export function getNpmPackageJson( if (!npmrc) { try { npmrc = readOptions(logger, false, options && options.verbose); - } catch { } + } catch {} if (options && options.usingYarn) { try { npmrc = { ...npmrc, ...readOptions(logger, true, options && options.verbose) }; - } catch { } + } catch {} } } - const resultPromise: Promise = pacote.packument( - packageName, - { - fullMetadata: true, - ...npmrc, - ...(options && options.registryUrl ? { registry: options.registryUrl } : {}), - }, - ); + const resultPromise: Promise = pacote.packument(packageName, { + fullMetadata: true, + ...npmrc, + ...(options && options.registryUrl ? { registry: options.registryUrl } : {}), + }); // TODO: find some way to test this const response = resultPromise.catch((err) => { diff --git a/packages/angular/cli/src/commands/update/schematic/package-json.ts b/packages/angular/cli/src/commands/update/schematic/package-json.ts index 3c77bdf98edd..7784e076f95d 100644 --- a/packages/angular/cli/src/commands/update/schematic/package-json.ts +++ b/packages/angular/cli/src/commands/update/schematic/package-json.ts @@ -23,7 +23,8 @@ export type JsonSchemaForNpmPackageJsonFiles = CoreProperties & | { bundledDependencies?: BundledDependency; [k: string]: any; - }) & { + } + ) & { [k: string]: any; }; /** diff --git a/packages/angular/cli/src/commands/update/schematic/schema.json b/packages/angular/cli/src/commands/update/schematic/schema.json index 8637bbbd7465..9811d1a3fe9a 100644 --- a/packages/angular/cli/src/commands/update/schematic/schema.json +++ b/packages/angular/cli/src/commands/update/schematic/schema.json @@ -57,14 +57,8 @@ "description": "The preferred package manager configuration files to use for registry settings.", "type": "string", "default": "npm", - "enum": [ - "npm", - "yarn", - "cnpm", - "pnpm" - ] + "enum": ["npm", "yarn", "cnpm", "pnpm"] } }, - "required": [ - ] + "required": [] } diff --git a/packages/angular/cli/utilities/install-package.ts b/packages/angular/cli/utilities/install-package.ts index 4f1bdfd18158..a3d53729fad4 100644 --- a/packages/angular/cli/utilities/install-package.ts +++ b/packages/angular/cli/utilities/install-package.ts @@ -45,12 +45,16 @@ export function installPackage( installArgs.push(packageManagerArgs.saveDev); } - const { status, stderr, stdout, error } = spawnSync(packageManager, [...installArgs, ...extraArgs], { - stdio: 'pipe', - shell: true, - encoding: 'utf8', - cwd, - }); + const { status, stderr, stdout, error } = spawnSync( + packageManager, + [...installArgs, ...extraArgs], + { + stdio: 'pipe', + shell: true, + encoding: 'utf8', + cwd, + }, + ); if (status !== 0) { let errorMessage = ((error && error.message) || stderr || stdout || '').trim(); @@ -75,7 +79,7 @@ export function installTempPackage( process.on('exit', () => { try { rimraf.sync(tempPath); - } catch { } + } catch {} }); // NPM will warn when a `package.json` is not found in the install directory @@ -87,12 +91,15 @@ export function installTempPackage( // While we can use `npm init -y` we will end up needing to update the 'package.json' anyways // because of missing fields. - writeFileSync(join(tempPath, 'package.json'), JSON.stringify({ - name: 'temp-cli-install', - description: 'temp-cli-install', - repository: 'temp-cli-install', - license: 'MIT', - })); + writeFileSync( + join(tempPath, 'package.json'), + JSON.stringify({ + name: 'temp-cli-install', + description: 'temp-cli-install', + repository: 'temp-cli-install', + license: 'MIT', + }), + ); // setup prefix/global modules path const packageManagerArgs = getPackageManagerArguments(packageManager); diff --git a/packages/angular/cli/utilities/json-file.ts b/packages/angular/cli/utilities/json-file.ts index f27781c15525..466ee53b64af 100644 --- a/packages/angular/cli/utilities/json-file.ts +++ b/packages/angular/cli/utilities/json-file.ts @@ -8,8 +8,15 @@ import { JsonValue } from '@angular-devkit/core'; import { readFileSync, writeFileSync } from 'fs'; import { - Node, ParseError, applyEdits, findNodeAtLocation, - getNodeValue, modify, parse, parseTree, printParseErrorCode, + Node, + ParseError, + applyEdits, + findNodeAtLocation, + getNodeValue, + modify, + parse, + parseTree, + printParseErrorCode, } from 'jsonc-parser'; export type InsertionIndex = (properties: string[]) => number; @@ -19,9 +26,7 @@ export type JSONPath = (string | number)[]; export class JSONFile { content: string; - constructor( - private readonly path: string, - ) { + constructor(private readonly path: string) { const buffer = readFileSync(this.path); if (buffer) { this.content = buffer.toString(); @@ -60,7 +65,11 @@ export class JSONFile { return node === undefined ? undefined : getNodeValue(node); } - modify(jsonPath: JSONPath, value: JsonValue | undefined, insertInOrder?: InsertionIndex | false): boolean { + modify( + jsonPath: JSONPath, + value: JsonValue | undefined, + insertInOrder?: InsertionIndex | false, + ): boolean { if (value === undefined && this.get(jsonPath) === undefined) { // Cannot remove a value which doesn't exist. return false; @@ -69,23 +78,19 @@ export class JSONFile { let getInsertionIndex: InsertionIndex | undefined; if (insertInOrder === undefined) { const property = jsonPath.slice(-1)[0]; - getInsertionIndex = properties => [...properties, property].sort().findIndex(p => p === property); + getInsertionIndex = (properties) => + [...properties, property].sort().findIndex((p) => p === property); } else if (insertInOrder !== false) { getInsertionIndex = insertInOrder; } - const edits = modify( - this.content, - jsonPath, - value, - { - getInsertionIndex, - formattingOptions: { - insertSpaces: true, - tabSize: 2, - }, + const edits = modify(this.content, jsonPath, value, { + getInsertionIndex, + formattingOptions: { + insertSpaces: true, + tabSize: 2, }, - ); + }); if (edits.length === 0) { return false; @@ -115,7 +120,11 @@ export function readAndParseJson(path: string): any { function formatError(path: string, errors: ParseError[]): never { const { error, offset } = errors[0]; - throw new Error(`Failed to parse "${path}" as JSON AST Object. ${printParseErrorCode(error)} at location: ${offset}.`); + throw new Error( + `Failed to parse "${path}" as JSON AST Object. ${printParseErrorCode( + error, + )} at location: ${offset}.`, + ); } // tslint:disable-next-line: no-any diff --git a/packages/angular/cli/utilities/json-schema.ts b/packages/angular/cli/utilities/json-schema.ts index 739debc1d01a..0206ed561f7c 100644 --- a/packages/angular/cli/utilities/json-schema.ts +++ b/packages/angular/cli/utilities/json-schema.ts @@ -20,7 +20,6 @@ import { Value, } from '../models/interface'; - export class CommandJsonPathException extends BaseException { constructor(public readonly path: string, public readonly name: string) { super(`File ${path} was not found while constructing the subcommand ${name}.`); @@ -37,7 +36,7 @@ function _getEnumFromValue( } if (Object.values(enumeration).includes(value)) { - return value as unknown as T; + return (value as unknown) as T; } return defaultValue; @@ -53,14 +52,14 @@ export async function parseJsonSchemaToSubCommandDescription( const aliases: string[] = []; if (json.isJsonArray(schema.$aliases)) { - schema.$aliases.forEach(value => { + schema.$aliases.forEach((value) => { if (typeof value == 'string') { aliases.push(value); } }); } if (json.isJsonArray(schema.aliases)) { - schema.aliases.forEach(value => { + schema.aliases.forEach((value) => { if (typeof value == 'string') { aliases.push(value); } @@ -107,8 +106,7 @@ export async function parseJsonSchemaToCommandDescription( registry: json.schema.SchemaRegistry, schema: json.JsonObject, ): Promise { - const subcommand = - await parseJsonSchemaToSubCommandDescription(name, jsonPath, registry, schema); + const subcommand = await parseJsonSchemaToSubCommandDescription(name, jsonPath, registry, schema); // Before doing any work, let's validate the implementation. if (typeof schema.$impl != 'string') { @@ -173,27 +171,31 @@ export async function parseJsonSchemaToOptions( } // We only support number, string or boolean (or array of those), so remove everything else. - const types = [...typeSet].filter(x => { - switch (x) { - case 'boolean': - case 'number': - case 'string': - return true; - - case 'array': - // Only include arrays if they're boolean, string or number. - if (json.isJsonObject(current.items) - && typeof current.items.type == 'string' - && ['boolean', 'number', 'string'].includes(current.items.type)) { + const types = [...typeSet] + .filter((x) => { + switch (x) { + case 'boolean': + case 'number': + case 'string': return true; - } - return false; + case 'array': + // Only include arrays if they're boolean, string or number. + if ( + json.isJsonObject(current.items) && + typeof current.items.type == 'string' && + ['boolean', 'number', 'string'].includes(current.items.type) + ) { + return true; + } - default: - return false; - } - }).map(x => _getEnumFromValue(x, OptionType, OptionType.String)); + return false; + + default: + return false; + } + }) + .map((x) => _getEnumFromValue(x, OptionType, OptionType.String)); if (types.length == 0) { // This means it's not usable on the command line. e.g. an Object. @@ -201,7 +203,7 @@ export async function parseJsonSchemaToOptions( } // Only keep enum values we support (booleans, numbers and strings). - const enumValues = (json.isJsonArray(current.enum) && current.enum || []).filter(x => { + const enumValues = ((json.isJsonArray(current.enum) && current.enum) || []).filter((x) => { switch (typeof x) { case 'boolean': case 'number': @@ -236,15 +238,19 @@ export async function parseJsonSchemaToOptions( const type = types[0]; const $default = current.$default; - const $defaultIndex = (json.isJsonObject($default) && $default['$source'] == 'argv') - ? $default['index'] : undefined; - const positional: number | undefined = typeof $defaultIndex == 'number' - ? $defaultIndex : undefined; + const $defaultIndex = + json.isJsonObject($default) && $default['$source'] == 'argv' ? $default['index'] : undefined; + const positional: number | undefined = + typeof $defaultIndex == 'number' ? $defaultIndex : undefined; const required = json.isJsonArray(current.required) - ? current.required.indexOf(name) != -1 : false; - const aliases = json.isJsonArray(current.aliases) ? [...current.aliases].map(x => '' + x) - : current.alias ? ['' + current.alias] : []; + ? current.required.indexOf(name) != -1 + : false; + const aliases = json.isJsonArray(current.aliases) + ? [...current.aliases].map((x) => '' + x) + : current.alias + ? ['' + current.alias] + : []; const format = typeof current.format == 'string' ? current.format : undefined; const visible = current.visible === undefined || current.visible === true; const hidden = !!current.hidden || !visible; @@ -254,22 +260,22 @@ export async function parseJsonSchemaToOptions( // Deprecated is set only if it's true or a string. const xDeprecated = current['x-deprecated']; - const deprecated = (xDeprecated === true || typeof xDeprecated === 'string') - ? xDeprecated : undefined; + const deprecated = + xDeprecated === true || typeof xDeprecated === 'string' ? xDeprecated : undefined; const option: Option = { name, description: '' + (current.description === undefined ? '' : current.description), - ...types.length == 1 ? { type } : { type, types }, - ...defaultValue !== undefined ? { default: defaultValue } : {}, - ...enumValues && enumValues.length > 0 ? { enum: enumValues } : {}, + ...(types.length == 1 ? { type } : { type, types }), + ...(defaultValue !== undefined ? { default: defaultValue } : {}), + ...(enumValues && enumValues.length > 0 ? { enum: enumValues } : {}), required, aliases, - ...format !== undefined ? { format } : {}, + ...(format !== undefined ? { format } : {}), hidden, - ...userAnalytics ? { userAnalytics } : {}, - ...deprecated !== undefined ? { deprecated } : {}, - ...positional !== undefined ? { positional } : {}, + ...(userAnalytics ? { userAnalytics } : {}), + ...(deprecated !== undefined ? { deprecated } : {}), + ...(positional !== undefined ? { positional } : {}), }; options.push(option); diff --git a/packages/angular/cli/utilities/json-schema_spec.ts b/packages/angular/cli/utilities/json-schema_spec.ts index 65ad06a72bb4..f300cc4bc077 100644 --- a/packages/angular/cli/utilities/json-schema_spec.ts +++ b/packages/angular/cli/utilities/json-schema_spec.ts @@ -24,9 +24,7 @@ describe('parseJsonSchemaToCommandDescription', () => { '$impl': './version-impl#VersionCommand', 'type': 'object', - 'allOf': [ - { '$ref': './definitions.json#/definitions/base' }, - ], + 'allOf': [{ '$ref': './definitions.json#/definitions/base' }], }; beforeEach(() => { @@ -34,7 +32,9 @@ describe('parseJsonSchemaToCommandDescription', () => { registry.registerUriHandler((uri: string) => { if (uri.startsWith('ng-cli://')) { const content = readFileSync( - join(__dirname, '..', uri.substr('ng-cli://'.length)), 'utf-8'); + join(__dirname, '..', uri.substr('ng-cli://'.length)), + 'utf-8', + ); return Promise.resolve(JSON.parse(content)); } else { diff --git a/packages/angular/cli/utilities/package-manager.ts b/packages/angular/cli/utilities/package-manager.ts index c56b7dc1c517..c049d1c3836e 100644 --- a/packages/angular/cli/utilities/package-manager.ts +++ b/packages/angular/cli/utilities/package-manager.ts @@ -32,7 +32,7 @@ export function supportsNpm(): boolean { } export async function getPackageManager(root: string): Promise { - let packageManager = await getConfiguredPackageManager() as PackageManager | null; + let packageManager = (await getConfiguredPackageManager()) as PackageManager | null; if (packageManager) { return packageManager; } @@ -66,7 +66,7 @@ export async function ensureCompatibleNpm(root: string): Promise { } try { - const versionText = execSync('npm --version', {encoding: 'utf8', stdio: 'pipe'}).trim(); + const versionText = execSync('npm --version', { encoding: 'utf8', stdio: 'pipe' }).trim(); const version = valid(versionText); if (!version) { return; diff --git a/packages/angular/cli/utilities/package-metadata.ts b/packages/angular/cli/utilities/package-metadata.ts index 84c5142a8b1e..e39aa590b1f6 100644 --- a/packages/angular/cli/utilities/package-metadata.ts +++ b/packages/angular/cli/utilities/package-metadata.ts @@ -66,12 +66,12 @@ function ensureNpmrc(logger: logging.LoggerApi, usingYarn: boolean, verbose: boo if (!npmrc) { try { npmrc = readOptions(logger, false, verbose); - } catch { } + } catch {} if (usingYarn) { try { npmrc = { ...npmrc, ...readOptions(logger, true, verbose) }; - } catch { } + } catch {} } } } @@ -145,7 +145,7 @@ function readOptions( const cafile = path.resolve(path.dirname(location), value); try { options['ca'] = readFileSync(cafile, 'utf8').replace(/\r?\n/g, '\n'); - } catch { } + } catch {} } break; default: diff --git a/packages/angular/cli/utilities/package-tree.ts b/packages/angular/cli/utilities/package-tree.ts index 06413799648f..9b5bca0b30eb 100644 --- a/packages/angular/cli/utilities/package-tree.ts +++ b/packages/angular/cli/utilities/package-tree.ts @@ -66,7 +66,7 @@ export async function getProjectDependencies(dir: string): Promise (); + const results = new Map(); for (const [name, version] of getAllDependencies(pkg)) { const packageJsonPath = findPackageJson(dir, name); if (!packageJsonPath) { diff --git a/packages/angular/pwa/pwa/index.ts b/packages/angular/pwa/pwa/index.ts index 108df1f90854..347b282e916f 100644 --- a/packages/angular/pwa/pwa/index.ts +++ b/packages/angular/pwa/pwa/index.ts @@ -32,7 +32,7 @@ function updateIndexFile(path: string): Rule { const rewriter = new (await import('parse5-html-rewriting-stream'))(); let needsNoScript = true; - rewriter.on('startTag', startTag => { + rewriter.on('startTag', (startTag) => { if (startTag.tagName === 'noscript') { needsNoScript = false; } @@ -40,7 +40,7 @@ function updateIndexFile(path: string): Rule { rewriter.emitStartTag(startTag); }); - rewriter.on('endTag', endTag => { + rewriter.on('endTag', (endTag) => { if (endTag.tagName === 'head') { rewriter.emitRaw(' \n'); rewriter.emitRaw(' \n'); @@ -53,7 +53,7 @@ function updateIndexFile(path: string): Rule { rewriter.emitEndTag(endTag); }); - return new Promise(resolve => { + return new Promise((resolve) => { const input = new Readable({ encoding: 'utf8', read(): void { @@ -81,8 +81,8 @@ function updateIndexFile(path: string): Rule { }; } -export default function(options: PwaOptions): Rule { - return async host => { +export default function (options: PwaOptions): Rule { + return async (host) => { if (!options.title) { options.title = options.project; } @@ -161,15 +161,14 @@ export default function(options: PwaOptions): Rule { return chain([ updateWorkspace(workspace), externalSchematic('@schematics/angular', 'service-worker', swOptions), - mergeWith(apply(url('./files/root'), [ - template({ ...options }), - move(sourcePath), - ])), - mergeWith(apply(url('./files/assets'), [ - template({ ...options }), - move(posix.join(sourcePath, 'assets')), - ])), - ...[...indexFiles].map(path => updateIndexFile(path)), + mergeWith(apply(url('./files/root'), [template({ ...options }), move(sourcePath)])), + mergeWith( + apply(url('./files/assets'), [ + template({ ...options }), + move(posix.join(sourcePath, 'assets')), + ]), + ), + ...[...indexFiles].map((path) => updateIndexFile(path)), ]); }; } diff --git a/packages/angular/pwa/pwa/index_spec.ts b/packages/angular/pwa/pwa/index_spec.ts index 04ef325a6183..a5cc155950f7 100644 --- a/packages/angular/pwa/pwa/index_spec.ts +++ b/packages/angular/pwa/pwa/index_spec.ts @@ -40,105 +40,130 @@ describe('PWA Schematic', () => { }; beforeEach(async () => { - appTree = await schematicRunner.runExternalSchematicAsync('@schematics/angular', 'workspace', workspaceOptions).toPromise(); - appTree = await schematicRunner.runExternalSchematicAsync( - '@schematics/angular', - 'application', - appOptions, - appTree, - ).toPromise(); + appTree = await schematicRunner + .runExternalSchematicAsync('@schematics/angular', 'workspace', workspaceOptions) + .toPromise(); + appTree = await schematicRunner + .runExternalSchematicAsync('@schematics/angular', 'application', appOptions, appTree) + .toPromise(); }); it('should run the service worker schematic', (done) => { - schematicRunner.runSchematicAsync('ng-add', defaultOptions, appTree).toPromise().then(tree => { - const configText = tree.readContent('/angular.json'); - const config = JSON.parse(configText); - const swFlag = config.projects.bar.architect.build.options.serviceWorker; - expect(swFlag).toEqual(true); - done(); - }, done.fail); + schematicRunner + .runSchematicAsync('ng-add', defaultOptions, appTree) + .toPromise() + .then((tree) => { + const configText = tree.readContent('/angular.json'); + const config = JSON.parse(configText); + const swFlag = config.projects.bar.architect.build.options.serviceWorker; + expect(swFlag).toEqual(true); + done(); + }, done.fail); }); it('should create icon files', (done) => { const dimensions = [72, 96, 128, 144, 152, 192, 384, 512]; const iconPath = '/projects/bar/src/assets/icons/icon-'; - schematicRunner.runSchematicAsync('ng-add', defaultOptions, appTree).toPromise().then(tree => { - dimensions.forEach(d => { - const path = `${iconPath}${d}x${d}.png`; - expect(tree.exists(path)).toEqual(true); - }); - done(); - }, done.fail); + schematicRunner + .runSchematicAsync('ng-add', defaultOptions, appTree) + .toPromise() + .then((tree) => { + dimensions.forEach((d) => { + const path = `${iconPath}${d}x${d}.png`; + expect(tree.exists(path)).toEqual(true); + }); + done(); + }, done.fail); }); it('should create a manifest file', (done) => { - schematicRunner.runSchematicAsync('ng-add', defaultOptions, appTree).toPromise().then(tree => { - expect(tree.exists('/projects/bar/src/manifest.webmanifest')).toEqual(true); - done(); - }, done.fail); + schematicRunner + .runSchematicAsync('ng-add', defaultOptions, appTree) + .toPromise() + .then((tree) => { + expect(tree.exists('/projects/bar/src/manifest.webmanifest')).toEqual(true); + done(); + }, done.fail); }); it('should set the name & short_name in the manifest file', (done) => { - schematicRunner.runSchematicAsync('ng-add', defaultOptions, appTree).toPromise().then(tree => { - const manifestText = tree.readContent('/projects/bar/src/manifest.webmanifest'); - const manifest = JSON.parse(manifestText); - - expect(manifest.name).toEqual(defaultOptions.title); - expect(manifest.short_name).toEqual(defaultOptions.title); - done(); - }, done.fail); + schematicRunner + .runSchematicAsync('ng-add', defaultOptions, appTree) + .toPromise() + .then((tree) => { + const manifestText = tree.readContent('/projects/bar/src/manifest.webmanifest'); + const manifest = JSON.parse(manifestText); + + expect(manifest.name).toEqual(defaultOptions.title); + expect(manifest.short_name).toEqual(defaultOptions.title); + done(); + }, done.fail); }); it('should set the name & short_name in the manifest file when no title provided', (done) => { - const options = {...defaultOptions, title: undefined}; - schematicRunner.runSchematicAsync('ng-add', options, appTree).toPromise().then(tree => { - const manifestText = tree.readContent('/projects/bar/src/manifest.webmanifest'); - const manifest = JSON.parse(manifestText); - - expect(manifest.name).toEqual(defaultOptions.project); - expect(manifest.short_name).toEqual(defaultOptions.project); - done(); - }, done.fail); + const options = { ...defaultOptions, title: undefined }; + schematicRunner + .runSchematicAsync('ng-add', options, appTree) + .toPromise() + .then((tree) => { + const manifestText = tree.readContent('/projects/bar/src/manifest.webmanifest'); + const manifest = JSON.parse(manifestText); + + expect(manifest.name).toEqual(defaultOptions.project); + expect(manifest.short_name).toEqual(defaultOptions.project); + done(); + }, done.fail); }); it('should update the index file', (done) => { - schematicRunner.runSchematicAsync('ng-add', defaultOptions, appTree).toPromise().then(tree => { - const content = tree.readContent('projects/bar/src/index.html'); - - expect(content).toMatch(//); - expect(content).toMatch(//); - expect(content) - .toMatch(/