@microsoft/windows-admin-center-sdk 4.52.0 → 4.123.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/angular/esm2020/src/controls/actions/containers/action-bar/action-bar.component.mjs +2 -2
  2. package/angular/esm2020/src/controls/master-view/master-view.component.mjs +8 -6
  3. package/angular/esm2020/src/controls/ux/sme-ux-footer/sme-ux-footer-template/sme-wizard-lite-footer-template/sme-wizard-lite-footer-template.component.mjs +56 -1
  4. package/angular/esm2020/src/service/navigation.service.mjs +3 -1
  5. package/angular/fesm2015/microsoft-windows-admin-center-sdk-angular.mjs +66 -6
  6. package/angular/fesm2015/microsoft-windows-admin-center-sdk-angular.mjs.map +1 -1
  7. package/angular/fesm2020/microsoft-windows-admin-center-sdk-angular.mjs +65 -6
  8. package/angular/fesm2020/microsoft-windows-admin-center-sdk-angular.mjs.map +1 -1
  9. package/angular/src/controls/master-view/master-view.component.d.ts +6 -2
  10. package/angular/src/controls/ux/sme-ux-footer/sme-ux-footer-template/sme-wizard-lite-footer-template/sme-wizard-lite-footer-template.component.d.ts +64 -0
  11. package/core/assets/strings/cs-CZ/strings.json +1 -1
  12. package/core/assets/strings/de-DE/strings.json +1 -1
  13. package/core/assets/strings/es-ES/strings.json +1 -1
  14. package/core/assets/strings/fr-FR/strings.json +1 -1
  15. package/core/assets/strings/hu-HU/strings.json +1 -1
  16. package/core/assets/strings/id-ID/strings.json +1 -1
  17. package/core/assets/strings/it-IT/strings.json +1 -1
  18. package/core/assets/strings/ja-JP/strings.json +1 -1
  19. package/core/assets/strings/ko-KR/strings.json +1 -1
  20. package/core/assets/strings/nl-NL/strings.json +1 -1
  21. package/core/assets/strings/pl-PL/strings.json +1 -1
  22. package/core/assets/strings/pt-BR/strings.json +1 -1
  23. package/core/assets/strings/pt-PT/strings.json +1 -1
  24. package/core/assets/strings/ru-RU/strings.json +1 -1
  25. package/core/assets/strings/strings.json +1 -1
  26. package/core/assets/strings/sv-SE/strings.json +1 -1
  27. package/core/assets/strings/tr-TR/strings.json +1 -1
  28. package/core/assets/strings/zh-CN/strings.json +1 -1
  29. package/core/assets/strings/zh-TW/strings.json +1 -1
  30. package/core/azure/azure-constants.d.ts +7 -3
  31. package/core/azure/azure-constants.d.ts.map +1 -1
  32. package/core/azure/azure-constants.js +8 -4
  33. package/core/azure/azure-constants.js.map +1 -1
  34. package/core/azure/models/azureArcStatusEnum.d.ts +4 -2
  35. package/core/azure/models/azureArcStatusEnum.d.ts.map +1 -1
  36. package/core/azure/models/azureArcStatusEnum.js +3 -1
  37. package/core/azure/models/azureArcStatusEnum.js.map +1 -1
  38. package/core/base/utilities.d.ts +3 -3
  39. package/core/base/utilities.d.ts.map +1 -1
  40. package/core/base/utilities.js +2 -2
  41. package/core/base/utilities.js.map +1 -1
  42. package/core/data/active-directory/active-directory.d.ts.map +1 -1
  43. package/core/data/active-directory/active-directory.js +1 -1
  44. package/core/data/active-directory/active-directory.js.map +1 -1
  45. package/core/data/cookie.d.ts.map +1 -1
  46. package/core/data/cookie.js +7 -0
  47. package/core/data/cookie.js.map +1 -1
  48. package/core/data/gateway-connection.d.ts +12 -0
  49. package/core/data/gateway-connection.d.ts.map +1 -1
  50. package/core/data/gateway-connection.js +16 -0
  51. package/core/data/gateway-connection.js.map +1 -1
  52. package/core/data/gateway-url-translator.d.ts +1 -0
  53. package/core/data/gateway-url-translator.d.ts.map +1 -1
  54. package/core/data/gateway-url-translator.js +15 -0
  55. package/core/data/gateway-url-translator.js.map +1 -1
  56. package/core/data/gateway-urls.d.ts +6 -0
  57. package/core/data/gateway-urls.d.ts.map +1 -1
  58. package/core/data/gateway-urls.js +8 -0
  59. package/core/data/gateway-urls.js.map +1 -1
  60. package/core/data/net.d.ts +1 -0
  61. package/core/data/net.d.ts.map +1 -1
  62. package/core/data/net.js +26 -1
  63. package/core/data/net.js.map +1 -1
  64. package/core/data/websocket-stream.d.ts.map +1 -1
  65. package/core/data/websocket-stream.js +2 -2
  66. package/core/data/websocket-stream.js.map +1 -1
  67. package/core/generated/powershell-scripts.d.ts.map +1 -1
  68. package/core/generated/powershell-scripts.js +1 -1
  69. package/core/generated/powershell-scripts.js.map +1 -1
  70. package/core/generated/strings.d.ts +3 -0
  71. package/core/generated/strings.d.ts.map +1 -1
  72. package/core/generated/strings.js.map +1 -1
  73. package/core/notification/notification.d.ts.map +1 -1
  74. package/core/notification/notification.js +1 -3
  75. package/core/notification/notification.js.map +1 -1
  76. package/core/resources/scripts/public/inventory/Get-ServerInventory.ps1 +8 -8
  77. package/core/security/tool-condition-validator.d.ts.map +1 -1
  78. package/core/security/tool-condition-validator.js +5 -5
  79. package/core/security/tool-condition-validator.js.map +1 -1
  80. package/core/shared/server-inventory/server-inventory-cache.d.ts.map +1 -1
  81. package/core/shared/server-inventory/server-inventory-cache.js +1 -2
  82. package/core/shared/server-inventory/server-inventory-cache.js.map +1 -1
  83. package/core/shared/server-inventory/server-inventory.d.ts +4 -4
  84. package/core/shared/server-inventory/server-inventory.d.ts.map +1 -1
  85. package/core/shared/server-inventory/server-inventory.js +2 -2
  86. package/core/shared/server-inventory/server-inventory.js.map +1 -1
  87. package/microsoft-windows-admin-center-sdk-4.123.0.tgz +0 -0
  88. package/package.json +4 -4
  89. package/styles/css/main-v2.css +1 -1
  90. package/tools/module-template/build/pipelines/ci-build.yml +2 -2
  91. package/tools/wac-cli/src/angular15/configs/angular-json-config.d.ts +2 -7
  92. package/tools/wac-cli/src/angular15/configs/angular-json-config.d.ts.map +1 -1
  93. package/tools/wac-cli/src/angular15/configs/angular-json-config.js +8 -1
  94. package/tools/wac-cli/src/angular15/configs/angular-json-config.js.map +1 -1
  95. package/tools/wac-cli/src/angular15/configs/package-json-config.d.ts +4 -0
  96. package/tools/wac-cli/src/angular15/configs/package-json-config.d.ts.map +1 -1
  97. package/tools/wac-cli/src/angular15/configs/package-json-config.js +13 -9
  98. package/tools/wac-cli/src/angular15/configs/package-json-config.js.map +1 -1
  99. package/tools/wac-cli/src/angular15/configs/ui-test-automation-lagacy-config.d.ts +14 -0
  100. package/tools/wac-cli/src/angular15/configs/ui-test-automation-lagacy-config.d.ts.map +1 -0
  101. package/tools/wac-cli/src/angular15/configs/ui-test-automation-lagacy-config.js +21 -0
  102. package/tools/wac-cli/src/angular15/configs/ui-test-automation-lagacy-config.js.map +1 -0
  103. package/tools/wac-cli/src/angular15/main.d.ts +33 -3
  104. package/tools/wac-cli/src/angular15/main.d.ts.map +1 -1
  105. package/tools/wac-cli/src/angular15/main.js +69 -7
  106. package/tools/wac-cli/src/angular15/main.js.map +1 -1
  107. package/tools/wac-cli/src/angular15/test/ui-test-automation-package.json/after.json +14 -0
  108. package/tools/wac-cli/src/angular15/test/ui-test-automation-package.json/before.json +13 -0
  109. package/tools/wac-cli/src/angular15/upgrader/ui-test-automation-legacy-upgrader.d.ts +15 -0
  110. package/tools/wac-cli/src/angular15/upgrader/ui-test-automation-legacy-upgrader.d.ts.map +1 -0
  111. package/tools/wac-cli/src/angular15/upgrader/ui-test-automation-legacy-upgrader.js +48 -0
  112. package/tools/wac-cli/src/angular15/upgrader/ui-test-automation-legacy-upgrader.js.map +1 -0
  113. package/tools/wac-cli/src/angular15/utils/main-debugger.d.ts.map +1 -1
  114. package/tools/wac-cli/src/angular15/utils/main-debugger.js +3 -0
  115. package/tools/wac-cli/src/angular15/utils/main-debugger.js.map +1 -1
  116. package/tools/wac-cli/src/angular15/utils/update-shell-references.d.ts +2 -0
  117. package/tools/wac-cli/src/angular15/utils/update-shell-references.d.ts.map +1 -0
  118. package/tools/wac-cli/src/angular15/utils/update-shell-references.js +69 -0
  119. package/tools/wac-cli/src/angular15/utils/update-shell-references.js.map +1 -0
  120. package/tools/wac-cli/src/common.d.ts +6 -0
  121. package/tools/wac-cli/src/common.d.ts.map +1 -1
  122. package/tools/wac-cli/src/common.js +13 -0
  123. package/tools/wac-cli/src/common.js.map +1 -1
  124. package/tools/wac-cli/src/create/main.d.ts.map +1 -1
  125. package/tools/wac-cli/src/create/main.js +3 -51
  126. package/tools/wac-cli/src/create/main.js.map +1 -1
  127. package/tools/wac-cli/src/eslint/main.d.ts +5 -1
  128. package/tools/wac-cli/src/eslint/main.d.ts.map +1 -1
  129. package/tools/wac-cli/src/eslint/main.js +17 -2
  130. package/tools/wac-cli/src/eslint/main.js.map +1 -1
  131. package/tools/wac-cli/src/index.d.ts.map +1 -1
  132. package/tools/wac-cli/src/index.js +2 -2
  133. package/tools/wac-cli/src/index.js.map +1 -1
  134. package/tools/wac-cli/templates/wac-template/package.json +3 -0
@@ -83,7 +83,7 @@ jobs:
83
83
  inputs:
84
84
  filePath: build/update-powershell-code.ps1
85
85
  failOnStderr: true
86
- - task: EsrpCodeSigning@1
86
+ - task: EsrpCodeSigning@2
87
87
  displayName: ESRP CodeSigning for PowerShellModule
88
88
  inputs:
89
89
  ConnectedServiceName: 62bd045c-f530-473f-b137-6dca47b5ee68
@@ -152,7 +152,7 @@ jobs:
152
152
  gulpFile: gulpfile.ts
153
153
  targets: pack
154
154
  arguments: --V $(packageVersion)
155
- - task: EsrpCodeSigning@1
155
+ - task: EsrpCodeSigning@2
156
156
  displayName: ESRP CodeSigning for Nuget Package
157
157
  inputs:
158
158
  ConnectedServiceName: 62bd045c-f530-473f-b137-6dca47b5ee68
@@ -6,17 +6,12 @@ export declare const replaces: {
6
6
  '"builder": "@angular-devkit/build-ng-packagr:build"': string;
7
7
  '"defaultCollection": "@angular-eslint/schematics"': string;
8
8
  };
