Skip to content

lili21/semi-codemod

Repository files navigation

codemod for migrating Antd@4.x to Semi

Usage

$ npx semi-codemod <path>

Replacing <path> with appropriate values.

  • path - files or directory to transform
  • --dry Do a dry-run, no code will be edited
  • --print Prints the changed output for comparison

FYI

不支持样式的自动化迁移,如果有对antd组件样式做扩展or覆盖的,需要手动更新

TODO

  • Divider
  • Table
  • Breadcrumb
  • Notification
  • message
  • Button
  • Popconfirm
  • Tooltip
  • Divider
  • Tabs
  • Drawer
  • Spin
  • Empty
  • Modal
  • Slider
  • Popover
  • Col
  • Row
  • Tag
  • Timeline
  • Collapse
  • Space
  • Select
  • SelectProps
  • DatePicker
  • TimePicker
  • Input
  • InputNumber
  • Radio
  • Switch
  • Card
  • Checkbox
  • Upload
  • AutoComplete
  • Dropdown
  • Form
  • FormInstance
  • Icon
  • Avatar
  • List
  • Alert
  • Menu
  • Pagination