@skyux/packages 15.0.0-alpha.7 → 15.0.0-alpha.8
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.
- package/collection.json +4 -0
- package/migrations.json +9 -9
- package/package.json +60 -60
- package/src/schematics/ng-generate/migrate-karma-to-vitest/migrate-karma-to-vitest.schematic.d.ts +7 -0
- package/src/schematics/ng-generate/migrate-karma-to-vitest/migrate-karma-to-vitest.schematic.js +113 -0
- package/src/schematics/ng-generate/migrate-karma-to-vitest/migrate-karma-to-vitest.schematic.js.map +1 -0
- package/src/schematics/rules/convert-grid-to-data-grid/convert-grid-to-data-grid.js +1 -1
- package/src/schematics/rules/convert-page-summary-to-page-header/convert-page-summary-to-page-header.js +1 -1
- package/src/schematics/rules/convert-progress-indicator-wizard-to-tab-wizard/convert-progress-indicator-wizard-to-tab-wizard.js +1 -1
- package/src/version.js +1 -1
package/collection.json
CHANGED
|
@@ -36,6 +36,10 @@
|
|
|
36
36
|
"factory": "./src/schematics/ng-generate/convert-progress-indicator-wizard-to-tab-wizard/convert-progress-indicator-wizard-to-tab-wizard.schematic",
|
|
37
37
|
"schema": "./src/schematics/ng-generate/convert-progress-indicator-wizard-to-tab-wizard/schema.json"
|
|
38
38
|
},
|
|
39
|
+
"migrate-karma-to-vitest": {
|
|
40
|
+
"description": "Replace the @skyux-sdk/testing Jasmine matchers with the @skyux-sdk/vitest matchers.",
|
|
41
|
+
"factory": "./src/schematics/ng-generate/migrate-karma-to-vitest/migrate-karma-to-vitest.schematic"
|
|
42
|
+
},
|
|
39
43
|
"remove-compat-stylesheets": {
|
|
40
44
|
"description": "Remove SKY UX compatibility stylesheets.",
|
|
41
45
|
"factory": "./src/schematics/ng-generate/remove-compat-stylesheets/remove-compat-stylesheets.schematic",
|
package/migrations.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schematics": {
|
|
3
3
|
"noop": {
|
|
4
|
-
"version": "15.0.0-alpha.
|
|
4
|
+
"version": "15.0.0-alpha.8",
|
|
5
5
|
"factory": "./src/schematics/migrations/all/noop/noop.schematic",
|
|
6
6
|
"description": "Update all SKY UX component packages"
|
|
7
7
|
},
|
|
8
8
|
"i18n-resources-module": {
|
|
9
|
-
"version": "15.0.0-alpha.
|
|
9
|
+
"version": "15.0.0-alpha.8",
|
|
10
10
|
"factory": "./src/schematics/migrations/all/i18n-resources-module/i18n-resources-module.schematic",
|
|
11
11
|
"description": "Regenerate i18n resources modules for libraries."
|
|
12
12
|
},
|
|
13
13
|
"remove-old-compat-stylesheets": {
|
|
14
|
-
"version": "15.0.0-alpha.
|
|
14
|
+
"version": "15.0.0-alpha.8",
|
|
15
15
|
"factory": "./src/schematics/migrations/all/remove-old-compat-stylesheets/remove-old-compat-stylesheets.schematic",
|
|
16
16
|
"description": "Remove backward compatible stylesheets for older versions of SKY UX."
|
|
17
17
|
},
|
|
18
18
|
"workspace-check": {
|
|
19
|
-
"version": "15.0.0-alpha.
|
|
19
|
+
"version": "15.0.0-alpha.8",
|
|
20
20
|
"factory": "./src/schematics/migrations/all/workspace-check/workspace-check.schematic",
|
|
21
21
|
"description": "Log warnings if the workspace is not configured correctly."
|
|
22
22
|
},
|
|
23
23
|
"migrate-dragula-polyfill": {
|
|
24
|
-
"version": "15.0.0-alpha.
|
|
24
|
+
"version": "15.0.0-alpha.8",
|
|
25
25
|
"factory": "./src/schematics/migrations/all/migrate-dragula-polyfill/migrate-dragula-polyfill.schematic",
|
|
26
26
|
"description": "Remove the @skyux/packages/polyfills entry from project config, replacing it with a local copy when Dragula is still installed."
|
|
27
27
|
},
|
|
28
28
|
"remove-timepicker-retain-invalid-values": {
|
|
29
|
-
"version": "15.0.0-alpha.
|
|
29
|
+
"version": "15.0.0-alpha.8",
|
|
30
30
|
"factory": "./src/schematics/migrations/update-15/remove-timepicker-retain-invalid-values/remove-timepicker-retain-invalid-values.schematic",
|
|
31
31
|
"description": "Remove the skyTimepickerRetainInvalidValues input from timepicker inputs since retaining invalid values is now the default behavior."
|
|
32
32
|
},
|
|
33
33
|
"add-compat-stylesheets": {
|
|
34
|
-
"version": "15.0.0-alpha.
|
|
34
|
+
"version": "15.0.0-alpha.8",
|
|
35
35
|
"factory": "./src/schematics/migrations/update-15/add-compat-stylesheets/add-compat-stylesheet.schematic",
|
|
36
36
|
"description": "Add a backwards-compatible stylesheet with styles that have been removed from components in SKY UX 15."
|
|
37
37
|
},
|
|
38
38
|
"migrate-sdk-testing-imports": {
|
|
39
|
-
"version": "15.0.0-alpha.
|
|
39
|
+
"version": "15.0.0-alpha.8",
|
|
40
40
|
"factory": "./src/schematics/migrations/update-15/migrate-sdk-testing-imports/migrate-sdk-testing-imports.schematic",
|
|
41
41
|
"description": "Move SkyAppTestUtility, SkyAppTestUtilityDomEventOptions, and SkyBy imports from the deprecated @skyux-sdk/testing package to @skyux/core/testing."
|
|
42
42
|
},
|
|
43
43
|
"legacy-i18n-services": {
|
|
44
|
-
"version": "15.0.0-alpha.
|
|
44
|
+
"version": "15.0.0-alpha.8",
|
|
45
45
|
"factory": "./src/schematics/migrations/update-15/legacy-i18n-services/legacy-i18n-services.schematic",
|
|
46
46
|
"description": "Replace SkyAppResourcesService and SkyLibResourcesService with their legacy equivalents since the originals now emit whenever the locale changes."
|
|
47
47
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/packages",
|
|
3
|
-
"version": "15.0.0-alpha.
|
|
3
|
+
"version": "15.0.0-alpha.8",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"description": "Handles the `ng update` command for SKY UX component libraries.",
|
|
6
6
|
"keywords": [
|
|
@@ -32,71 +32,71 @@
|
|
|
32
32
|
"ng-update": {
|
|
33
33
|
"migrations": "./migrations.json",
|
|
34
34
|
"packageGroup": {
|
|
35
|
-
"@skyux/packages": "15.0.0-alpha.
|
|
35
|
+
"@skyux/packages": "15.0.0-alpha.8",
|
|
36
36
|
"@blackbaud/angular-tree-component": "^1.0.0",
|
|
37
|
-
"@skyux-sdk/eslint-schematics": "15.0.0-alpha.
|
|
38
|
-
"@skyux-sdk/stylelint-schematics": "15.0.0-alpha.
|
|
39
|
-
"@skyux-sdk/testing": "15.0.0-alpha.
|
|
40
|
-
"@skyux-sdk/testing-schematics": "15.0.0-alpha.
|
|
41
|
-
"@skyux-sdk/vitest": "15.0.0-alpha.
|
|
42
|
-
"@skyux/a11y": "15.0.0-alpha.
|
|
43
|
-
"@skyux/action-bars": "15.0.0-alpha.
|
|
44
|
-
"@skyux/ag-grid": "15.0.0-alpha.
|
|
45
|
-
"@skyux/angular-tree-component": "15.0.0-alpha.
|
|
46
|
-
"@skyux/animations": "15.0.0-alpha.
|
|
47
|
-
"@skyux/assets": "15.0.0-alpha.
|
|
48
|
-
"@skyux/autonumeric": "15.0.0-alpha.
|
|
49
|
-
"@skyux/avatar": "15.0.0-alpha.
|
|
50
|
-
"@skyux/charts": "15.0.0-alpha.
|
|
51
|
-
"@skyux/code-examples": "15.0.0-alpha.
|
|
52
|
-
"@skyux/colorpicker": "15.0.0-alpha.
|
|
53
|
-
"@skyux/config": "15.0.0-alpha.
|
|
54
|
-
"@skyux/core": "15.0.0-alpha.
|
|
55
|
-
"@skyux/data-grid": "15.0.0-alpha.
|
|
56
|
-
"@skyux/data-manager": "15.0.0-alpha.
|
|
57
|
-
"@skyux/datetime": "15.0.0-alpha.
|
|
58
|
-
"@skyux/docs-tools": "15.0.0-alpha.
|
|
59
|
-
"@skyux/errors": "15.0.0-alpha.
|
|
60
|
-
"@skyux/filter-bar": "15.0.0-alpha.
|
|
61
|
-
"@skyux/flyout": "15.0.0-alpha.
|
|
62
|
-
"@skyux/forms": "15.0.0-alpha.
|
|
63
|
-
"@skyux/grids": "15.0.0-alpha.
|
|
64
|
-
"@skyux/help-inline": "15.0.0-alpha.
|
|
65
|
-
"@skyux/i18n": "15.0.0-alpha.
|
|
66
|
-
"@skyux/icon": "15.0.0-alpha.
|
|
37
|
+
"@skyux-sdk/eslint-schematics": "15.0.0-alpha.8",
|
|
38
|
+
"@skyux-sdk/stylelint-schematics": "15.0.0-alpha.8",
|
|
39
|
+
"@skyux-sdk/testing": "15.0.0-alpha.8",
|
|
40
|
+
"@skyux-sdk/testing-schematics": "15.0.0-alpha.8",
|
|
41
|
+
"@skyux-sdk/vitest": "15.0.0-alpha.8",
|
|
42
|
+
"@skyux/a11y": "15.0.0-alpha.8",
|
|
43
|
+
"@skyux/action-bars": "15.0.0-alpha.8",
|
|
44
|
+
"@skyux/ag-grid": "15.0.0-alpha.8",
|
|
45
|
+
"@skyux/angular-tree-component": "15.0.0-alpha.8",
|
|
46
|
+
"@skyux/animations": "15.0.0-alpha.8",
|
|
47
|
+
"@skyux/assets": "15.0.0-alpha.8",
|
|
48
|
+
"@skyux/autonumeric": "15.0.0-alpha.8",
|
|
49
|
+
"@skyux/avatar": "15.0.0-alpha.8",
|
|
50
|
+
"@skyux/charts": "15.0.0-alpha.8",
|
|
51
|
+
"@skyux/code-examples": "15.0.0-alpha.8",
|
|
52
|
+
"@skyux/colorpicker": "15.0.0-alpha.8",
|
|
53
|
+
"@skyux/config": "15.0.0-alpha.8",
|
|
54
|
+
"@skyux/core": "15.0.0-alpha.8",
|
|
55
|
+
"@skyux/data-grid": "15.0.0-alpha.8",
|
|
56
|
+
"@skyux/data-manager": "15.0.0-alpha.8",
|
|
57
|
+
"@skyux/datetime": "15.0.0-alpha.8",
|
|
58
|
+
"@skyux/docs-tools": "15.0.0-alpha.8",
|
|
59
|
+
"@skyux/errors": "15.0.0-alpha.8",
|
|
60
|
+
"@skyux/filter-bar": "15.0.0-alpha.8",
|
|
61
|
+
"@skyux/flyout": "15.0.0-alpha.8",
|
|
62
|
+
"@skyux/forms": "15.0.0-alpha.8",
|
|
63
|
+
"@skyux/grids": "15.0.0-alpha.8",
|
|
64
|
+
"@skyux/help-inline": "15.0.0-alpha.8",
|
|
65
|
+
"@skyux/i18n": "15.0.0-alpha.8",
|
|
66
|
+
"@skyux/icon": "15.0.0-alpha.8",
|
|
67
67
|
"@skyux/icons": "^11.4.0",
|
|
68
|
-
"@skyux/indicators": "15.0.0-alpha.
|
|
69
|
-
"@skyux/inline-form": "15.0.0-alpha.
|
|
70
|
-
"@skyux/layout": "15.0.0-alpha.
|
|
71
|
-
"@skyux/list-builder": "15.0.0-alpha.
|
|
72
|
-
"@skyux/list-builder-common": "15.0.0-alpha.
|
|
73
|
-
"@skyux/list-builder-view-checklist": "15.0.0-alpha.
|
|
74
|
-
"@skyux/list-builder-view-grids": "15.0.0-alpha.
|
|
75
|
-
"@skyux/lists": "15.0.0-alpha.
|
|
76
|
-
"@skyux/lookup": "15.0.0-alpha.
|
|
77
|
-
"@skyux/manifest": "15.0.0-alpha.
|
|
78
|
-
"@skyux/modals": "15.0.0-alpha.
|
|
79
|
-
"@skyux/navbar": "15.0.0-alpha.
|
|
80
|
-
"@skyux/pages": "15.0.0-alpha.
|
|
81
|
-
"@skyux/phone-field": "15.0.0-alpha.
|
|
82
|
-
"@skyux/popovers": "15.0.0-alpha.
|
|
83
|
-
"@skyux/progress-indicator": "15.0.0-alpha.
|
|
84
|
-
"@skyux/router": "15.0.0-alpha.
|
|
85
|
-
"@skyux/split-view": "15.0.0-alpha.
|
|
86
|
-
"@skyux/tabs": "15.0.0-alpha.
|
|
87
|
-
"@skyux/text-editor": "15.0.0-alpha.
|
|
88
|
-
"@skyux/theme": "15.0.0-alpha.
|
|
89
|
-
"@skyux/tiles": "15.0.0-alpha.
|
|
90
|
-
"@skyux/toast": "15.0.0-alpha.
|
|
91
|
-
"@skyux/validation": "15.0.0-alpha.
|
|
68
|
+
"@skyux/indicators": "15.0.0-alpha.8",
|
|
69
|
+
"@skyux/inline-form": "15.0.0-alpha.8",
|
|
70
|
+
"@skyux/layout": "15.0.0-alpha.8",
|
|
71
|
+
"@skyux/list-builder": "15.0.0-alpha.8",
|
|
72
|
+
"@skyux/list-builder-common": "15.0.0-alpha.8",
|
|
73
|
+
"@skyux/list-builder-view-checklist": "15.0.0-alpha.8",
|
|
74
|
+
"@skyux/list-builder-view-grids": "15.0.0-alpha.8",
|
|
75
|
+
"@skyux/lists": "15.0.0-alpha.8",
|
|
76
|
+
"@skyux/lookup": "15.0.0-alpha.8",
|
|
77
|
+
"@skyux/manifest": "15.0.0-alpha.8",
|
|
78
|
+
"@skyux/modals": "15.0.0-alpha.8",
|
|
79
|
+
"@skyux/navbar": "15.0.0-alpha.8",
|
|
80
|
+
"@skyux/pages": "15.0.0-alpha.8",
|
|
81
|
+
"@skyux/phone-field": "15.0.0-alpha.8",
|
|
82
|
+
"@skyux/popovers": "15.0.0-alpha.8",
|
|
83
|
+
"@skyux/progress-indicator": "15.0.0-alpha.8",
|
|
84
|
+
"@skyux/router": "15.0.0-alpha.8",
|
|
85
|
+
"@skyux/split-view": "15.0.0-alpha.8",
|
|
86
|
+
"@skyux/tabs": "15.0.0-alpha.8",
|
|
87
|
+
"@skyux/text-editor": "15.0.0-alpha.8",
|
|
88
|
+
"@skyux/theme": "15.0.0-alpha.8",
|
|
89
|
+
"@skyux/tiles": "15.0.0-alpha.8",
|
|
90
|
+
"@skyux/toast": "15.0.0-alpha.8",
|
|
91
|
+
"@skyux/validation": "15.0.0-alpha.8",
|
|
92
92
|
"ag-grid-angular": "^36.1.0",
|
|
93
93
|
"ag-grid-community": "^36.1.0",
|
|
94
94
|
"ag-grid-enterprise": "^36.0.2",
|
|
95
95
|
"autonumeric": "^4.10.10",
|
|
96
|
-
"eslint-config-skyux": "15.0.0-alpha.
|
|
97
|
-
"skyux-eslint": "15.0.0-alpha.
|
|
98
|
-
"skyux-stylelint": "15.0.0-alpha.
|
|
99
|
-
"stylelint-config-skyux": "15.0.0-alpha.
|
|
96
|
+
"eslint-config-skyux": "15.0.0-alpha.8",
|
|
97
|
+
"skyux-eslint": "15.0.0-alpha.8",
|
|
98
|
+
"skyux-stylelint": "15.0.0-alpha.8",
|
|
99
|
+
"stylelint-config-skyux": "15.0.0-alpha.8"
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
102
|
"peerDependencies": {
|
package/src/schematics/ng-generate/migrate-karma-to-vitest/migrate-karma-to-vitest.schematic.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
+
/**
|
|
3
|
+
* This schematic uninstalls our @skyux-sdk/testing jasmine matchers library and
|
|
4
|
+
* replaces it with the @skyux-sdk/vitest matchers library. This schematic assumes
|
|
5
|
+
* the `migrate-sdk-testing-imports` migration ran during the v15 update.
|
|
6
|
+
*/
|
|
7
|
+
export default function migrateKarmaToVitest(): Rule;
|
package/src/schematics/ng-generate/migrate-karma-to-vitest/migrate-karma-to-vitest.schematic.js
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = migrateKarmaToVitest;
|
|
4
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
6
|
+
const dependencies_1 = require("@schematics/angular/utility/dependencies");
|
|
7
|
+
const workspace_1 = require("@schematics/angular/utility/workspace");
|
|
8
|
+
const version_1 = require("../../../version");
|
|
9
|
+
const dependencies_2 = require("../../utility/dependencies");
|
|
10
|
+
const combine_imports_1 = require("../../utility/typescript/combine-imports");
|
|
11
|
+
const ng_ast_1 = require("../../utility/typescript/ng-ast");
|
|
12
|
+
const remove_import_1 = require("../../utility/typescript/remove-import");
|
|
13
|
+
const swap_imported_class_1 = require("../../utility/typescript/swap-imported-class");
|
|
14
|
+
const visit_project_files_1 = require("../../utility/visit-project-files");
|
|
15
|
+
const workspace_2 = require("../../utility/workspace");
|
|
16
|
+
const DEPRECATED_PACKAGE = '@skyux-sdk/testing';
|
|
17
|
+
const SUPPORTED_PACKAGE = '@skyux-sdk/vitest';
|
|
18
|
+
/**
|
|
19
|
+
* This schematic uninstalls our @skyux-sdk/testing jasmine matchers library and
|
|
20
|
+
* replaces it with the @skyux-sdk/vitest matchers library. This schematic assumes
|
|
21
|
+
* the `migrate-sdk-testing-imports` migration ran during the v15 update.
|
|
22
|
+
*/
|
|
23
|
+
function migrateKarmaToVitest() {
|
|
24
|
+
return (tree, context) => {
|
|
25
|
+
if (!(0, dependencies_1.getPackageJsonDependency)(tree, DEPRECATED_PACKAGE)) {
|
|
26
|
+
context.logger.warn(`Dependency '${DEPRECATED_PACKAGE}' not installed. Skipping migration.`);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
if ((0, dependencies_1.getPackageJsonDependency)(tree, SUPPORTED_PACKAGE)) {
|
|
30
|
+
context.logger.warn(`Dependency '${SUPPORTED_PACKAGE}' already installed. Skipping migration.`);
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
return (0, schematics_1.chain)([
|
|
34
|
+
migrateSdkTestingImports(),
|
|
35
|
+
removeSdkTestingMatcherImports(),
|
|
36
|
+
uninstallSdkTesting(),
|
|
37
|
+
installSdkVitest(),
|
|
38
|
+
]);
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
async function visitFilesImportingSdkTesting(tree, callback) {
|
|
42
|
+
const workspace = await (0, workspace_1.getWorkspace)(tree);
|
|
43
|
+
for (const project of workspace.projects.values()) {
|
|
44
|
+
(0, visit_project_files_1.visitProjectFiles)(tree, (0, workspace_2.getSourceRoot)(project), (filePath) => {
|
|
45
|
+
if (filePath.endsWith('.ts') &&
|
|
46
|
+
!filePath.endsWith('.d.ts') &&
|
|
47
|
+
tree.readText(filePath).includes(DEPRECATED_PACKAGE)) {
|
|
48
|
+
callback(filePath);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function migrateSdkTestingImports() {
|
|
54
|
+
return (tree) => {
|
|
55
|
+
return visitFilesImportingSdkTesting(tree, (filePath) => {
|
|
56
|
+
const swapRecorder = tree.beginUpdate(filePath);
|
|
57
|
+
(0, swap_imported_class_1.swapImportedClass)(swapRecorder, filePath, (0, ng_ast_1.parseSourceFile)(tree, filePath), [
|
|
58
|
+
{
|
|
59
|
+
classNames: {
|
|
60
|
+
SkyA11yAnalyzerConfig: 'SkyToBeAccessibleOptions',
|
|
61
|
+
SkyToBeVisibleOptions: 'SkyToBeVisibleOptions',
|
|
62
|
+
},
|
|
63
|
+
moduleName: {
|
|
64
|
+
old: DEPRECATED_PACKAGE,
|
|
65
|
+
new: SUPPORTED_PACKAGE,
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
]);
|
|
69
|
+
tree.commitUpdate(swapRecorder);
|
|
70
|
+
const combineRecorder = tree.beginUpdate(filePath);
|
|
71
|
+
(0, combine_imports_1.combineImports)(combineRecorder, (0, ng_ast_1.parseSourceFile)(tree, filePath), SUPPORTED_PACKAGE);
|
|
72
|
+
tree.commitUpdate(combineRecorder);
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function uninstallSdkTesting() {
|
|
77
|
+
return async (tree, context) => {
|
|
78
|
+
if (await (0, dependencies_2.isPackageUsed)(tree, DEPRECATED_PACKAGE)) {
|
|
79
|
+
context.logger.warn(`Dependency '${DEPRECATED_PACKAGE}' is still imported by the workspace and was not uninstalled.`);
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
(0, dependencies_1.removePackageJsonDependency)(tree, DEPRECATED_PACKAGE);
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
function installSdkVitest() {
|
|
86
|
+
return (tree, context) => {
|
|
87
|
+
(0, dependencies_1.addPackageJsonDependency)(tree, {
|
|
88
|
+
type: dependencies_1.NodeDependencyType.Dev,
|
|
89
|
+
name: SUPPORTED_PACKAGE,
|
|
90
|
+
version: `^${version_1.VERSION.full}`,
|
|
91
|
+
overwrite: true,
|
|
92
|
+
});
|
|
93
|
+
// The package's `ng-add` can only run after the install task puts its
|
|
94
|
+
// collection on disk.
|
|
95
|
+
const installTaskId = context.addTask(new tasks_1.NodePackageInstallTask());
|
|
96
|
+
context.addTask(new tasks_1.RunSchematicTask(SUPPORTED_PACKAGE, 'ng-add', {}), [
|
|
97
|
+
installTaskId,
|
|
98
|
+
]);
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
function removeSdkTestingMatcherImports() {
|
|
102
|
+
return (tree) => {
|
|
103
|
+
return visitFilesImportingSdkTesting(tree, (filePath) => {
|
|
104
|
+
const recorder = tree.beginUpdate(filePath);
|
|
105
|
+
(0, remove_import_1.removeImport)(recorder, (0, ng_ast_1.parseSourceFile)(tree, filePath), {
|
|
106
|
+
classNames: ['expect', 'expectAsync'],
|
|
107
|
+
moduleName: DEPRECATED_PACKAGE,
|
|
108
|
+
});
|
|
109
|
+
tree.commitUpdate(recorder);
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=migrate-karma-to-vitest.schematic.js.map
|
package/src/schematics/ng-generate/migrate-karma-to-vitest/migrate-karma-to-vitest.schematic.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrate-karma-to-vitest.schematic.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/ng-generate/migrate-karma-to-vitest/migrate-karma-to-vitest.schematic.ts"],"names":[],"mappings":";;AA6BA,uCAyBC;AAtDD,2DAA+D;AAC/D,4DAG0C;AAC1C,2EAKkD;AAClD,qEAAqE;AACrE,8CAA4D;AAC5D,6DAA2D;AAC3D,8EAA0E;AAC1E,4DAAkE;AAClE,0EAAsE;AACtE,sFAAiF;AACjF,2EAAsE;AACtE,uDAAwD;AAExD,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;AAChD,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AAE9C;;;;GAIG;AACH,SAAwB,oBAAoB;IAC1C,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;QACvB,IAAI,CAAC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S,EAAE,IAAI;SAChB,CAAC,CAAC;QAEH,sEAAsE;QACtE,sBAAsB;QACtB,MAAM,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,8BAAsB,EAAE,CAAC,CAAC;QAEpE,OAAO,CAAC,OAAO,CAAC,IAAI,wBAAgB,CAAC,iBAAiB,EAAE,QAAQ,EAAE,EAAE,CAAC,EAAE;YACrE,aAAa;SACd,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,8BAA8B;IACrC,OAAO,CAAC,IAAI,EAAiB,EAAE;QAC7B,OAAO,6BAA6B,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,EAAE;YACtD,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;YAE5C,IAAA,4BAAY,EAAC,QAAQ,EAAE,IAAA,wBAAe,EAAC,IAAI,EAAE,QAAQ,CAAC,EAAE;gBACtD,UAAU,EAAE,CAAC,QAAQ,EAAE,aAAa,CAAC;gBACrC,UAAU,EAAE,kBAAkB;aAC/B,CAAC,CAAC;YAEH,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QAC9B,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -535,7 +535,7 @@ function convertGridToDataGrid(projectPath) {
|
|
|
535
535
|
},
|
|
536
536
|
() => {
|
|
537
537
|
if (anyConverted) {
|
|
538
|
-
return (0, utility_1.addDependency)('@skyux/data-grid', `15.0.0-alpha.
|
|
538
|
+
return (0, utility_1.addDependency)('@skyux/data-grid', `15.0.0-alpha.8`, {
|
|
539
539
|
existing: utility_1.ExistingBehavior.Skip,
|
|
540
540
|
});
|
|
541
541
|
}
|
|
@@ -198,7 +198,7 @@ function convertPageSummaryToPageHeader(projectPath) {
|
|
|
198
198
|
}
|
|
199
199
|
});
|
|
200
200
|
},
|
|
201
|
-
(0, utility_1.addDependency)('@skyux/pages', `15.0.0-alpha.
|
|
201
|
+
(0, utility_1.addDependency)('@skyux/pages', `15.0.0-alpha.8`, {
|
|
202
202
|
existing: utility_1.ExistingBehavior.Skip,
|
|
203
203
|
}),
|
|
204
204
|
]);
|
|
@@ -296,7 +296,7 @@ function convertProgressIndicatorWizardToTabWizard(options) {
|
|
|
296
296
|
});
|
|
297
297
|
}
|
|
298
298
|
},
|
|
299
|
-
(0, utility_1.addDependency)('@skyux/tabs', `15.0.0-alpha.
|
|
299
|
+
(0, utility_1.addDependency)('@skyux/tabs', `15.0.0-alpha.8`, {
|
|
300
300
|
existing: utility_1.ExistingBehavior.Skip,
|
|
301
301
|
}),
|
|
302
302
|
]);
|
package/src/version.js
CHANGED