-
-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature (migrate/skeleton-3): Exports are now properly migrated. (#3139)
- Loading branch information
Showing
30 changed files
with
170 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@skeletonlabs/skeleton-cli': patch | ||
--- | ||
|
||
Feature (migrate/skeleton-3): All removed and renamed exports are now migrated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
...keleton-cli/src/commands/migrate/migrations/skeleton-3/utility/exports/removed-exports.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
const REMOVED_EXPORTS = [ | ||
'Apollo', | ||
'AppRailAnchor', | ||
'AppShell', | ||
'Autocomplete', | ||
'BlueNight', | ||
'CodeBlock', | ||
'ConicGradient', | ||
'Drawer', | ||
'Emerald', | ||
'GreenFall', | ||
'LightSwitch', | ||
'ListBox', | ||
'ListBoxItem', | ||
'Modal', | ||
'Noir', | ||
'NoirLight', | ||
'RecursiveTreeView', | ||
'RecursiveTreeViewItem', | ||
'Rustic', | ||
'Step', | ||
'Stepper', | ||
'Summer84', | ||
'Table', | ||
'TableOfContents', | ||
'TreeView', | ||
'TreeViewItem', | ||
'XPro', | ||
'autoModeWatcher', | ||
'clipboard', | ||
'filter', | ||
'focusTrap', | ||
'getDrawerStore', | ||
'getModalStore', | ||
'getModeAutoPrefers', | ||
'getModeOsPrefers', | ||
'getModeUserPrefers', | ||
'getToastStore', | ||
'initializeStores', | ||
'localStorageStore', | ||
'modeCurrent', | ||
'modeOsPrefers', | ||
'modeUserPrefers', | ||
'popup', | ||
'prefersReducedMotionStore', | ||
'setInitialClassState', | ||
'setModeCurrent', | ||
'setModeUserPrefers', | ||
'storeHighlightJs', | ||
'storePopup', | ||
'tableMapperValues', | ||
'tableSourceMapper', | ||
'tableSourceValues', | ||
'tocCrawler', | ||
'tocStore' | ||
]; | ||
|
||
export { REMOVED_EXPORTS }; |
12 changes: 9 additions & 3 deletions
12
.../skeleton-3/utility/component-mappings.ts → ...eton-3/utility/exports/renamed-exports.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
const COMPONENT_MAPPINGS: Record<string, string> = { | ||
const RENAMED_EXPORTS: Record<string, string> = { | ||
AccordionItem: 'Accordion.Item', | ||
AppRail: 'Navigation', | ||
AppRailTile: 'Navigation.Tile', | ||
FileButton: 'FileUpload', | ||
FileDropzone: 'FileUpload', | ||
InputChip: 'TagsInput', | ||
Paginator: 'Pagination', | ||
ProgressBar: 'Progress', | ||
ProgressRadial: 'ProgressRing', | ||
RadioGroup: 'Segment', | ||
RadioItem: 'Segment.Item', | ||
RangeSlider: 'Slider', | ||
Ratings: 'Rating', | ||
SlideToggle: 'Switch', | ||
TabGroup: 'Tabs' | ||
TabAnchor: 'Tabs.Control', | ||
TabGroup: 'Tabs', | ||
Toast: 'ToastProvider' | ||
}; | ||
|
||
export { COMPONENT_MAPPINGS }; | ||
export { RENAMED_EXPORTS }; |
3 changes: 0 additions & 3 deletions
3
...ges/skeleton-cli/src/commands/migrate/migrations/skeleton-3/utility/removed-components.ts
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
packages/skeleton-cli/test/migrate/skeleton-3/fixtures/module/remove-component-import
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...skeleton-cli/test/migrate/skeleton-3/fixtures/module/remove-component-import-keep-default
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...on-cli/test/migrate/skeleton-3/fixtures/module/remove-component-import-keep-named-imports
This file was deleted.
Oops, something went wrong.
56 changes: 56 additions & 0 deletions
56
packages/skeleton-cli/test/migrate/skeleton-3/fixtures/module/remove-import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import { | ||
Apollo, | ||
AppRailAnchor, | ||
AppShell, | ||
Autocomplete, | ||
BlueNight, | ||
CodeBlock, | ||
ConicGradient, | ||
Drawer, | ||
Emerald, | ||
GreenFall, | ||
LightSwitch, | ||
ListBox, | ||
ListBoxItem, | ||
Modal, | ||
Noir, | ||
NoirLight, | ||
RecursiveTreeView, | ||
RecursiveTreeViewItem, | ||
Rustic, | ||
Step, | ||
Stepper, | ||
Summer84, | ||
Table, | ||
TableOfContents, | ||
TreeView, | ||
TreeViewItem, | ||
XPro, | ||
autoModeWatcher, | ||
clipboard, | ||
filter, | ||
focusTrap, | ||
getDrawerStore, | ||
getModalStore, | ||
getModeAutoPrefers, | ||
getModeOsPrefers, | ||
getModeUserPrefers, | ||
getToastStore, | ||
initializeStores, | ||
localStorageStore, | ||
modeCurrent, | ||
modeOsPrefers, | ||
modeUserPrefers, | ||
popup, | ||
prefersReducedMotionStore, | ||
setInitialClassState, | ||
setModeCurrent, | ||
setModeUserPrefers, | ||
storeHighlightJs, | ||
storePopup, | ||
tableMapperValues, | ||
tableSourceMapper, | ||
tableSourceValues, | ||
tocCrawler, | ||
tocStore | ||
} from "@skeletonlabs/skeleton"; |
1 change: 1 addition & 0 deletions
1
packages/skeleton-cli/test/migrate/skeleton-3/fixtures/module/remove-import-keep-default
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import Foo, { Apollo } from "@skeletonlabs/skeleton"; |
1 change: 1 addition & 0 deletions
1
...ges/skeleton-cli/test/migrate/skeleton-3/fixtures/module/remove-import-keep-named-imports
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import { Foo, Apollo } from "@skeletonlabs/skeleton"; |
13 changes: 0 additions & 13 deletions
13
packages/skeleton-cli/test/migrate/skeleton-3/fixtures/module/rename-component-import
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
packages/skeleton-cli/test/migrate/skeleton-3/fixtures/module/rename-import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import { AppRail, FileButton, FileDropzone, InputChip, Paginator, ProgressBar, ProgressRadial, RadioGroup, RangeSlider, SlideToggle, TabGroup } from "@skeletonlabs/skeleton"; |
18 changes: 0 additions & 18 deletions
18
packages/skeleton-cli/test/migrate/skeleton-3/fixtures/svelte/remove-component-import
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
...skeleton-cli/test/migrate/skeleton-3/fixtures/svelte/remove-component-import-keep-default
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
...on-cli/test/migrate/skeleton-3/fixtures/svelte/remove-component-import-keep-named-imports
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
packages/skeleton-cli/test/migrate/skeleton-3/results/module/remove-component-import
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.