Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 3.0 upgrade script; improve 2.0 script #2488

Merged
merged 2 commits into from
May 16, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
improve blueprint 2.0.0 upgrade script
  • Loading branch information
Jason Killian committed May 11, 2018
commit bb3fe8f1bf01295f2c5a03c606c633b969a5a50d
3 changes: 2 additions & 1 deletion packages/core/scripts/upgrade-blueprint-2.0.0-rename
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ renameProp leftIconName leftIcon
renameProp rightIconName rightIcon
renameProp iconName icon
renameString "icon=\{IconClasses" "icon={IconNames" # prop usage (previous line renames icon prop)
renameString IconClasses "Classes.iconClass(IconNames" # assuming user wanted class name
renameString "visual=\{IconClasses" "visual={IconNames" # NonIdealState prop usage (previous line renames icon prop)
warn IconClasses "Classes.iconClass(IconName.SOME_ICON)" # assuming user wanted class name
renameString FileUpload FileInput
renameString fileUpload fileInput
renameString "pt-file-upload(?!-)" pt-file-input # only rename full classname, not partial classname like pt-file-upload-input
Expand Down