semi-codemod

0.8.0 • Public • Published

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

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

Readme

Keywords

none

Package Sidebar

Install

npm i semi-codemod

Weekly Downloads

0

Version

0.8.0

License

ISC

Unpacked Size

39 kB

Total Files

35

Last publish

Collaborators

  • li.li