9
- export declare const adds: ({
10
- toBeAdded: string;
11
- toBeAddedAfter: string;
12
- indent: number;
13
- keyword?: undefined;
14
- } | {
9
+ export declare const adds: {
15
10
  toBeAdded: string;
16
11
  toBeAddedAfter: string;
17
12
  indent: number;
18
13
  keyword: string;
19
- })[];
14
+ }[];
20
15
  export declare const removes: ({
21
16
  key: string;
22
17
  linesInTotalAfterKey: number;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../packages/tools/wac-cli/src/angular15/configs/angular-json-config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAEF,eAAO,MAAM,IAAI;;;;;;;;;;IAYhB,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;IAsBnB,CAAA","file":"angular-json-config.d.ts","sourcesContent":["/**\r\n * The configuration file for the angular.json file upgrading to Angular 15.\r\n */\r\n\r\nexport const replaces = {\r\n '\"maximumWarning\": \"2mb\"' : '\"maximumWarning\": \"4mb\"',\r\n '\"builder\": \"@angular-devkit/build-ng-packagr:build\"': '\"builder\": \"@angular-devkit/build-angular:ng-packagr\"',\r\n '\"defaultCollection\": \"@angular-eslint/schematics\"': '\"analytics\": false'\r\n};\r\n\r\nexport const adds = [\r\n {\r\n toBeAdded: '\"polyfills\": [\"zone.js\", \"zone.js/testing\", \"zone.js/dist/zone\", \"@msft-sme/core/polyfills\"]',\r\n toBeAddedAfter: '\"main\": \"src/test.ts\"',\r\n indent: 12\r\n },\r\n {\r\n toBeAdded: '\"allowedCommonJsDependencies\": [\"chart.js\"]',\r\n toBeAddedAfter: '\"main\": \"src/main.ts\"',\r\n indent: 12,\r\n keyword: '\"allowedCommonJsDependencies\": [\"chart.js\"]',\r\n }\r\n];\r\n\r\nexport const removes = [\r\n {\r\n key: 'customWebpackConfig',\r\n linesInTotalAfterKey: 4,\r\n exactMatch: false\r\n },\r\n {\r\n key: '\"extractCss\": true,'\r\n },\r\n {\r\n key: '\"polyfills\": \"src/polyfills.ts\",',\r\n toBeRemovedAfter: '\"main\": \"src/test.ts\"'\r\n },\r\n {\r\n key: '\"main\": \"src/test.ts\",'\r\n },\r\n {\r\n key: '\"defaultProject\"',\r\n },\r\n {\r\n key: '\"analytics\": false\",'\r\n }\r\n]\r\n"]}
1
+ {"version":3,"sources":["../../../packages/tools/wac-cli/src/angular15/configs/angular-json-config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAEF,eAAO,MAAM,IAAI;;;;;GAmBhB,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;IAsBnB,CAAA","file":"angular-json-config.d.ts","sourcesContent":["/**\r\n * The configuration file for the angular.json file upgrading to Angular 15.\r\n */\r\n\r\nexport const replaces = {\r\n '\"maximumWarning\": \"2mb\"' : '\"maximumWarning\": \"4mb\"',\r\n '\"builder\": \"@angular-devkit/build-ng-packagr:build\"': '\"builder\": \"@angular-devkit/build-angular:ng-packagr\"',\r\n '\"defaultCollection\": \"@angular-eslint/schematics\"': '\"analytics\": false'\r\n};\r\n\r\nexport const adds = [\r\n {\r\n toBeAdded: '\"polyfills\": [\"zone.js\", \"zone.js/testing\", \"zone.js/dist/zone\", \"@msft-sme/core/polyfills\"]',\r\n toBeAddedAfter: '\"main\": \"src/test.ts\"',\r\n indent: 12,\r\n keyword: '\"polyfills\": [\"zone.js\"'\r\n },\r\n {\r\n toBeAdded: '\"polyfills\": [\"zone.js\", \"zone.js/testing\", \"zone.js/dist/zone\", \"@msft-sme/core/polyfills\"]',\r\n toBeAddedAfter: '\"codeCoverage\": true',\r\n indent: 12,\r\n keyword: '\"polyfills\": [\"zone.js\"'\r\n },\r\n {\r\n toBeAdded: '\"allowedCommonJsDependencies\": [\"chart.js\"]',\r\n toBeAddedAfter: '\"main\": \"src/main.ts\"',\r\n indent: 12,\r\n keyword: '\"allowedCommonJsDependencies\": [\"chart.js\"]',\r\n }\r\n];\r\n\r\nexport const removes = [\r\n {\r\n key: 'customWebpackConfig',\r\n linesInTotalAfterKey: 4,\r\n exactMatch: false\r\n },\r\n {\r\n key: '\"extractCss\": true,'\r\n },\r\n {\r\n key: '\"polyfills\": \"src/polyfills.ts\",',\r\n toBeRemovedAfter: '\"main\": \"src/test.ts\"'\r\n },\r\n {\r\n key: '\"main\": \"src/test.ts\",'\r\n },\r\n {\r\n key: '\"defaultProject\"',\r\n },\r\n {\r\n key: '\"analytics\": false\",'\r\n }\r\n]\r\n"]}
@@ -13,7 +13,14 @@ exports.adds = [
13
13
  {
14
14
  toBeAdded: '"polyfills": ["zone.js", "zone.js/testing", "zone.js/dist/zone", "@msft-sme/core/polyfills"]',
15
15
  toBeAddedAfter: '"main": "src/test.ts"',
16
- indent: 12
16
+ indent: 12,
17
+ keyword: '"polyfills": ["zone.js"'
18
+ },
19
+ {
20
+ toBeAdded: '"polyfills": ["zone.js", "zone.js/testing", "zone.js/dist/zone", "@msft-sme/core/polyfills"]',
21
+ toBeAddedAfter: '"codeCoverage": true',
22
+ indent: 12,
23
+ keyword: '"polyfills": ["zone.js"'
17
24
  },
18
25
  {
19
26
  toBeAdded: '"allowedCommonJsDependencies": ["chart.js"]',
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../packages/tools/wac-cli/src/angular15/configs/angular-json-config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEU,QAAA,QAAQ,GAAG;IACpB,yBAAyB,EAAG,yBAAyB;IACrD,qDAAqD,EAAE,uDAAuD;IAC9G,mDAAmD,EAAE,oBAAoB;CAC5E,CAAC;AAEW,QAAA,IAAI,GAAG;IAChB;QACI,SAAS,EAAE,8FAA8F;QACzG,cAAc,EAAE,uBAAuB;QACvC,MAAM,EAAE,EAAE;KACb;IACD;QACI,SAAS,EAAE,6CAA6C;QACxD,cAAc,EAAE,uBAAuB;QACvC,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,6CAA6C;KACzD;CACJ,CAAC;AAEW,QAAA,OAAO,GAAG;IACnB;QACI,GAAG,EAAE,qBAAqB;QAC1B,oBAAoB,EAAE,CAAC;QACvB,UAAU,EAAE,KAAK;KACpB;IACD;QACI,GAAG,EAAE,qBAAqB;KAC7B;IACD;QACI,GAAG,EAAE,kCAAkC;QACvC,gBAAgB,EAAE,uBAAuB;KAC5C;IACD;QACI,GAAG,EAAE,wBAAwB;KAChC;IACD;QACI,GAAG,EAAE,kBAAkB;KAC1B;IACD;QACI,GAAG,EAAE,sBAAsB;KAC9B;CACJ,CAAA","file":"angular-json-config.js","sourcesContent":["/**\r\n * The configuration file for the angular.json file upgrading to Angular 15.\r\n */\r\n\r\nexport const replaces = {\r\n '\"maximumWarning\": \"2mb\"' : '\"maximumWarning\": \"4mb\"',\r\n '\"builder\": \"@angular-devkit/build-ng-packagr:build\"': '\"builder\": \"@angular-devkit/build-angular:ng-packagr\"',\r\n '\"defaultCollection\": \"@angular-eslint/schematics\"': '\"analytics\": false'\r\n};\r\n\r\nexport const adds = [\r\n {\r\n toBeAdded: '\"polyfills\": [\"zone.js\", \"zone.js/testing\", \"zone.js/dist/zone\", \"@msft-sme/core/polyfills\"]',\r\n toBeAddedAfter: '\"main\": \"src/test.ts\"',\r\n indent: 12\r\n },\r\n {\r\n toBeAdded: '\"allowedCommonJsDependencies\": [\"chart.js\"]',\r\n toBeAddedAfter: '\"main\": \"src/main.ts\"',\r\n indent: 12,\r\n keyword: '\"allowedCommonJsDependencies\": [\"chart.js\"]',\r\n }\r\n];\r\n\r\nexport const removes = [\r\n {\r\n key: 'customWebpackConfig',\r\n linesInTotalAfterKey: 4,\r\n exactMatch: false\r\n },\r\n {\r\n key: '\"extractCss\": true,'\r\n },\r\n {\r\n key: '\"polyfills\": \"src/polyfills.ts\",',\r\n toBeRemovedAfter: '\"main\": \"src/test.ts\"'\r\n },\r\n {\r\n key: '\"main\": \"src/test.ts\",'\r\n },\r\n {\r\n key: '\"defaultProject\"',\r\n },\r\n {\r\n key: '\"analytics\": false\",'\r\n }\r\n]\r\n"]}
1
+ {"version":3,"sources":["../../../packages/tools/wac-cli/src/angular15/configs/angular-json-config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEU,QAAA,QAAQ,GAAG;IACpB,yBAAyB,EAAG,yBAAyB;IACrD,qDAAqD,EAAE,uDAAuD;IAC9G,mDAAmD,EAAE,oBAAoB;CAC5E,CAAC;AAEW,QAAA,IAAI,GAAG;IAChB;QACI,SAAS,EAAE,8FAA8F;QACzG,cAAc,EAAE,uBAAuB;QACvC,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,yBAAyB;KACrC;IACD;QACI,SAAS,EAAE,8FAA8F;QACzG,cAAc,EAAE,sBAAsB;QACtC,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,yBAAyB;KACrC;IACD;QACI,SAAS,EAAE,6CAA6C;QACxD,cAAc,EAAE,uBAAuB;QACvC,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,6CAA6C;KACzD;CACJ,CAAC;AAEW,QAAA,OAAO,GAAG;IACnB;QACI,GAAG,EAAE,qBAAqB;QAC1B,oBAAoB,EAAE,CAAC;QACvB,UAAU,EAAE,KAAK;KACpB;IACD;QACI,GAAG,EAAE,qBAAqB;KAC7B;IACD;QACI,GAAG,EAAE,kCAAkC;QACvC,gBAAgB,EAAE,uBAAuB;KAC5C;IACD;QACI,GAAG,EAAE,wBAAwB;KAChC;IACD;QACI,GAAG,EAAE,kBAAkB;KAC1B;IACD;QACI,GAAG,EAAE,sBAAsB;KAC9B;CACJ,CAAA","file":"angular-json-config.js","sourcesContent":["/**\r\n * The configuration file for the angular.json file upgrading to Angular 15.\r\n */\r\n\r\nexport const replaces = {\r\n '\"maximumWarning\": \"2mb\"' : '\"maximumWarning\": \"4mb\"',\r\n '\"builder\": \"@angular-devkit/build-ng-packagr:build\"': '\"builder\": \"@angular-devkit/build-angular:ng-packagr\"',\r\n '\"defaultCollection\": \"@angular-eslint/schematics\"': '\"analytics\": false'\r\n};\r\n\r\nexport const adds = [\r\n {\r\n toBeAdded: '\"polyfills\": [\"zone.js\", \"zone.js/testing\", \"zone.js/dist/zone\", \"@msft-sme/core/polyfills\"]',\r\n toBeAddedAfter: '\"main\": \"src/test.ts\"',\r\n indent: 12,\r\n keyword: '\"polyfills\": [\"zone.js\"'\r\n },\r\n {\r\n toBeAdded: '\"polyfills\": [\"zone.js\", \"zone.js/testing\", \"zone.js/dist/zone\", \"@msft-sme/core/polyfills\"]',\r\n toBeAddedAfter: '\"codeCoverage\": true',\r\n indent: 12,\r\n keyword: '\"polyfills\": [\"zone.js\"'\r\n },\r\n {\r\n toBeAdded: '\"allowedCommonJsDependencies\": [\"chart.js\"]',\r\n toBeAddedAfter: '\"main\": \"src/main.ts\"',\r\n indent: 12,\r\n keyword: '\"allowedCommonJsDependencies\": [\"chart.js\"]',\r\n }\r\n];\r\n\r\nexport const removes = [\r\n {\r\n key: 'customWebpackConfig',\r\n linesInTotalAfterKey: 4,\r\n exactMatch: false\r\n },\r\n {\r\n key: '\"extractCss\": true,'\r\n },\r\n {\r\n key: '\"polyfills\": \"src/polyfills.ts\",',\r\n toBeRemovedAfter: '\"main\": \"src/test.ts\"'\r\n },\r\n {\r\n key: '\"main\": \"src/test.ts\",'\r\n },\r\n {\r\n key: '\"defaultProject\"',\r\n },\r\n {\r\n key: '\"analytics\": false\",'\r\n }\r\n]\r\n"]}
@@ -10,6 +10,9 @@ export declare const replaces: {
10
10
  '"@msft-sme/remote-desktop": "2.35.0"': string;
11
11
  '"@msft-sme/event-viewer": "2.88.0"': string;
12
12
  '"@msft-sme/azure-center": "2.47.0"': string;
13
+ '"@msft-sme/storage": "2.44.0"': string;
14
+ '"@msft-sme/local-users-groups": "2.45.0"': string;
15
+ '"@msft-sme/powershell-console": "2.33.0"': string;
13
16
  };
14
17
  export declare const replacesPipeline: {
15
18
  '"@angular/animations": "11.2.14"': string;
@@ -60,6 +63,7 @@ export declare const replacesPipeline: {
60
63
  '"typescript": "4.1.5"': string;
61
64
  '"gulp-eslint": "6.0.0"': string;
62
65
  '"ajv": "6.12.6"': string;
66
+ '"@playwright/test": "1.20.1"': string;
63
67
  };
64
68
  export declare const removes: string[];
65
69
  export declare const adds: {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../packages/tools/wac-cli/src/angular15/configs/package-json-config.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;CASpB,CAAA;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiD5B,CAAA;AAGD,eAAO,MAAM,OAAO,UAUnB,CAAA;AAED,eAAO,MAAM,IAAI;;;CAGhB,CAAA","file":"package-json-config.d.ts","sourcesContent":["/**\r\n * The configuration file for the package-json-config.ts file upgrading to Angular 15.\r\n */\r\nexport const replaces = {\r\n '\"@msft-sme/core\": \"2.633.0\"': '\"@msft-sme/core\": \"4.12.0\"',\r\n '\"@msft-sme/angular\": \"2.633.0\"': '\"@msft-sme/angular\": \"4.12.0\"',\r\n '\"@msft-sme/styles\": \"2.633.0\"': '\"@msft-sme/styles\": \"4.12.0\"',\r\n '\"@microsoft/windows-admin-center-sdk/tools\": \"2.633.0\"': '\"@microsoft/windows-admin-center-sdk/tools\": \"4.12.0\"',\r\n '\"@msft-sme/file-explorer\": \"2.174.0\"': '\"@msft-sme/file-explorer\": \"4.2.0\"',\r\n '\"@msft-sme/remote-desktop\": \"2.35.0\"': '\"@msft-sme/remote-desktop\": \"4.2.0\"',\r\n '\"@msft-sme/event-viewer\": \"2.88.0\"': '\"@msft-sme/event-viewer\": \"4.1.0\"',\r\n '\"@msft-sme/azure-center\": \"2.47.0\"': '\"@msft-sme/azure-center\": \"4.1.0\"'\r\n}\r\n\r\nexport const replacesPipeline = {\r\n '\"@angular/animations\": \"11.2.14\"': '\"@angular/animations\": \"15.2.9\"',\r\n '\"@angular/common\": \"11.2.14\"': '\"@angular/common\": \"15.2.9\"',\r\n '\"@angular/compiler\": \"11.2.14\"': '\"@angular/compiler\": \"15.2.9\"',\r\n '\"@angular/core\": \"11.2.14\"': '\"@angular/core\": \"15.2.9\"',\r\n '\"@angular/forms\": \"11.2.14\"': '\"@angular/forms\": \"15.2.9\"',\r\n '\"@angular/language-service\": \"11.2.14\"': '\"@angular/language-service\": \"15.2.9\"',\r\n '\"@angular/platform-browser\": \"11.2.14\"': '\"@angular/platform-browser\": \"15.2.9\"',\r\n '\"@angular/platform-browser-dynamic\": \"11.2.14\"': '\"@angular/platform-browser-dynamic\": \"15.2.9\"',\r\n '\"@angular/router\": \"11.2.14\"': '\"@angular/router\": \"15.2.9\"',\r\n '\"core-js\": \"2.6.2\"': '\"core-js\": \"3.30.1\"',\r\n '\"tslib\": \"^2.0.0\"': '\"tslib\": \"^2.3.0\"',\r\n '\"rxjs\": \"6.6.0\"': '\"rxjs\": \"~7.5.0\"',\r\n '\"zone.js\": \"0.11.3\"': '\"zone.js\": \"0.13.1\"',\r\n '\"@angular-builders/custom-webpack\": \"11.1.1\"': '\"@angular-builders/custom-webpack\": \"15.0.0\"',\r\n '\"@angular-devkit/build-angular\": \"0.1102.13\"': '\"@angular-devkit/build-angular\": \"15.2.9\"',\r\n '\"@angular-eslint/builder\": \"4.3.1\"': '\"@angular-eslint/builder\": \"15.2.1\"',\r\n '\"@angular-eslint/eslint-plugin\": \"4.3.1\"': '\"@angular-eslint/eslint-plugin\": \"15.2.1\"',\r\n '\"@angular-eslint/eslint-plugin-template\": \"4.3.1\"': '\"@angular-eslint/eslint-plugin-template\": \"15.2.1\"',\r\n '\"@angular-eslint/schematics\": \"4.3.1\"': '\"@angular-eslint/schematics\": \"15.2.1\"',\r\n '\"@angular-eslint/template-parser\": \"4.3.1\"': '\"@angular-eslint/template-parser\": \"15.2.1\"',\r\n '\"@angular/cli\": \"11.2.13\"': '\"@angular/cli\": \"15.2.9\"',\r\n '\"@angular/compiler-cli\": \"11.2.14\"': '\"@angular/compiler-cli\": \"15.2.9\"',\r\n '\"@types/jasmine\": \"3.6.0\"': '\"@types/jasmine\": \"~4.3.0\"',\r\n '\"@types/karma\": \"5.0.0\"': '\"@types/karma\": \"6.3.4\"',\r\n '\"@types/node\": \"12.11.1\"': '\"@types/node\": \"17.0.21\"',\r\n '\"@typescript-eslint/eslint-plugin\": \"4.16.1\"': '\"@typescript-eslint/eslint-plugin\": \"6.4.1\"',\r\n '\"@typescript-eslint/parser\": \"4.16.1\"': '\"@typescript-eslint/parser\": \"6.4.1\"',\r\n '\"eslint\": \"7.6.0\"': '\"eslint\": \"8.47.0\"',\r\n '\"eslint-plugin-import\": \"2.21.0\"': '\"eslint-plugin-import\": \"2.28.1\"',\r\n '\"eslint-plugin-jsdoc\": \"36.1.1\"': '\"eslint-plugin-jsdoc\": \"^46.5.0\"',\r\n '\"eslint-plugin-jsonc\": \"2.8.0\"': '\"eslint-plugin-jsonc\": \"^2.9.0\"',\r\n '\"gulp\": \"4.0.0\"': '\"gulp\": \"4.0.2\"',\r\n '\"jasmine-core\": \"3.6.0\"': '\"jasmine-core\": \"~4.5.0\"',\r\n '\"\"jasmine-reporters\": \"2.4.0\"': '\"jasmine-reporters\": \"~2.5.2\"',\r\n '\"karma\": \"6.1.0\"': '\"karma\": \"~6.4.0\"',\r\n '\"karma-coverage\": \"2.0.3\"': '\"karma-coverage\": \"~2.2.0\"',\r\n '\"karma-jasmine\": \"4.0.0\"': '\"karma-jasmine\": \"5.1.0\"',\r\n '\"karma-jasmine-html-reporter\": \"1.5.0\"': '\"karma-jasmine-html-reporter\": \"2.1.0\"',\r\n '\"karma-typescript\": \"5.5.1\"': '\"karma-typescript\": \"5.5.4\"',\r\n '\"ng-mocks\": \"11.10.1\"': '\"ng-mocks\": \"~14.11.0\"',\r\n '\"ng-packagr\": \"11.2.4\"': '\"ng-packagr\": \"~15.2.2\"',\r\n '\"puppeteer\": \"10.0.0\"': '\"puppeteer\": \"~21.0.1\"',\r\n '\"selenium-webdriver\": \"3.6.0\"': '\"selenium-webdriver\": \"4.11.1\"',\r\n '\"ts-helpers\": \"1.1.1\"': '\"ts-helpers\": \"1.1.2\"',\r\n '\"ts-node\": \"8.3.0\"': '\"ts-node\": \"~10.9.1\"',\r\n '\"typescript\": \"4.1.5\"': '\"typescript\": \"4.8.2\"',\r\n '\"gulp-eslint\": \"6.0.0\"': '\"gulp-eslint-new\": \"1.8.3\"',\r\n '\"ajv\": \"6.12.6\"': '\"ajv\": \"6.12.6\"'\r\n}\r\n\r\n// wac-uta will be brought back until we fix the dependency issue.\r\nexport const removes = [\r\n \"@angular-devkit/build-ng-packagr\",\r\n \"@angular-devkit/build-optimizer\",\r\n \"@wac-uta/shell\",\r\n \"@wac-uta/ui-test-automation\",\r\n \"@wac-uta/file-explorer\",\r\n \"@msft-sme/ui-test-automation\",\r\n \"jquery\",\r\n \"tsickle\",\r\n \"@msft-sme/e2e\"\r\n]\r\n\r\nexport const adds = {\r\n '\"eslint-plugin-angular\": \"^4.1.0\"': '\"eslint-plugin-deprecation\": \"1.5.0\"',\r\n '\"eslint-plugin-prefer-arrow\": \"^1.2.3\"': '\"eslint-plugin-unused-imports\": \"^3.0.0\"'\r\n}\r\n"]}
1
+ {"version":3,"sources":["../../../packages/tools/wac-cli/src/angular15/configs/package-json-config.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;CAYpB,CAAA;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkD5B,CAAA;AAGD,eAAO,MAAM,OAAO,UAUnB,CAAA;AAED,eAAO,MAAM,IAAI;;;CAGhB,CAAA","file":"package-json-config.d.ts","sourcesContent":["/**\r\n * The configuration file for the package-json-config.ts file upgrading to Angular 15.\r\n */\r\nexport const replaces = {\r\n '\"@msft-sme/core\": \"2.633.0\"': '\"@msft-sme/core\": \"4.99.0\"',\r\n '\"@msft-sme/angular\": \"2.633.0\"': '\"@msft-sme/angular\": \"4.99.0\"',\r\n '\"@msft-sme/styles\": \"2.633.0\"': '\"@msft-sme/styles\": \"4.99.0\"',\r\n '\"@microsoft/windows-admin-center-sdk/tools\": \"2.633.0\"': '\"@microsoft/windows-admin-center-sdk/tools\": \"4.99.0\"',\r\n '\"@msft-sme/file-explorer\": \"2.174.0\"': '\"@msft-sme/file-explorer\": \"4.10.0\"',\r\n '\"@msft-sme/remote-desktop\": \"2.35.0\"': '\"@msft-sme/remote-desktop\": \"4.9.0\"',\r\n '\"@msft-sme/event-viewer\": \"2.88.0\"': '\"@msft-sme/event-viewer\": \"4.8.0\"',\r\n '\"@msft-sme/azure-center\": \"2.47.0\"': '\"@msft-sme/azure-center\": \"4.9.0\"',\r\n '\"@msft-sme/storage\": \"2.44.0\"': '\"@msft-sme/storage\": \"4.8.0\"',\r\n '\"@msft-sme/local-users-groups\": \"2.45.0\"': '\"@msft-sme/local-users-groups\": \"4.7.0\"',\r\n '\"@msft-sme/powershell-console\": \"2.33.0\"': '\"@msft-sme/powershell-console\": \"4.8.0\"'\r\n}\r\n\r\nexport const replacesPipeline = {\r\n '\"@angular/animations\": \"11.2.14\"': '\"@angular/animations\": \"15.2.9\"',\r\n '\"@angular/common\": \"11.2.14\"': '\"@angular/common\": \"15.2.9\"',\r\n '\"@angular/compiler\": \"11.2.14\"': '\"@angular/compiler\": \"15.2.9\"',\r\n '\"@angular/core\": \"11.2.14\"': '\"@angular/core\": \"15.2.9\"',\r\n '\"@angular/forms\": \"11.2.14\"': '\"@angular/forms\": \"15.2.9\"',\r\n '\"@angular/language-service\": \"11.2.14\"': '\"@angular/language-service\": \"15.2.9\"',\r\n '\"@angular/platform-browser\": \"11.2.14\"': '\"@angular/platform-browser\": \"15.2.9\"',\r\n '\"@angular/platform-browser-dynamic\": \"11.2.14\"': '\"@angular/platform-browser-dynamic\": \"15.2.9\"',\r\n '\"@angular/router\": \"11.2.14\"': '\"@angular/router\": \"15.2.9\"',\r\n '\"core-js\": \"2.6.2\"': '\"core-js\": \"3.30.1\"',\r\n '\"tslib\": \"^2.0.0\"': '\"tslib\": \"^2.3.0\"',\r\n '\"rxjs\": \"6.6.0\"': '\"rxjs\": \"~7.5.0\"',\r\n '\"zone.js\": \"0.11.3\"': '\"zone.js\": \"0.13.1\"',\r\n '\"@angular-builders/custom-webpack\": \"11.1.1\"': '\"@angular-builders/custom-webpack\": \"15.0.0\"',\r\n '\"@angular-devkit/build-angular\": \"0.1102.13\"': '\"@angular-devkit/build-angular\": \"15.2.9\"',\r\n '\"@angular-eslint/builder\": \"4.3.1\"': '\"@angular-eslint/builder\": \"15.2.1\"',\r\n '\"@angular-eslint/eslint-plugin\": \"4.3.1\"': '\"@angular-eslint/eslint-plugin\": \"15.2.1\"',\r\n '\"@angular-eslint/eslint-plugin-template\": \"4.3.1\"': '\"@angular-eslint/eslint-plugin-template\": \"15.2.1\"',\r\n '\"@angular-eslint/schematics\": \"4.3.1\"': '\"@angular-eslint/schematics\": \"15.2.1\"',\r\n '\"@angular-eslint/template-parser\": \"4.3.1\"': '\"@angular-eslint/template-parser\": \"15.2.1\"',\r\n '\"@angular/cli\": \"11.2.13\"': '\"@angular/cli\": \"15.2.9\"',\r\n '\"@angular/compiler-cli\": \"11.2.14\"': '\"@angular/compiler-cli\": \"15.2.9\"',\r\n '\"@types/jasmine\": \"3.6.0\"': '\"@types/jasmine\": \"~4.3.0\"',\r\n '\"@types/karma\": \"5.0.0\"': '\"@types/karma\": \"6.3.4\"',\r\n '\"@types/node\": \"12.11.1\"': '\"@types/node\": \"17.0.21\"',\r\n '\"@typescript-eslint/eslint-plugin\": \"4.16.1\"': '\"@typescript-eslint/eslint-plugin\": \"6.4.1\"',\r\n '\"@typescript-eslint/parser\": \"4.16.1\"': '\"@typescript-eslint/parser\": \"6.4.1\"',\r\n '\"eslint\": \"7.6.0\"': '\"eslint\": \"8.47.0\"',\r\n '\"eslint-plugin-import\": \"2.21.0\"': '\"eslint-plugin-import\": \"2.28.1\"',\r\n '\"eslint-plugin-jsdoc\": \"36.1.1\"': '\"eslint-plugin-jsdoc\": \"^46.5.0\"',\r\n '\"eslint-plugin-jsonc\": \"2.8.0\"': '\"eslint-plugin-jsonc\": \"^2.9.0\"',\r\n '\"gulp\": \"4.0.0\"': '\"gulp\": \"4.0.2\"',\r\n '\"jasmine-core\": \"3.6.0\"': '\"jasmine-core\": \"~4.5.0\"',\r\n '\"\"jasmine-reporters\": \"2.4.0\"': '\"jasmine-reporters\": \"~2.5.2\"',\r\n '\"karma\": \"6.1.0\"': '\"karma\": \"~6.4.0\"',\r\n '\"karma-coverage\": \"2.0.3\"': '\"karma-coverage\": \"~2.2.0\"',\r\n '\"karma-jasmine\": \"4.0.0\"': '\"karma-jasmine\": \"5.1.0\"',\r\n '\"karma-jasmine-html-reporter\": \"1.5.0\"': '\"karma-jasmine-html-reporter\": \"2.1.0\"',\r\n '\"karma-typescript\": \"5.5.1\"': '\"karma-typescript\": \"5.5.4\"',\r\n '\"ng-mocks\": \"11.10.1\"': '\"ng-mocks\": \"~14.11.0\"',\r\n '\"ng-packagr\": \"11.2.4\"': '\"ng-packagr\": \"~15.2.2\"',\r\n '\"puppeteer\": \"10.0.0\"': '\"puppeteer\": \"~21.0.1\"',\r\n '\"selenium-webdriver\": \"3.6.0\"': '\"selenium-webdriver\": \"4.11.1\"',\r\n '\"ts-helpers\": \"1.1.1\"': '\"ts-helpers\": \"1.1.2\"',\r\n '\"ts-node\": \"8.3.0\"': '\"ts-node\": \"~10.9.1\"',\r\n '\"typescript\": \"4.1.5\"': '\"typescript\": \"4.8.2\"',\r\n '\"gulp-eslint\": \"6.0.0\"': '\"gulp-eslint-new\": \"1.8.3\"',\r\n '\"ajv\": \"6.12.6\"': '\"ajv\": \"6.12.6\"',\r\n '\"@playwright/test\": \"1.20.1\"': '\"@playwright/test\": \"1.31.0\"'\r\n}\r\n\r\n// wac-uta will be brought back until we fix the dependency issue.\r\nexport const removes = [\r\n \"@angular-devkit/build-ng-packagr\",\r\n \"@angular-devkit/build-optimizer\",\r\n \"@wac-uta/shell\",\r\n \"@wac-uta/ui-test-automation\",\r\n \"@wac-uta/file-explorer\",\r\n \"@msft-sme/ui-test-automation\",\r\n \"jquery\",\r\n \"tsickle\",\r\n \"@msft-sme/e2e\"\r\n]\r\n\r\nexport const adds = {\r\n '\"eslint-plugin-angular\": \"^4.1.0\"': '\"eslint-plugin-deprecation\": \"1.5.0\"',\r\n '\"eslint-plugin-prefer-arrow\": \"^1.2.3\"': '\"eslint-plugin-unused-imports\": \"^3.0.0\"'\r\n}\r\n"]}
@@ -5,14 +5,17 @@ exports.adds = exports.removes = exports.replacesPipeline = exports.replaces = v
5
5
  * The configuration file for the package-json-config.ts file upgrading to Angular 15.
6
6
  */
7
7
  exports.replaces = {
8
- '"@msft-sme/core": "2.633.0"': '"@msft-sme/core": "4.12.0"',
9
- '"@msft-sme/angular": "2.633.0"': '"@msft-sme/angular": "4.12.0"',
10
- '"@msft-sme/styles": "2.633.0"': '"@msft-sme/styles": "4.12.0"',
11
- '"@microsoft/windows-admin-center-sdk/tools": "2.633.0"': '"@microsoft/windows-admin-center-sdk/tools": "4.12.0"',
12
- '"@msft-sme/file-explorer": "2.174.0"': '"@msft-sme/file-explorer": "4.2.0"',
13
- '"@msft-sme/remote-desktop": "2.35.0"': '"@msft-sme/remote-desktop": "4.2.0"',
14
- '"@msft-sme/event-viewer": "2.88.0"': '"@msft-sme/event-viewer": "4.1.0"',
15
- '"@msft-sme/azure-center": "2.47.0"': '"@msft-sme/azure-center": "4.1.0"'
8
+ '"@msft-sme/core": "2.633.0"': '"@msft-sme/core": "4.99.0"',
9
+ '"@msft-sme/angular": "2.633.0"': '"@msft-sme/angular": "4.99.0"',
10
+ '"@msft-sme/styles": "2.633.0"': '"@msft-sme/styles": "4.99.0"',
11
+ '"@microsoft/windows-admin-center-sdk/tools": "2.633.0"': '"@microsoft/windows-admin-center-sdk/tools": "4.99.0"',
12
+ '"@msft-sme/file-explorer": "2.174.0"': '"@msft-sme/file-explorer": "4.10.0"',
13
+ '"@msft-sme/remote-desktop": "2.35.0"': '"@msft-sme/remote-desktop": "4.9.0"',
14
+ '"@msft-sme/event-viewer": "2.88.0"': '"@msft-sme/event-viewer": "4.8.0"',
15
+ '"@msft-sme/azure-center": "2.47.0"': '"@msft-sme/azure-center": "4.9.0"',
16
+ '"@msft-sme/storage": "2.44.0"': '"@msft-sme/storage": "4.8.0"',
17
+ '"@msft-sme/local-users-groups": "2.45.0"': '"@msft-sme/local-users-groups": "4.7.0"',
18
+ '"@msft-sme/powershell-console": "2.33.0"': '"@msft-sme/powershell-console": "4.8.0"'
16
19
  };
17
20
  exports.replacesPipeline = {
18
21
  '"@angular/animations": "11.2.14"': '"@angular/animations": "15.2.9"',
@@ -62,7 +65,8 @@ exports.replacesPipeline = {
62
65
  '"ts-node": "8.3.0"': '"ts-node": "~10.9.1"',
63
66
  '"typescript": "4.1.5"': '"typescript": "4.8.2"',
64
67
  '"gulp-eslint": "6.0.0"': '"gulp-eslint-new": "1.8.3"',
65
- '"ajv": "6.12.6"': '"ajv": "6.12.6"'
68
+ '"ajv": "6.12.6"': '"ajv": "6.12.6"',
69
+ '"@playwright/test": "1.20.1"': '"@playwright/test": "1.31.0"'
66
70
  };
67
71
  // wac-uta will be brought back until we fix the dependency issue.
68
72
  exports.removes = [
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../packages/tools/wac-cli/src/angular15/configs/package-json-config.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACU,QAAA,QAAQ,GAAG;IACpB,6BAA6B,EAAE,4BAA4B;IAC3D,gCAAgC,EAAE,+BAA+B;IACjE,+BAA+B,EAAE,8BAA8B;IAC/D,8BAA8B,EAAE,6BAA6B;IAC7D,sCAAsC,EAAE,oCAAoC;IAC5E,sCAAsC,EAAE,qCAAqC;IAC7E,oCAAoC,EAAE,mCAAmC;IACzE,oCAAoC,EAAE,mCAAmC;CAC5E,CAAA;AAEY,QAAA,gBAAgB,GAAG;IAC5B,kCAAkC,EAAE,iCAAiC;IACrE,8BAA8B,EAAE,6BAA6B;IAC7D,gCAAgC,EAAE,+BAA+B;IACjE,4BAA4B,EAAE,2BAA2B;IACzD,6BAA6B,EAAE,4BAA4B;IAC3D,wCAAwC,EAAE,uCAAuC;IACjF,wCAAwC,EAAE,uCAAuC;IACjF,gDAAgD,EAAE,+CAA+C;IACjG,8BAA8B,EAAE,6BAA6B;IAC7D,oBAAoB,EAAE,qBAAqB;IAC3C,mBAAmB,EAAE,mBAAmB;IACxC,iBAAiB,EAAE,kBAAkB;IACrC,qBA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QAAA,IAAI,GAAG;IAChB,mCAAmC,EAAE,sCAAsC;IAC3E,wCAAwC,EAAE,0CAA0C;CACvF,CAAA","file":"package-json-config.js","sourcesContent":["/**\r\n * The configuration file for the package-json-config.ts file upgrading to Angular 15.\r\n */\r\nexport const replaces = {\r\n '\"@msft-sme/core\": \"2.633.0\"': '\"@msft-sme/core\": \"4.12.0\"',\r\n '\"@msft-sme/angular\": \"2.633.0\"': '\"@msft-sme/angular\": \"4.12.0\"',\r\n '\"@msft-sme/styles\": \"2.633.0\"': '\"@msft-sme/styles\": \"4.12.0\"',\r\n '\"@microsoft/windows-admin-center-sdk/tools\": \"2.633.0\"': '\"@microsoft/windows-admin-center-sdk/tools\": \"4.12.0\"',\r\n '\"@msft-sme/file-explorer\": \"2.174.0\"': '\"@msft-sme/file-explorer\": \"4.2.0\"',\r\n '\"@msft-sme/remote-desktop\": \"2.35.0\"': '\"@msft-sme/remote-desktop\": \"4.2.0\"',\r\n '\"@msft-sme/event-viewer\": \"2.88.0\"': '\"@msft-sme/event-viewer\": \"4.1.0\"',\r\n '\"@msft-sme/azure-center\": \"2.47.0\"': '\"@msft-sme/azure-center\": \"4.1.0\"'\r\n}\r\n\r\nexport const replacesPipeline = {\r\n '\"@angular/animations\": \"11.2.14\"': '\"@angular/animations\": \"15.2.9\"',\r\n '\"@angular/common\": \"11.2.14\"': '\"@angular/common\": \"15.2.9\"',\r\n '\"@angular/compiler\": \"11.2.14\"': '\"@angular/compiler\": \"15.2.9\"',\r\n '\"@angular/core\": \"11.2.14\"': '\"@angular/core\": \"15.2.9\"',\r\n '\"@angular/forms\": \"11.2.14\"': '\"@angular/forms\": \"15.2.9\"',\r\n '\"@angular/language-service\": \"11.2.14\"': '\"@angular/language-service\": \"15.2.9\"',\r\n '\"@angular/platform-browser\": \"11.2.14\"': '\"@angular/platform-browser\": \"15.2.9\"',\r\n '\"@angular/platform-browser-dynamic\": \"11.2.14\"': '\"@angular/platform-browser-dynamic\": \"15.2.9\"',\r\n '\"@angular/router\": \"11.2.14\"': '\"@angular/router\": \"15.2.9\"',\r\n '\"core-js\": \"2.6.2\"': '\"core-js\": \"3.30.1\"',\r\n '\"tslib\": \"^2.0.0\"': '\"tslib\": \"^2.3.0\"',\r\n '\"rxjs\": \"6.6.0\"': '\"rxjs\": \"~7.5.0\"',\r\n '\"zone.js\": \"0.11.3\"': '\"zone.js\": \"0.13.1\"',\r\n '\"@angular-builders/custom-webpack\": \"11.1.1\"': '\"@angular-builders/custom-webpack\": \"15.0.0\"',\r\n '\"@angular-devkit/build-angular\": \"0.1102.13\"': '\"@angular-devkit/build-angular\": \"15.2.9\"',\r\n '\"@angular-eslint/builder\": \"4.3.1\"': '\"@angular-eslint/builder\": \"15.2.1\"',\r\n '\"@angular-eslint/eslint-plugin\": \"4.3.1\"': '\"@angular-eslint/eslint-plugin\": \"15.2.1\"',\r\n '\"@angular-eslint/eslint-plugin-template\": \"4.3.1\"': '\"@angular-eslint/eslint-plugin-template\": \"15.2.1\"',\r\n '\"@angular-eslint/schematics\": \"4.3.1\"': '\"@angular-eslint/schematics\": \"15.2.1\"',\r\n '\"@angular-eslint/template-parser\": \"4.3.1\"': '\"@angular-eslint/template-parser\": \"15.2.1\"',\r\n '\"@angular/cli\": \"11.2.13\"': '\"@angular/cli\": \"15.2.9\"',\r\n '\"@angular/compiler-cli\": \"11.2.14\"': '\"@angular/compiler-cli\": \"15.2.9\"',\r\n '\"@types/jasmine\": \"3.6.0\"': '\"@types/jasmine\": \"~4.3.0\"',\r\n '\"@types/karma\": \"5.0.0\"': '\"@types/karma\": \"6.3.4\"',\r\n '\"@types/node\": \"12.11.1\"': '\"@types/node\": \"17.0.21\"',\r\n '\"@typescript-eslint/eslint-plugin\": \"4.16.1\"': '\"@typescript-eslint/eslint-plugin\": \"6.4.1\"',\r\n '\"@typescript-eslint/parser\": \"4.16.1\"': '\"@typescript-eslint/parser\": \"6.4.1\"',\r\n '\"eslint\": \"7.6.0\"': '\"eslint\": \"8.47.0\"',\r\n '\"eslint-plugin-import\": \"2.21.0\"': '\"eslint-plugin-import\": \"2.28.1\"',\r\n '\"eslint-plugin-jsdoc\": \"36.1.1\"': '\"eslint-plugin-jsdoc\": \"^46.5.0\"',\r\n '\"eslint-plugin-jsonc\": \"2.8.0\"': '\"eslint-plugin-jsonc\": \"^2.9.0\"',\r\n '\"gulp\": \"4.0.0\"': '\"gulp\": \"4.0.2\"',\r\n '\"jasmine-core\": \"3.6.0\"': '\"jasmine-core\": \"~4.5.0\"',\r\n '\"\"jasmine-reporters\": \"2.4.0\"': '\"jasmine-reporters\": \"~2.5.2\"',\r\n '\"karma\": \"6.1.0\"': '\"karma\": \"~6.4.0\"',\r\n '\"karma-coverage\": \"2.0.3\"': '\"karma-coverage\": \"~2.2.0\"',\r\n '\"karma-jasmine\": \"4.0.0\"': '\"karma-jasmine\": \"5.1.0\"',\r\n '\"karma-jasmine-html-reporter\": \"1.5.0\"': '\"karma-jasmine-html-reporter\": \"2.1.0\"',\r\n '\"karma-typescript\": \"5.5.1\"': '\"karma-typescript\": \"5.5.4\"',\r\n '\"ng-mocks\": \"11.10.1\"': '\"ng-mocks\": \"~14.11.0\"',\r\n '\"ng-packagr\": \"11.2.4\"': '\"ng-packagr\": \"~15.2.2\"',\r\n '\"puppeteer\": \"10.0.0\"': '\"puppeteer\": \"~21.0.1\"',\r\n '\"selenium-webdriver\": \"3.6.0\"': '\"selenium-webdriver\": \"4.11.1\"',\r\n '\"ts-helpers\": \"1.1.1\"': '\"ts-helpers\": \"1.1.2\"',\r\n '\"ts-node\": \"8.3.0\"': '\"ts-node\": \"~10.9.1\"',\r\n '\"typescript\": \"4.1.5\"': '\"typescript\": \"4.8.2\"',\r\n '\"gulp-eslint\": \"6.0.0\"': '\"gulp-eslint-new\": \"1.8.3\"',\r\n '\"ajv\": \"6.12.6\"': '\"ajv\": \"6.12.6\"'\r\n}\r\n\r\n// wac-uta will be brought back until we fix the dependency issue.\r\nexport const removes = [\r\n \"@angular-devkit/build-ng-packagr\",\r\n \"@angular-devkit/build-optimizer\",\r\n \"@wac-uta/shell\",\r\n \"@wac-uta/ui-test-automation\",\r\n \"@wac-uta/file-explorer\",\r\n \"@msft-sme/ui-test-automation\",\r\n \"jquery\",\r\n \"tsickle\",\r\n \"@msft-sme/e2e\"\r\n]\r\n\r\nexport const adds = {\r\n '\"eslint-plugin-angular\": \"^4.1.0\"': '\"eslint-plugin-deprecation\": \"1.5.0\"',\r\n '\"eslint-plugin-prefer-arrow\": \"^1.2.3\"': '\"eslint-plugin-unused-imports\": \"^3.0.0\"'\r\n}\r\n"]}
1
+ {"version":3,"sources":["../../../packages/tools/wac-cli/src/angular15/configs/package-json-config.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACU,QAAA,QAAQ,GAAG;IACpB,6BAA6B,EAAE,4BAA4B;IAC3D,gCAAgC,EAAE,+BAA+B;IACjE,+BAA+B,EAAE,8BAA8B;IAC/D,8BAA8B,EAAE,6BAA6B;IAC7D,sCAAsC,EAAE,qCAAqC;IAC7E,sCAAsC,EAAE,qCAAqC;IAC7E,oCAAoC,EAAE,mCAAmC;IACzE,oCAAoC,EAAE,mCAAmC;IACzE,+BAA+B,EAAE,8BAA8B;IAC/D,0CAA0C,EAAE,yCAAyC;IACrF,0CAA0C,EAAE,yCAAyC;CACxF,CAAA;AAEY,QAAA,gBAAgB,GAAG;IAC5B,kCAAkC,EAAE,iCAAiC;IACrE,8BAA8B,EAAE,6BAA6B;IAC7D,gCAAgC,EAAE,+BAA+B;IACjE,4BAA4B,EAAE,2BAA2B;IACzD,6BAA6B,EAAE,4BAA4B;IAC3D,wCAAwC,EAAE,uCAAuC;IACjF,wCAAwC,EAAE,uCAAuC;IACjF,gDAAgD,EAAE,+CAA+C;IACjG,8BAA8B,EAAE,6BAA6B;IAC7D,oBAAoB,EAAE,qBAAqB;IAC3C,mBAAmB,EAAE,mBAAmB;IACxC,iBAAiB,EAAE,kBAAkB;IACrC,qBAAqB,EAAE,qBAAqB;IAC5C,8CAA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AA,IAAI,GAAG;IAChB,mCAAmC,EAAE,sCAAsC;IAC3E,wCAAwC,EAAE,0CAA0C;CACvF,CAAA","file":"package-json-config.js","sourcesContent":["/**\r\n * The configuration file for the package-json-config.ts file upgrading to Angular 15.\r\n */\r\nexport const replaces = {\r\n '\"@msft-sme/core\": \"2.633.0\"': '\"@msft-sme/core\": \"4.99.0\"',\r\n '\"@msft-sme/angular\": \"2.633.0\"': '\"@msft-sme/angular\": \"4.99.0\"',\r\n '\"@msft-sme/styles\": \"2.633.0\"': '\"@msft-sme/styles\": \"4.99.0\"',\r\n '\"@microsoft/windows-admin-center-sdk/tools\": \"2.633.0\"': '\"@microsoft/windows-admin-center-sdk/tools\": \"4.99.0\"',\r\n '\"@msft-sme/file-explorer\": \"2.174.0\"': '\"@msft-sme/file-explorer\": \"4.10.0\"',\r\n '\"@msft-sme/remote-desktop\": \"2.35.0\"': '\"@msft-sme/remote-desktop\": \"4.9.0\"',\r\n '\"@msft-sme/event-viewer\": \"2.88.0\"': '\"@msft-sme/event-viewer\": \"4.8.0\"',\r\n '\"@msft-sme/azure-center\": \"2.47.0\"': '\"@msft-sme/azure-center\": \"4.9.0\"',\r\n '\"@msft-sme/storage\": \"2.44.0\"': '\"@msft-sme/storage\": \"4.8.0\"',\r\n '\"@msft-sme/local-users-groups\": \"2.45.0\"': '\"@msft-sme/local-users-groups\": \"4.7.0\"',\r\n '\"@msft-sme/powershell-console\": \"2.33.0\"': '\"@msft-sme/powershell-console\": \"4.8.0\"'\r\n}\r\n\r\nexport const replacesPipeline = {\r\n '\"@angular/animations\": \"11.2.14\"': '\"@angular/animations\": \"15.2.9\"',\r\n '\"@angular/common\": \"11.2.14\"': '\"@angular/common\": \"15.2.9\"',\r\n '\"@angular/compiler\": \"11.2.14\"': '\"@angular/compiler\": \"15.2.9\"',\r\n '\"@angular/core\": \"11.2.14\"': '\"@angular/core\": \"15.2.9\"',\r\n '\"@angular/forms\": \"11.2.14\"': '\"@angular/forms\": \"15.2.9\"',\r\n '\"@angular/language-service\": \"11.2.14\"': '\"@angular/language-service\": \"15.2.9\"',\r\n '\"@angular/platform-browser\": \"11.2.14\"': '\"@angular/platform-browser\": \"15.2.9\"',\r\n '\"@angular/platform-browser-dynamic\": \"11.2.14\"': '\"@angular/platform-browser-dynamic\": \"15.2.9\"',\r\n '\"@angular/router\": \"11.2.14\"': '\"@angular/router\": \"15.2.9\"',\r\n '\"core-js\": \"2.6.2\"': '\"core-js\": \"3.30.1\"',\r\n '\"tslib\": \"^2.0.0\"': '\"tslib\": \"^2.3.0\"',\r\n '\"rxjs\": \"6.6.0\"': '\"rxjs\": \"~7.5.0\"',\r\n '\"zone.js\": \"0.11.3\"': '\"zone.js\": \"0.13.1\"',\r\n '\"@angular-builders/custom-webpack\": \"11.1.1\"': '\"@angular-builders/custom-webpack\": \"15.0.0\"',\r\n '\"@angular-devkit/build-angular\": \"0.1102.13\"': '\"@angular-devkit/build-angular\": \"15.2.9\"',\r\n '\"@angular-eslint/builder\": \"4.3.1\"': '\"@angular-eslint/builder\": \"15.2.1\"',\r\n '\"@angular-eslint/eslint-plugin\": \"4.3.1\"': '\"@angular-eslint/eslint-plugin\": \"15.2.1\"',\r\n '\"@angular-eslint/eslint-plugin-template\": \"4.3.1\"': '\"@angular-eslint/eslint-plugin-template\": \"15.2.1\"',\r\n '\"@angular-eslint/schematics\": \"4.3.1\"': '\"@angular-eslint/schematics\": \"15.2.1\"',\r\n '\"@angular-eslint/template-parser\": \"4.3.1\"': '\"@angular-eslint/template-parser\": \"15.2.1\"',\r\n '\"@angular/cli\": \"11.2.13\"': '\"@angular/cli\": \"15.2.9\"',\r\n '\"@angular/compiler-cli\": \"11.2.14\"': '\"@angular/compiler-cli\": \"15.2.9\"',\r\n '\"@types/jasmine\": \"3.6.0\"': '\"@types/jasmine\": \"~4.3.0\"',\r\n '\"@types/karma\": \"5.0.0\"': '\"@types/karma\": \"6.3.4\"',\r\n '\"@types/node\": \"12.11.1\"': '\"@types/node\": \"17.0.21\"',\r\n '\"@typescript-eslint/eslint-plugin\": \"4.16.1\"': '\"@typescript-eslint/eslint-plugin\": \"6.4.1\"',\r\n '\"@typescript-eslint/parser\": \"4.16.1\"': '\"@typescript-eslint/parser\": \"6.4.1\"',\r\n '\"eslint\": \"7.6.0\"': '\"eslint\": \"8.47.0\"',\r\n '\"eslint-plugin-import\": \"2.21.0\"': '\"eslint-plugin-import\": \"2.28.1\"',\r\n '\"eslint-plugin-jsdoc\": \"36.1.1\"': '\"eslint-plugin-jsdoc\": \"^46.5.0\"',\r\n '\"eslint-plugin-jsonc\": \"2.8.0\"': '\"eslint-plugin-jsonc\": \"^2.9.0\"',\r\n '\"gulp\": \"4.0.0\"': '\"gulp\": \"4.0.2\"',\r\n '\"jasmine-core\": \"3.6.0\"': '\"jasmine-core\": \"~4.5.0\"',\r\n '\"\"jasmine-reporters\": \"2.4.0\"': '\"jasmine-reporters\": \"~2.5.2\"',\r\n '\"karma\": \"6.1.0\"': '\"karma\": \"~6.4.0\"',\r\n '\"karma-coverage\": \"2.0.3\"': '\"karma-coverage\": \"~2.2.0\"',\r\n '\"karma-jasmine\": \"4.0.0\"': '\"karma-jasmine\": \"5.1.0\"',\r\n '\"karma-jasmine-html-reporter\": \"1.5.0\"': '\"karma-jasmine-html-reporter\": \"2.1.0\"',\r\n '\"karma-typescript\": \"5.5.1\"': '\"karma-typescript\": \"5.5.4\"',\r\n '\"ng-mocks\": \"11.10.1\"': '\"ng-mocks\": \"~14.11.0\"',\r\n '\"ng-packagr\": \"11.2.4\"': '\"ng-packagr\": \"~15.2.2\"',\r\n '\"puppeteer\": \"10.0.0\"': '\"puppeteer\": \"~21.0.1\"',\r\n '\"selenium-webdriver\": \"3.6.0\"': '\"selenium-webdriver\": \"4.11.1\"',\r\n '\"ts-helpers\": \"1.1.1\"': '\"ts-helpers\": \"1.1.2\"',\r\n '\"ts-node\": \"8.3.0\"': '\"ts-node\": \"~10.9.1\"',\r\n '\"typescript\": \"4.1.5\"': '\"typescript\": \"4.8.2\"',\r\n '\"gulp-eslint\": \"6.0.0\"': '\"gulp-eslint-new\": \"1.8.3\"',\r\n '\"ajv\": \"6.12.6\"': '\"ajv\": \"6.12.6\"',\r\n '\"@playwright/test\": \"1.20.1\"': '\"@playwright/test\": \"1.31.0\"'\r\n}\r\n\r\n// wac-uta will be brought back until we fix the dependency issue.\r\nexport const removes = [\r\n \"@angular-devkit/build-ng-packagr\",\r\n \"@angular-devkit/build-optimizer\",\r\n \"@wac-uta/shell\",\r\n \"@wac-uta/ui-test-automation\",\r\n \"@wac-uta/file-explorer\",\r\n \"@msft-sme/ui-test-automation\",\r\n \"jquery\",\r\n \"tsickle\",\r\n \"@msft-sme/e2e\"\r\n]\r\n\r\nexport const adds = {\r\n '\"eslint-plugin-angular\": \"^4.1.0\"': '\"eslint-plugin-deprecation\": \"1.5.0\"',\r\n '\"eslint-plugin-prefer-arrow\": \"^1.2.3\"': '\"eslint-plugin-unused-imports\": \"^3.0.0\"'\r\n}\r\n"]}
@@ -0,0 +1,14 @@
1
+ export declare const replaces: {
2
+ '"@msft-sme/ui-test-automation": "3.5.0"': string;
3
+ '"@playwright/test": "1.20.1"': string;
4
+ '"@types/jasmine": "~3.6.0"': string;
5
+ '"@types/node": "^12.11.1"': string;
6
+ '"@types/jasmine": "3.6.0"': string;
7
+ '"@types/node": "12.11.1"': string;
8
+ };
9
+ export declare const adds: {
10
+ toBeAdded: string;
11
+ toBeAddedAfter: string;
12
+ keyword: string;
13
+ indent: number;
14
+ }[];
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/tools/wac-cli/src/angular15/configs/ui-test-automation-lagacy-config.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;;;;CAOpB,CAAA;AAED,eAAO,MAAM,IAAI;;;;;GAOhB,CAAC","file":"ui-test-automation-lagacy-config.d.ts","sourcesContent":["export const replaces = {\r\n '\"@msft-sme/ui-test-automation\": \"3.5.0\"': '\"@msft-sme/ui-test-automation\": \"4.80.0\"',\r\n '\"@playwright/test\": \"1.20.1\"': '\"@playwright/test\": \"1.31.0\"',\r\n '\"@types/jasmine\": \"~3.6.0\"': '\"@types/jasmine\": \"4.3.5\"',\r\n '\"@types/node\": \"^12.11.1\"': '\"@types/node\": \"20.5.9\"',\r\n '\"@types/jasmine\": \"3.6.0\"': '\"@types/jasmine\": \"4.3.5\"',\r\n '\"@types/node\": \"12.11.1\"': '\"@types/node\": \"20.5.9\"'\r\n}\r\n\r\nexport const adds = [\r\n {\r\n toBeAdded: '\"playwright-core\": \"1.31.0\"',\r\n toBeAddedAfter: '\"@playwright/test\": \"1.31.0\"',\r\n keyword: '\"playwright-core\"',\r\n indent: 4\r\n }\r\n];"]}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.adds = exports.replaces = void 0;
4
+ exports.replaces = {
5
+ '"@msft-sme/ui-test-automation": "3.5.0"': '"@msft-sme/ui-test-automation": "4.80.0"',
6
+ '"@playwright/test": "1.20.1"': '"@playwright/test": "1.31.0"',
7
+ '"@types/jasmine": "~3.6.0"': '"@types/jasmine": "4.3.5"',
8
+ '"@types/node": "^12.11.1"': '"@types/node": "20.5.9"',
9
+ '"@types/jasmine": "3.6.0"': '"@types/jasmine": "4.3.5"',
10
+ '"@types/node": "12.11.1"': '"@types/node": "20.5.9"'
11
+ };
12
+ exports.adds = [
13
+ {
14
+ toBeAdded: '"playwright-core": "1.31.0"',
15
+ toBeAddedAfter: '"@playwright/test": "1.31.0"',
16
+ keyword: '"playwright-core"',
17
+ indent: 4
18
+ }
19
+ ];
20
+
21
+ //# sourceMappingURL=ui-test-automation-lagacy-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/tools/wac-cli/src/angular15/configs/ui-test-automation-lagacy-config.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG;IACpB,yCAAyC,EAAE,0CAA0C;IACrF,8BAA8B,EAAE,8BAA8B;IAC9D,4BAA4B,EAAE,2BAA2B;IACzD,2BAA2B,EAAE,yBAAyB;IACtD,2BAA2B,EAAE,2BAA2B;IACxD,0BAA0B,EAAE,yBAAyB;CACxD,CAAA;AAEY,QAAA,IAAI,GAAG;IAChB;QACI,SAAS,EAAE,6BAA6B;QACxC,cAAc,EAAE,8BAA8B;QAC9C,OAAO,EAAE,mBAAmB;QAC5B,MAAM,EAAE,CAAC;KACZ;CACJ,CAAC","file":"ui-test-automation-lagacy-config.js","sourcesContent":["export const replaces = {\r\n '\"@msft-sme/ui-test-automation\": \"3.5.0\"': '\"@msft-sme/ui-test-automation\": \"4.80.0\"',\r\n '\"@playwright/test\": \"1.20.1\"': '\"@playwright/test\": \"1.31.0\"',\r\n '\"@types/jasmine\": \"~3.6.0\"': '\"@types/jasmine\": \"4.3.5\"',\r\n '\"@types/node\": \"^12.11.1\"': '\"@types/node\": \"20.5.9\"',\r\n '\"@types/jasmine\": \"3.6.0\"': '\"@types/jasmine\": \"4.3.5\"',\r\n '\"@types/node\": \"12.11.1\"': '\"@types/node\": \"20.5.9\"'\r\n}\r\n\r\nexport const adds = [\r\n {\r\n toBeAdded: '\"playwright-core\": \"1.31.0\"',\r\n toBeAddedAfter: '\"@playwright/test\": \"1.31.0\"',\r\n keyword: '\"playwright-core\"',\r\n indent: 4\r\n }\r\n];"]}
@@ -15,6 +15,7 @@ export declare enum Angular15UpgraderMessages {
15
15
  UpdateBasicPaths = "Updating basic paths for the upgrade...",
16
16
  Initialization = "Initializing upgraders...",
17
17
  FinalizeInfoLintFix = "There are eslint violations that needs fix... After fixing the violations, please run the following commands:\n\n npx eslint . --fix \n\n gulp lintApp \n\n gulp build \n\n ",
18
+ CannotRunStageThreeExternal = "The ui-test-automation_legacy is for internal extension upgrade only.",
18
19
  Completed = "Upgrade completed!"
19
20
  }
20
21
  /**
@@ -22,13 +23,29 @@ export declare enum Angular15UpgraderMessages {
22
23
  * It is responsible for upgrading the Tslint to Eslint.
23
24
  */
24
25
  export declare class Angular15Upgrader {
26
+ /**
27
+ * The debug mode.
28
+ */
25
29
  protected debug: boolean;
30
+ /**
31
+ * It determines whether to run angualr 15 upgrade for the internal extension or external sdk.
32
+ */
33
+ protected internal: boolean;
26
34
  /**
27
35
  * If running in the pipeline, the pipeline needs to automatically update for the @msft-sme pacakges instead of WAC CLI.
28
36
  */
29
37
  protected pipeline: boolean;
38
+ /**
39
+ * The main debugger.
40
+ */
30
41
  protected mainDebugger: MainDebugger;
42
+ /**
43
+ * The main debugger version.
44
+ */
31
45
  private readonly version;
46
+ /**
47
+ * The paths of the configuration files.
48
+ */
32
49
  private tsconfigBaseFilePath;
33
50
  private tsconfigFilePath;
34
51
  private angularJsonFilePath;
@@ -48,7 +65,12 @@ export declare class Angular15Upgrader {
48
65
  private gulpCompileTsTemplatePath;
49
66
  private gulpIndexTsFilePath;
50
67
  private gulpIndexTsTemplatePath;
68
+ private uiTestAutomationLegacyFilePath;
69
+ private uiTestAutomationLegacyFolderPath;
51
70
  private logFilePath;
71
+ /**
72
+ * The upgrader for each configuration file.
73
+ */
52
74
  private packageJsonUpgrader;
53
75
  private versionJsonUpgrader;
54
76
  private tSConfigUpgrader;
@@ -64,6 +86,10 @@ export declare class Angular15Upgrader {
64
86
  private gulpIndexTsUpgrader;
65
87
  private logParser;
66
88
  private jasmineTestUpgrader;
89
+ private uITestAutomationLegacyUpgrader;
90
+ /**
91
+ * The file names for each configuration file.
92
+ */
67
93
  private readonly tsconfigBaseFileName;
68
94
  private readonly tsconfigFileName;
69
95
  private readonly packageJsonFileName;
@@ -88,9 +114,10 @@ export declare class Angular15Upgrader {
88
114
  * node ./node_modules/@microsoft/windows-admin-center-sdk/tools/wac-cli/src/index.js angular15Upgrade --pipeline false --stage 2
89
115
  * @param pipeline It determines whether to run this command on the pipeline.
90
116
  * @param debug It determines whether to run the debug mode.
91
- * @param stage '0' - the default Angular 15 stage, '1' - the Angular core stage, '2' - the Angular 15 unit test stage.
117
+ * @param internal It determines whether to run angualr 15 upgrade for the internal extension or external sdk.
118
+ * @param stage '0' - the default Angular 15 stage, '1' - the Angular core stage, '2' - the Angular 15 unit test stage, '3' - the legacy ui-test-automation stage.
92
119
  */
93
- upgrade(pipeline?: boolean, stage?: number, debug?: boolean): Promise<void>;
120
+ upgrade(pipeline?: boolean, stage?: number, internal?: boolean, debug?: boolean): Promise<void>;
94
121
  protected criticalConfigurationFilesUpdates(): Promise<void>;
95
122
  protected initialization(): void;
96
123
  protected updateBasicPaths(): void;
@@ -98,12 +125,15 @@ export declare class Angular15Upgrader {
98
125
  protected gulpQuick(): Promise<void>;
99
126
  protected gulpBuildProd(): Promise<void>;
100
127
  protected gulpBuildProdPostAudit(): Promise<void>;
101
- protected installUTALegacy(): Promise<void>;
128
+ protected installUTALegacyDevDependency(): Promise<void>;
102
129
  protected installDependenciesPreparation(): Promise<void>;
130
+ private checkEslintRCFile;
131
+ private installMicrosftSignalR;
103
132
  private removePackageLockJsonFile;
104
133
  private removeNodeModuleFolder;
105
134
  private removeE2EFolder;
106
135
  private installDependencies;
136
+ private installDependenciesForUITestAutomation;
107
137
  private fixEslintErrors;
108
138
  /**
109
139
  * electron-to-chromium 1.4.533 - 1.4.535 are bad versions that is also the latest, meaning any dependency uses ^1.4.xxx are also blocked,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../packages/tools/wac-cli/src/angular15/main.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAMrD;;GAEG;AACH,oBAAY,WAAW;IACnB,cAAc,mBAAmB;IACjC,iBAAiB,sBAAsB;IACvC,WAAW,gBAAgB;CAC9B;AAED;;GAEG;AACH,oBAAY,yBAAyB;IACjC,eAAe,2CAA2C;IAC1D,gBAAgB,4CAA4C;IAC5D,cAAc,8BAA8B;IAC5C,mBAAmB,yMAIlB;IACD,SAAS,uBAAuB;CACnC;AAED;;;GAGG;AACH,qBAAa,iBAAiB;IAC1B,SAAS,CAAC,KAAK,UAAS;IACxB;;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CAAC;cAIvC,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;cASjC,8BAA8B,IAAI,OAAO,CAAC,IAAI,CAAC;YAMjD,yBAAyB;YAOzB,sBAAsB;YAOtB,eAAe;YAOf,mBAAmB;YAOnB,eAAe;IAa7B;;;;;OAKG;YACW,4BAA4B;CAK7C","file":"main.d.ts","sourcesContent":["import { Common } from '../common';\r\nimport { PackageJsonUpgrader } from './upgrader/package-json-upgrader';\r\nimport { TSConfigUpgrader } from './upgrader/tsconfig-upgrader';\r\nimport { Logger } from './utils/logger';\r\nimport { GitIgnoreUpgrader } from './upgrader/git-ignore-upgrader';\r\nimport { AngularJsonUpgrader } from './upgrader/angular-json-upgrader';\r\nimport { FileReplacementUpgrader } from './upgrader/file-replacement-upgrader';\r\nimport { CIBuildYmlUpgrader } from './upgrader/ci-build-yml-upgrader';\r\nimport { ReplaceUpgrader } from './upgrader/replace-upgrader';\r\nimport { srcTsConfigLibProdReplaces, srcTsConfigSpecRemoves } from './configs/config';\r\nimport { RemoveUpgrader } from './upgrader/remove-upgrader';\r\nimport { MainDebugger } from './utils/main-debugger';\r\nimport { runCommand } from './utils/command-runner';\r\nimport { LogParser } from './upgrader/audit/log-parser';\r\nimport { VersionJsonUpgrader } from './upgrader/version-json-upgrader';\r\nimport { JasmineTestUpgrader } from './upgrader/jasmine-test-upgrader';\r\n\r\n/**\r\n * Represents the type of upgrade that needs to be performed.\r\n */\r\nexport enum UpgradeType {\r\n WithBaseConfig = 'WithBaseConfig',\r\n WithoutBaseConfig = 'WithoutBaseConfig',\r\n NoOperation = 'NoOperation'\r\n}\r\n\r\n/**\r\n * Represents the messages that are displayed during the upgrade process.\r\n */\r\nexport enum Angular15UpgraderMessages {\r\n StartingUpgrade = 'Starting Angular 15 upgrade process...',\r\n UpdateBasicPaths = 'Updating basic paths for the upgrade...',\r\n Initialization = 'Initializing upgraders...',\r\n FinalizeInfoLintFix = `There are eslint violations that needs fix... After fixing the violations, please run the following commands:\\n\r\n npx eslint . --fix \\n\r\n gulp lintApp \\n\r\n gulp build \\n\r\n `,\r\n Completed = 'Upgrade completed!'\r\n}\r\n\r\n/**\r\n * This is the main class of the EslintUpgrader tool.\r\n * It is responsible for upgrading the Tslint to Eslint.\r\n */\r\nexport class Angular15Upgrader {\r\n protected debug = false;\r\n /**\r\n * If running in the pipeline, the pipeline needs to automatically update for the @msft-sme pacakges instead of WAC CLI.\r\n */\r\n protected pipeline = false;\r\n protected mainDebugger: MainDebugger;\r\n private readonly version = '1.0.0';\r\n\r\n private tsconfigBaseFilePath: string;\r\n private tsconfigFilePath: string;\r\n private angularJsonFilePath: string;\r\n private gitIgnoreFilePath: string;\r\n private packageJsonFilePath: string;\r\n private versionJsonFilePath: string;\r\n private packageLockJsonFilePath: string;\r\n private nodeModulesFolderPath: string;\r\n private e2eFolderPath: string;\r\n private testTsFilePath: string;\r\n private testTsFileTemplatePath: string;\r\n private cIBuildYmlFilePath: string;\r\n private pullRequestYmlFilePath: string;\r\n private srcTsConfigSpecFilePath: string;\r\n private srcTsConfigLibProdFilePath: string;\r\n private gulpCompileTsFilePath: string;\r\n private gulpCompileTsTemplatePath: string;\r\n private gulpIndexTsFilePath: string;\r\n private gulpIndexTsTemplatePath: string;\r\n private logFilePath: string;\r\n\r\n private packageJsonUpgrader: PackageJsonUpgrader;\r\n private versionJsonUpgrader: VersionJsonUpgrader;\r\n private tSConfigUpgrader: TSConfigUpgrader;\r\n private tSConfigBaseUpgrader: TSConfigUpgrader;\r\n private gitIgnoreUpgrader: GitIgnoreUpgrader;\r\n private angularJsonUpgrader: AngularJsonUpgrader;\r\n private testTsUpgrader: FileReplacementUpgrader;\r\n private cIBuildUpgrader: CIBuildYmlUpgrader;\r\n private pullRequestUpgrader: CIBuildYmlUpgrader;\r\n private srcTsConfigLibProdUpgrader: ReplaceUpgrader;\r\n private srcTsConfigSpecUpgrader: RemoveUpgrader;\r\n private gulpCompileTsUpgrader: FileReplacementUpgrader;\r\n private gulpIndexTsUpgrader: FileReplacementUpgrader;\r\n private logParser: LogParser;\r\n private jasmineTestUpgrader: JasmineTestUpgrader;\r\n\r\n private readonly tsconfigBaseFileName = 'tsconfig.base.json';\r\n private readonly tsconfigFileName = 'tsconfig.json';\r\n private readonly packageJsonFileName = 'package.json';\r\n private readonly versionJsonFileName = 'version.json';\r\n private readonly packageLockJsonFileName = 'package-lock.json';\r\n private readonly angularFileName = 'angular.json';\r\n private readonly e2eFolderName = 'e2e';\r\n private readonly nodeModulesFolderName = 'node_modules';\r\n private readonly gitIgnoreFileName = '.gitignore';\r\n private readonly testTsFileName = 'test.ts';\r\n private readonly cIBuildYmlFileName = 'ci-build.yml';\r\n private readonly pullRequestYmlFileName = 'pull-request.yml';\r\n private readonly srcTsConfigLibProdFileName = 'tsconfig.lib.prod.json';\r\n private readonly srcTsConfigSpecFileName = 'tsconfig.spec.json';\r\n private readonly gulpCompileTsFileName = 'compile.ts';\r\n private readonly gulpIndexTsFileName = 'index.ts';\r\n private readonly logFileName = 'log.txt';\r\n\r\n constructor() {\r\n Logger.log(Angular15UpgraderMessages.StartingUpgrade);\r\n Common.rootPath = process.cwd();\r\n Logger.log(Common.rootPath);\r\n }\r\n\r\n /**\r\n * The upgrader main function.\r\n * If only runs the unit test\r\n * node ./node_modules/@microsoft/windows-admin-center-sdk/tools/wac-cli/src/index.js angular15Upgrade --pipeline false --stage 2\r\n * @param pipeline It determines whether to run this command on the pipeline.\r\n * @param debug It determines whether to run the debug mode.\r\n * @param stage '0' - the default Angular 15 stage, '1' - the Angular core stage, '2' - the Angular 15 unit test stage.\r\n */\r\n public async upgrade(pipeline = false, stage = 0, debug = false) {\r\n this.debug = !!debug;\r\n this.pipeline = !!pipeline;\r\n Logger.log(this.version);\r\n Logger.log(Angular15UpgraderMessages.StartingUpgrade);\r\n Logger.log('Passed in parameters: ' + pipeline + ' ' + stage + ' ' + debug + '');\r\n\r\n this.mainDebugger = this.debug ? new MainDebugger(): undefined;\r\n\r\n Logger.log(Angular15UpgraderMessages.UpdateBasicPaths);\r\n this.updateBasicPaths();\r\n\r\n Logger.log(Angular15UpgraderMessages.Initialization);\r\n this.initialization();\r\n\r\n switch (stage) {\r\n case 0:\r\n Logger.log('0');\r\n await this.criticalConfigurationFilesUpdates();\r\n // await this.installUTALegacy();\r\n await this.installDependenciesPreparation();\r\n await this.installLKGElectronToChromium();\r\n await this.installDependencies();\r\n // Fix any eslint errors that doesn't match the latest eslint rules.\r\n await this.fixEslintErrors(this.pipeline);\r\n await this.gulpQuick();\r\n await this.gulpBuildPostAudit();\r\n // Fix any eslint errors that is triggered by audit.\r\n await this.fixEslintErrors(this.pipeline);\r\n await this.gulpBuildProd();\r\n await this.gulpBuildProdPostAudit();\r\n // Fix any eslint errors clean-ups.\r\n await this.fixEslintErrors(this.pipeline);\r\n await this.jasmineTestUpgrader.run();\r\n break;\r\n case 1:\r\n Logger.log('1');\r\n await this.criticalConfigurationFilesUpdates();\r\n // await this.installUTALegacy();\r\n await this.installDependenciesPreparation();\r\n await this.installLKGElectronToChromium();\r\n await this.installDependencies();\r\n // Fix any eslint errors that doesn't match the latest eslint rules.\r\n await this.fixEslintErrors(this.pipeline);\r\n await this.gulpQuick();\r\n await this.gulpBuildPostAudit();\r\n // Fix any eslint errors that is triggered by audit.\r\n await this.fixEslintErrors(this.pipeline);\r\n await this.gulpBuildProd();\r\n await this.gulpBuildProdPostAudit();\r\n // Fix any eslint errors clean-ups.\r\n await this.fixEslintErrors(this.pipeline);\r\n break;\r\n case 2:\r\n Logger.log('2');\r\n await this.gulpIndexTsUpgrader.run();\r\n await this.testTsUpgrader.run();\r\n await this.jasmineTestUpgrader.run();\r\n break;\r\n default:\r\n Logger.log('default');\r\n break;\r\n }\r\n }\r\n\r\n protected async criticalConfigurationFilesUpdates(): Promise<void> {\r\n Promise.all([\r\n this.packageJsonUpgrader.run(this.pipeline),\r\n this.versionJsonUpgrader.run(),\r\n this.tSConfigBaseUpgrader.runBase(),\r\n this.tSConfigUpgrader.run(),\r\n this.gitIgnoreUpgrader.run(),\r\n this.angularJsonUpgrader.run(),\r\n this.testTsUpgrader.run(),\r\n this.cIBuildUpgrader.run(),\r\n this.pullRequestUpgrader.run(),\r\n this.srcTsConfigLibProdUpgrader.run(),\r\n this.srcTsConfigSpecUpgrader.run(),\r\n this.gulpCompileTsUpgrader.run(),\r\n this.gulpIndexTsUpgrader.run()\r\n ]).then((results) => {\r\n console.log('All Promises have completed:', results);\r\n\r\n if (this.debug) {\r\n this.mainDebugger.verifyTestData(this).then(() => {\r\n Logger.log(Angular15UpgraderMessages.Completed);\r\n });\r\n }\r\n })\r\n .catch((error) => {\r\n Logger.error('At least one Promise encountered an error:' + error);\r\n });\r\n }\r\n\r\n protected initialization() {\r\n this.packageJsonUpgrader = new PackageJsonUpgrader(this.packageJsonFilePath);\r\n this.versionJsonUpgrader = new VersionJsonUpgrader(this.versionJsonFilePath);\r\n this.tSConfigBaseUpgrader = new TSConfigUpgrader(this.tsconfigBaseFilePath, this.tsconfigBaseFileName);\r\n this.tSConfigUpgrader = new TSConfigUpgrader(this.tsconfigFilePath, this.tsconfigFileName);\r\n this.gitIgnoreUpgrader = new GitIgnoreUpgrader(this.gitIgnoreFilePath);\r\n this.angularJsonUpgrader = new AngularJsonUpgrader(this.angularJsonFilePath);\r\n this.testTsUpgrader = new FileReplacementUpgrader(this.testTsFileTemplatePath, this.testTsFilePath);\r\n this.cIBuildUpgrader = new CIBuildYmlUpgrader(this.cIBuildYmlFilePath, this.cIBuildYmlFileName);\r\n this.pullRequestUpgrader = new CIBuildYmlUpgrader(this.pullRequestYmlFilePath, this.pullRequestYmlFileName);\r\n this.srcTsConfigLibProdUpgrader = new ReplaceUpgrader(this.srcTsConfigLibProdFilePath, srcTsConfigLibProdReplaces, this.srcTsConfigLibProdFileName);\r\n this.srcTsConfigSpecUpgrader = new RemoveUpgrader(this.srcTsConfigSpecFilePath, srcTsConfigSpecRemoves, this.srcTsConfigSpecFileName);\r\n this.gulpCompileTsUpgrader = new FileReplacementUpgrader(this.gulpCompileTsTemplatePath, this.gulpCompileTsFilePath);\r\n this.gulpIndexTsUpgrader = new FileReplacementUpgrader(this.gulpIndexTsTemplatePath, this.gulpIndexTsFilePath);\r\n this.jasmineTestUpgrader = new JasmineTestUpgrader(this.testTsFilePath, this.debug);\r\n\r\n this.logParser = new LogParser(this.logFilePath, this.logFileName);\r\n }\r\n\r\n protected updateBasicPaths(): void {\r\n this.tsconfigBaseFilePath = Common.rootPath + '\\\\' + this.tsconfigBaseFileName;\r\n this.tsconfigFilePath = Common.rootPath + '\\\\' + this.tsconfigFileName;\r\n this.angularJsonFilePath = Common.rootPath + '\\\\' + this.angularFileName;\r\n this.packageJsonFilePath = Common.rootPath + '\\\\' + this.packageJsonFileName;\r\n this.versionJsonFilePath = Common.rootPath + '\\\\' + this.versionJsonFileName;\r\n this.packageLockJsonFilePath = Common.rootPath + '\\\\' + this.packageLockJsonFileName;\r\n this.nodeModulesFolderPath = Common.rootPath + '\\\\' + this.nodeModulesFolderName;\r\n this.e2eFolderPath = Common.rootPath + '\\\\' + this.e2eFolderName;\r\n this.gitIgnoreFilePath = Common.rootPath + '\\\\' + this.gitIgnoreFileName;\r\n\r\n this.srcTsConfigLibProdFilePath = Common.rootPath + '\\\\src\\\\' + this.srcTsConfigLibProdFileName;\r\n this.srcTsConfigSpecFilePath = Common.rootPath + '\\\\src\\\\' + this.srcTsConfigSpecFileName;\r\n\r\n this.cIBuildYmlFilePath = Common.rootPath + '\\\\build\\\\pipelines\\\\' + this.cIBuildYmlFileName;\r\n this.pullRequestYmlFilePath = Common.rootPath + '\\\\build\\\\pipelines\\\\' + this.pullRequestYmlFileName;\r\n\r\n this.testTsFilePath = Common.rootPath + '\\\\src\\\\' + this.testTsFileName;\r\n this.testTsFileTemplatePath = Common.cliRootPath.replace('wac-cli', 'module-template\\\\angular15\\\\test.ts');\r\n\r\n this.gulpCompileTsFilePath = Common.rootPath + '\\\\gulpfile.ts\\\\common\\\\' + this.gulpCompileTsFileName;\r\n this.gulpCompileTsTemplatePath = Common.cliRootPath.replace('wac-cli', 'module-template\\\\angular15\\\\gulpfile.ts\\\\common\\\\compile.ts');\r\n\r\n this.gulpIndexTsFilePath = Common.rootPath + '\\\\gulpfile.ts\\\\' + this.gulpIndexTsFileName;\r\n this.gulpIndexTsTemplatePath = Common.cliRootPath.replace('wac-cli', 'module-template\\\\angular15\\\\gulpfile.ts\\\\index.ts');\r\n\r\n this.logFilePath = Common.rootPath + '\\\\' + this.logFileName;\r\n\r\n if (this.debug) {\r\n this.mainDebugger.updateTestData(this);\r\n }\r\n }\r\n\r\n protected async gulpBuildPostAudit(): Promise<void> {\r\n return this.logParser.run();\r\n }\r\n\r\n protected gulpQuick(): Promise<void> {\r\n const gulpQuick = 'gulp quick';\r\n Logger.log(gulpQuick);\r\n return runCommand(gulpQuick, this.debug, true, Angular15UpgraderMessages.Completed, this.logFileName).then((response) => {\r\n console.log(response);\r\n });\r\n }\r\n\r\n protected gulpBuildProd(): Promise<void> {\r\n const gulpBuild = 'gulp build --prod';\r\n Logger.log(gulpBuild);\r\n return runCommand(gulpBuild, this.debug, true, Angular15UpgraderMessages.Completed, this.logFileName).then((response) => {\r\n console.log(response);\r\n });\r\n }\r\n\r\n protected async gulpBuildProdPostAudit(): Promise<void> {\r\n return this.logParser.run();\r\n }\r\n\r\n protected async installUTALegacy(): Promise<void> {\r\n const setprefixCmd = 'npm config set save-prefix=';\r\n Logger.log(setprefixCmd);\r\n await runCommand(setprefixCmd, this.debug);\r\n const cmd = 'npm install @msft-sme/ui-test-automation@latest --save-dev --force';\r\n Logger.log(cmd);\r\n await runCommand(cmd, this.debug);\r\n }\r\n\r\n protected async installDependenciesPreparation(): Promise<void> {\r\n await this.removeNodeModuleFolder();\r\n await this.removePackageLockJsonFile();\r\n await this.removeE2EFolder();\r\n }\r\n\r\n private async removePackageLockJsonFile(): Promise<void> {\r\n const cmd = `del ${this.packageLockJsonFilePath}`;\r\n\r\n Logger.log(cmd);\r\n await runCommand(cmd, this.debug);\r\n }\r\n\r\n private async removeNodeModuleFolder(): Promise<void> {\r\n const cmd = `rmdir /s /q ${this.nodeModulesFolderPath}`;\r\n\r\n Logger.log(cmd);\r\n await runCommand(cmd, this.debug);\r\n }\r\n\r\n private async removeE2EFolder(): Promise<void> {\r\n const cmd = `rmdir /s /q ${this.e2eFolderPath}`;\r\n\r\n Logger.log(cmd);\r\n await runCommand(cmd, this.debug);\r\n }\r\n\r\n private async installDependencies(): Promise<void> {\r\n const cmd = 'npm install --force';\r\n\r\n Logger.log(cmd);\r\n await runCommand(cmd, this.debug);\r\n }\r\n\r\n private async fixEslintErrors(ignore = false): Promise<void> {\r\n if (ignore) {\r\n return;\r\n }\r\n \r\n const rootFileLinterFix = 'npx eslint . --fix';\r\n Logger.log(rootFileLinterFix);\r\n await runCommand(rootFileLinterFix, this.debug, true, Angular15UpgraderMessages.FinalizeInfoLintFix);\r\n const projectLinterFix = 'npx ng lint --fix';\r\n Logger.log(projectLinterFix);\r\n await runCommand(projectLinterFix, this.debug, true, Angular15UpgraderMessages.FinalizeInfoLintFix);\r\n }\r\n\r\n /**\r\n * electron-to-chromium 1.4.533 - 1.4.535 are bad versions that is also the latest, meaning any dependency uses ^1.4.xxx are also blocked,\r\n * below are the dependency list:\r\n * /@angular-devkit/build-angular@15.2.8 -> browserslist@4.21.5 that has dependency on ^1.4.284(which always grab 1.4.535)\r\n * always force 1.4.532\r\n */\r\n private async installLKGElectronToChromium(): Promise<void> {\r\n const cmd = 'npm install electron-to-chromium@1.4.532 --force';\r\n Logger.log(cmd);\r\n await runCommand(cmd, this.debug);\r\n }\r\n}\r\n"]}
1
+ {"version":3,"sources":["../../../packages/tools/wac-cli/src/angular15/main.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AASrD;;GAEG;AACH,oBAAY,WAAW;IACnB,cAAc,mBAAmB;IACjC,iBAAiB,sBAAsB;IACvC,WAAW,gBAAgB;CAC9B;AAED;;G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mB,CAAc;IAClD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAa;;IAQzC;;;;;;;;OAQG;IACU,OAAO,CAAC,QAAQ,UAAQ,EAAE,KAAK,SAAI,EAAE,QAAQ,UAAQ,EAAE,KAAK,UAAQ;cA0EjE,iCAAiC,IAAI,OAAO,CAAC,IAAI,CAAC;IA6BlE,SAAS,CAAC,cAAc;IAoBxB,SAAS,CAAC,gBAAgB,IAAI,IAAI;cAoClB,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC;IAInD,SAAS,CAAC,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAQpC,SAAS,CAAC,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;cAQxB,sBAAsB,IAAI,OAAO,CAAC,IAAI,CAAC;cAIvC,6BAA6B,IAAI,OAAO,CAAC,IAAI,CAAC;cAS9C,8BAA8B,IAAI,OAAO,CAAC,IAAI,CAAC;YAQjD,iBAAiB;YAKjB,sBAAsB;YAOtB,yBAAyB;YAOzB,sBAAsB;YAOtB,eAAe;YAOf,mBAAmB;YAWnB,sCAAsC;YAKtC,eAAe;IAa7B;;;;;OAKG;YACW,4BAA4B;CAK7C","file":"main.d.ts","sourcesContent":["import { Common } from '../common';\r\nimport { PackageJsonUpgrader } from './upgrader/package-json-upgrader';\r\nimport { TSConfigUpgrader } from './upgrader/tsconfig-upgrader';\r\nimport { Logger } from './utils/logger';\r\nimport { GitIgnoreUpgrader } from './upgrader/git-ignore-upgrader';\r\nimport { AngularJsonUpgrader } from './upgrader/angular-json-upgrader';\r\nimport { FileReplacementUpgrader } from './upgrader/file-replacement-upgrader';\r\nimport { CIBuildYmlUpgrader } from './upgrader/ci-build-yml-upgrader';\r\nimport { ReplaceUpgrader } from './upgrader/replace-upgrader';\r\nimport { srcTsConfigLibProdReplaces, srcTsConfigSpecRemoves } from './configs/config';\r\nimport { RemoveUpgrader } from './upgrader/remove-upgrader';\r\nimport { MainDebugger } from './utils/main-debugger';\r\nimport { runCommand } from './utils/command-runner';\r\nimport { LogParser } from './upgrader/audit/log-parser';\r\nimport { VersionJsonUpgrader } from './upgrader/version-json-upgrader';\r\nimport { JasmineTestUpgrader } from './upgrader/jasmine-test-upgrader';\r\nimport { updateShellReferences } from './utils/update-shell-references';\r\nimport { EslintUpgrader } from '../eslint/main';\r\nimport { UITestAutomationLegacyUpgrader } from './upgrader/ui-test-automation-legacy-upgrader';\r\n\r\n/**\r\n * Represents the type of upgrade that needs to be performed.\r\n */\r\nexport enum UpgradeType {\r\n WithBaseConfig = 'WithBaseConfig',\r\n WithoutBaseConfig = 'WithoutBaseConfig',\r\n NoOperation = 'NoOperation'\r\n}\r\n\r\n/**\r\n * Represents the messages that are displayed during the upgrade process.\r\n */\r\nexport enum Angular15UpgraderMessages {\r\n StartingUpgrade = 'Starting Angular 15 upgrade process...',\r\n UpdateBasicPaths = 'Updating basic paths for the upgrade...',\r\n Initialization = 'Initializing upgraders...',\r\n FinalizeInfoLintFix = `There are eslint violations that needs fix... After fixing the violations, please run the following commands:\\n\r\n npx eslint . --fix \\n\r\n gulp lintApp \\n\r\n gulp build \\n\r\n `,\r\n CannotRunStageThreeExternal = 'The ui-test-automation_legacy is for internal extension upgrade only.',\r\n Completed = 'Upgrade completed!'\r\n}\r\n\r\n/**\r\n * This is the main class of the EslintUpgrader tool.\r\n * It is responsible for upgrading the Tslint to Eslint.\r\n */\r\nexport class Angular15Upgrader {\r\n /**\r\n * The debug mode.\r\n */\r\n protected debug = false;\r\n\r\n /**\r\n * It determines whether to run angualr 15 upgrade for the internal extension or external sdk.\r\n */\r\n protected internal = false;\r\n\r\n /**\r\n * If running in the pipeline, the pipeline needs to automatically update for the @msft-sme pacakges instead of WAC CLI.\r\n */\r\n protected pipeline = false;\r\n\r\n /**\r\n * The main debugger.\r\n */\r\n protected mainDebugger: MainDebugger;\r\n\r\n /**\r\n * The main debugger version.\r\n */\r\n private readonly version = '1.0.1';\r\n\r\n /**\r\n * The paths of the configuration files.\r\n */\r\n private tsconfigBaseFilePath: string;\r\n private tsconfigFilePath: string;\r\n private angularJsonFilePath: string;\r\n private gitIgnoreFilePath: string;\r\n private packageJsonFilePath: string;\r\n private versionJsonFilePath: string;\r\n private packageLockJsonFilePath: string;\r\n private nodeModulesFolderPath: string;\r\n private e2eFolderPath: string;\r\n private testTsFilePath: string;\r\n private testTsFileTemplatePath: string;\r\n private cIBuildYmlFilePath: string;\r\n private pullRequestYmlFilePath: string;\r\n private srcTsConfigSpecFilePath: string;\r\n private srcTsConfigLibProdFilePath: string;\r\n private gulpCompileTsFilePath: string;\r\n private gulpCompileTsTemplatePath: string;\r\n private gulpIndexTsFilePath: string;\r\n private gulpIndexTsTemplatePath: string;\r\n private uiTestAutomationLegacyFilePath: string;\r\n private uiTestAutomationLegacyFolderPath: string;\r\n private logFilePath: string;\r\n\r\n /**\r\n * The upgrader for each configuration file.\r\n */\r\n private packageJsonUpgrader: PackageJsonUpgrader;\r\n private versionJsonUpgrader: VersionJsonUpgrader;\r\n private tSConfigUpgrader: TSConfigUpgrader;\r\n private tSConfigBaseUpgrader: TSConfigUpgrader;\r\n private gitIgnoreUpgrader: GitIgnoreUpgrader;\r\n private angularJsonUpgrader: AngularJsonUpgrader;\r\n private testTsUpgrader: FileReplacementUpgrader;\r\n private cIBuildUpgrader: CIBuildYmlUpgrader;\r\n private pullRequestUpgrader: CIBuildYmlUpgrader;\r\n private srcTsConfigLibProdUpgrader: ReplaceUpgrader;\r\n private srcTsConfigSpecUpgrader: RemoveUpgrader;\r\n private gulpCompileTsUpgrader: FileReplacementUpgrader;\r\n private gulpIndexTsUpgrader: FileReplacementUpgrader;\r\n private logParser: LogParser;\r\n private jasmineTestUpgrader: JasmineTestUpgrader;\r\n private uITestAutomationLegacyUpgrader: UITestAutomationLegacyUpgrader;\r\n\r\n /**\r\n * The file names for each configuration file.\r\n */\r\n private readonly tsconfigBaseFileName = 'tsconfig.base.json';\r\n private readonly tsconfigFileName = 'tsconfig.json';\r\n private readonly packageJsonFileName = 'package.json';\r\n private readonly versionJsonFileName = 'version.json';\r\n private readonly packageLockJsonFileName = 'package-lock.json';\r\n private readonly angularFileName = 'angular.json';\r\n private readonly e2eFolderName = 'e2e';\r\n private readonly nodeModulesFolderName = 'node_modules';\r\n private readonly gitIgnoreFileName = '.gitignore';\r\n private readonly testTsFileName = 'test.ts';\r\n private readonly cIBuildYmlFileName = 'ci-build.yml';\r\n private readonly pullRequestYmlFileName = 'pull-request.yml';\r\n private readonly srcTsConfigLibProdFileName = 'tsconfig.lib.prod.json';\r\n private readonly srcTsConfigSpecFileName = 'tsconfig.spec.json';\r\n private readonly gulpCompileTsFileName = 'compile.ts';\r\n private readonly gulpIndexTsFileName = 'index.ts';\r\n private readonly logFileName = 'log.txt';\r\n\r\n constructor() {\r\n Logger.log(Angular15UpgraderMessages.StartingUpgrade);\r\n Common.rootPath = process.cwd();\r\n Logger.log(Common.rootPath);\r\n }\r\n\r\n /**\r\n * The upgrader main function.\r\n * If only runs the unit test\r\n * node ./node_modules/@microsoft/windows-admin-center-sdk/tools/wac-cli/src/index.js angular15Upgrade --pipeline false --stage 2\r\n * @param pipeline It determines whether to run this command on the pipeline.\r\n * @param debug It determines whether to run the debug mode.\r\n * @param internal It determines whether to run angualr 15 upgrade for the internal extension or external sdk.\r\n * @param stage '0' - the default Angular 15 stage, '1' - the Angular core stage, '2' - the Angular 15 unit test stage, '3' - the legacy ui-test-automation stage.\r\n */\r\n public async upgrade(pipeline = false, stage = 0, internal = false, debug = false) {\r\n this.debug = !!debug;\r\n this.pipeline = !!pipeline;\r\n this.internal = !!internal;\r\n Logger.log(this.version);\r\n Logger.log(Angular15UpgraderMessages.StartingUpgrade);\r\n Logger.log('Passed in parameters: ' + this.pipeline + ' ' + stage + ' ' + this.internal + ' ' + this.debug );\r\n\r\n this.mainDebugger = this.debug ? new MainDebugger(): undefined;\r\n\r\n Logger.log(Angular15UpgraderMessages.UpdateBasicPaths);\r\n this.updateBasicPaths();\r\n\r\n Logger.log(Angular15UpgraderMessages.Initialization);\r\n this.initialization();\r\n\r\n switch (stage) {\r\n case 0:\r\n Logger.log('0');\r\n await this.criticalConfigurationFilesUpdates();\r\n await this.installDependenciesPreparation();\r\n await this.installLKGElectronToChromium();\r\n await this.installDependencies();\r\n // Fix any eslint errors that doesn't match the latest eslint rules.\r\n await this.fixEslintErrors(this.pipeline);\r\n await this.gulpQuick();\r\n await this.gulpBuildPostAudit();\r\n // Fix any eslint errors that is triggered by audit.\r\n await this.fixEslintErrors(this.pipeline);\r\n await this.gulpBuildProd();\r\n await this.gulpBuildProdPostAudit();\r\n // Fix any eslint errors clean-ups.\r\n await this.fixEslintErrors(this.pipeline);\r\n await this.jasmineTestUpgrader.run();\r\n break;\r\n case 1:\r\n Logger.log('1');\r\n await this.criticalConfigurationFilesUpdates();\r\n await this.installDependenciesPreparation();\r\n await this.installLKGElectronToChromium();\r\n await this.installDependencies();\r\n // Fix any eslint errors that doesn't match the latest eslint rules.\r\n await this.fixEslintErrors(this.pipeline);\r\n await this.gulpQuick();\r\n await this.gulpBuildPostAudit();\r\n // Fix any eslint errors that is triggered by audit.\r\n await this.fixEslintErrors(this.pipeline);\r\n await this.gulpBuildProd();\r\n await this.gulpBuildProdPostAudit();\r\n // Fix any eslint errors clean-ups.\r\n await this.fixEslintErrors(this.pipeline);\r\n break;\r\n case 2:\r\n Logger.log('2');\r\n await this.gulpIndexTsUpgrader.run();\r\n await this.testTsUpgrader.run();\r\n await this.jasmineTestUpgrader.run();\r\n break;\r\n case 3:\r\n Logger.log('3');\r\n if (!this.internal) {\r\n Logger.log(Angular15UpgraderMessages.CannotRunStageThreeExternal);\r\n } else {\r\n await this.packageJsonUpgrader.run(this.pipeline),\r\n await this.installUTALegacyDevDependency();\r\n await this.uITestAutomationLegacyUpgrader.run();\r\n await this.installDependenciesForUITestAutomation();\r\n }\r\n default:\r\n Logger.log('default');\r\n break;\r\n }\r\n }\r\n\r\n protected async criticalConfigurationFilesUpdates(): Promise<void> {\r\n Promise.all([\r\n this.packageJsonUpgrader.run(this.pipeline),\r\n this.versionJsonUpgrader.run(),\r\n this.tSConfigBaseUpgrader.runBase(),\r\n this.tSConfigUpgrader.run(),\r\n this.gitIgnoreUpgrader.run(),\r\n this.angularJsonUpgrader.run(),\r\n this.testTsUpgrader.run(),\r\n this.cIBuildUpgrader.run(),\r\n this.pullRequestUpgrader.run(),\r\n this.srcTsConfigLibProdUpgrader.run(),\r\n this.srcTsConfigSpecUpgrader.run(),\r\n this.gulpCompileTsUpgrader.run(),\r\n this.gulpIndexTsUpgrader.run()\r\n ]).then((results) => {\r\n console.log('All Promises have completed:', results);\r\n\r\n if (this.debug) {\r\n this.mainDebugger.verifyTestData(this).then(() => {\r\n Logger.log(Angular15UpgraderMessages.Completed);\r\n });\r\n }\r\n })\r\n .catch((error) => {\r\n Logger.error('At least one Promise encountered an error:' + error);\r\n });\r\n }\r\n\r\n protected initialization() {\r\n this.packageJsonUpgrader = new PackageJsonUpgrader(this.packageJsonFilePath);\r\n this.versionJsonUpgrader = new VersionJsonUpgrader(this.versionJsonFilePath);\r\n this.tSConfigBaseUpgrader = new TSConfigUpgrader(this.tsconfigBaseFilePath, this.tsconfigBaseFileName);\r\n this.tSConfigUpgrader = new TSConfigUpgrader(this.tsconfigFilePath, this.tsconfigFileName);\r\n this.gitIgnoreUpgrader = new GitIgnoreUpgrader(this.gitIgnoreFilePath);\r\n this.angularJsonUpgrader = new AngularJsonUpgrader(this.angularJsonFilePath);\r\n this.testTsUpgrader = new FileReplacementUpgrader(this.testTsFileTemplatePath, this.testTsFilePath);\r\n this.cIBuildUpgrader = new CIBuildYmlUpgrader(this.cIBuildYmlFilePath, this.cIBuildYmlFileName);\r\n this.pullRequestUpgrader = new CIBuildYmlUpgrader(this.pullRequestYmlFilePath, this.pullRequestYmlFileName);\r\n this.srcTsConfigLibProdUpgrader = new ReplaceUpgrader(this.srcTsConfigLibProdFilePath, srcTsConfigLibProdReplaces, this.srcTsConfigLibProdFileName);\r\n this.srcTsConfigSpecUpgrader = new RemoveUpgrader(this.srcTsConfigSpecFilePath, srcTsConfigSpecRemoves, this.srcTsConfigSpecFileName);\r\n this.gulpCompileTsUpgrader = new FileReplacementUpgrader(this.gulpCompileTsTemplatePath, this.gulpCompileTsFilePath);\r\n this.gulpIndexTsUpgrader = new FileReplacementUpgrader(this.gulpIndexTsTemplatePath, this.gulpIndexTsFilePath);\r\n this.jasmineTestUpgrader = new JasmineTestUpgrader(this.testTsFilePath, this.debug);\r\n this.uITestAutomationLegacyUpgrader = new UITestAutomationLegacyUpgrader(this.uiTestAutomationLegacyFilePath, this.packageJsonFileName);\r\n\r\n this.logParser = new LogParser(this.logFilePath, this.logFileName);\r\n }\r\n\r\n protected updateBasicPaths(): void {\r\n this.tsconfigBaseFilePath = Common.rootPath + '\\\\' + this.tsconfigBaseFileName;\r\n this.tsconfigFilePath = Common.rootPath + '\\\\' + this.tsconfigFileName;\r\n this.angularJsonFilePath = Common.rootPath + '\\\\' + this.angularFileName;\r\n this.packageJsonFilePath = Common.rootPath + '\\\\' + this.packageJsonFileName;\r\n this.versionJsonFilePath = Common.rootPath + '\\\\' + this.versionJsonFileName;\r\n this.packageLockJsonFilePath = Common.rootPath + '\\\\' + this.packageLockJsonFileName;\r\n this.nodeModulesFolderPath = Common.rootPath + '\\\\' + this.nodeModulesFolderName;\r\n this.e2eFolderPath = Common.rootPath + '\\\\' + this.e2eFolderName;\r\n this.gitIgnoreFilePath = Common.rootPath + '\\\\' + this.gitIgnoreFileName;\r\n\r\n this.srcTsConfigLibProdFilePath = Common.rootPath + '\\\\src\\\\' + this.srcTsConfigLibProdFileName;\r\n this.srcTsConfigSpecFilePath = Common.rootPath + '\\\\src\\\\' + this.srcTsConfigSpecFileName;\r\n\r\n this.cIBuildYmlFilePath = Common.rootPath + '\\\\build\\\\pipelines\\\\' + this.cIBuildYmlFileName;\r\n this.pullRequestYmlFilePath = Common.rootPath + '\\\\build\\\\pipelines\\\\' + this.pullRequestYmlFileName;\r\n\r\n this.testTsFilePath = Common.rootPath + '\\\\src\\\\' + this.testTsFileName;\r\n this.testTsFileTemplatePath = Common.cliRootPath.replace('wac-cli', 'module-template\\\\angular15\\\\test.ts');\r\n\r\n this.gulpCompileTsFilePath = Common.rootPath + '\\\\gulpfile.ts\\\\common\\\\' + this.gulpCompileTsFileName;\r\n this.gulpCompileTsTemplatePath = Common.cliRootPath.replace('wac-cli', 'module-template\\\\angular15\\\\gulpfile.ts\\\\common\\\\compile.ts');\r\n\r\n this.gulpIndexTsFilePath = Common.rootPath + '\\\\gulpfile.ts\\\\' + this.gulpIndexTsFileName;\r\n this.gulpIndexTsTemplatePath = Common.cliRootPath.replace('wac-cli', 'module-template\\\\angular15\\\\gulpfile.ts\\\\index.ts');\r\n\r\n this.uiTestAutomationLegacyFilePath = Common.rootPath + '\\\\ui-test-automation\\\\' + this.packageJsonFileName;\r\n this.uiTestAutomationLegacyFolderPath = Common.rootPath + '\\\\ui-test-automation\\\\';\r\n\r\n this.logFilePath = Common.rootPath + '\\\\' + this.logFileName;\r\n\r\n if (this.debug) {\r\n this.mainDebugger.updateTestData(this);\r\n }\r\n }\r\n\r\n protected async gulpBuildPostAudit(): Promise<void> {\r\n return this.logParser.run();\r\n }\r\n\r\n protected gulpQuick(): Promise<void> {\r\n const gulpQuick = 'gulp quick';\r\n Logger.log(gulpQuick);\r\n return runCommand(gulpQuick, this.debug, true, Angular15UpgraderMessages.Completed, this.logFileName).then((response) => {\r\n console.log(response);\r\n });\r\n }\r\n\r\n protected gulpBuildProd(): Promise<void> {\r\n const gulpBuild = 'gulp build --prod';\r\n Logger.log(gulpBuild);\r\n return runCommand(gulpBuild, this.debug, true, Angular15UpgraderMessages.Completed, this.logFileName).then((response) => {\r\n console.log(response);\r\n });\r\n }\r\n\r\n protected async gulpBuildProdPostAudit(): Promise<void> {\r\n return this.logParser.run();\r\n }\r\n\r\n protected async installUTALegacyDevDependency(): Promise<void> {\r\n const setprefixCmd = 'npm config set save-prefix=';\r\n Logger.log(setprefixCmd);\r\n await runCommand(setprefixCmd, this.debug);\r\n const cmd = 'npm install @msft-sme/ui-test-automation@latest --save-dev --force';\r\n Logger.log(cmd);\r\n await runCommand(cmd, this.debug);\r\n }\r\n\r\n protected async installDependenciesPreparation(): Promise<void> {\r\n await this.removeNodeModuleFolder();\r\n await this.removePackageLockJsonFile();\r\n await this.removeE2EFolder();\r\n await this.checkEslintRCFile();\r\n updateShellReferences('', this.internal);\r\n }\r\n\r\n private async checkEslintRCFile(): Promise<void> {\r\n const esLintUpgrader = new EslintUpgrader();\r\n await esLintUpgrader.replaceEslintConfig();\r\n }\r\n\r\n private async installMicrosftSignalR(): Promise<void> {\r\n const cmd = 'npm install @microsoft/signalr@6.0.8 --save';\r\n\r\n Logger.log(cmd);\r\n await runCommand(cmd, this.debug);\r\n }\r\n\r\n private async removePackageLockJsonFile(): Promise<void> {\r\n const cmd = `del ${this.packageLockJsonFilePath}`;\r\n\r\n Logger.log(cmd);\r\n await runCommand(cmd, this.debug);\r\n }\r\n\r\n private async removeNodeModuleFolder(): Promise<void> {\r\n const cmd = `rmdir /s /q ${this.nodeModulesFolderPath}`;\r\n\r\n Logger.log(cmd);\r\n await runCommand(cmd, this.debug);\r\n }\r\n\r\n private async removeE2EFolder(): Promise<void> {\r\n const cmd = `rmdir /s /q ${this.e2eFolderPath}`;\r\n\r\n Logger.log(cmd);\r\n await runCommand(cmd, this.debug);\r\n }\r\n\r\n private async installDependencies(): Promise<void> {\r\n // Needs to be installed on the SDK root dependency.\r\n if (!this.internal) {\r\n await this.installMicrosftSignalR();\r\n }\r\n const cmd = 'npm install --force';\r\n\r\n Logger.log(cmd);\r\n await runCommand(cmd, this.debug);\r\n }\r\n\r\n private async installDependenciesForUITestAutomation(): Promise<void> {\r\n const cmd = 'pushd ' + this.uiTestAutomationLegacyFolderPath + '&& del package-lock.json && npm install && popd';\r\n await runCommand(cmd, this.debug);\r\n }\r\n\r\n private async fixEslintErrors(ignore = false): Promise<void> {\r\n if (ignore) {\r\n return;\r\n }\r\n \r\n const rootFileLinterFix = 'npx eslint . --fix';\r\n Logger.log(rootFileLinterFix);\r\n await runCommand(rootFileLinterFix, this.debug, true, Angular15UpgraderMessages.FinalizeInfoLintFix);\r\n const projectLinterFix = 'npx ng lint --fix';\r\n Logger.log(projectLinterFix);\r\n await runCommand(projectLinterFix, this.debug, true, Angular15UpgraderMessages.FinalizeInfoLintFix);\r\n }\r\n\r\n /**\r\n * electron-to-chromium 1.4.533 - 1.4.535 are bad versions that is also the latest, meaning any dependency uses ^1.4.xxx are also blocked,\r\n * below are the dependency list:\r\n * /@angular-devkit/build-angular@15.2.8 -> browserslist@4.21.5 that has dependency on ^1.4.284(which always grab 1.4.535)\r\n * always force 1.4.532\r\n */\r\n private async installLKGElectronToChromium(): Promise<void> {\r\n const cmd = 'npm install electron-to-chromium@1.4.532 --force';\r\n Logger.log(cmd);\r\n await runCommand(cmd, this.debug);\r\n }\r\n}\r\n"]}