Skip to content

Commit

Permalink
doc: update readme (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
vagusX authored Nov 28, 2019
1 parent fde4b62 commit 1aaa0dc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ A collection of codemod scripts that help upgrade antd v4 using [jscodeshift](ht
## Usage samples

```shell
npx jscodeshift -t transforms/v3-Icon-to-v4-Icon.js src/**/*.js
npx jscodeshift -t transforms/v3-Icon-to-v4-Form.js src/**/*.js
git clone git@github.com:ant-design/codemod.git antd-codemod
npx jscodeshift -t antd-codemod/transforms/v3-Icon-to-v4-Icon.js src/**/*.js --parser=babylon
npx jscodeshift -t antd-codemod/transforms/v3-Icon-to-v4-Form.js src/**/*.js --parser=babylon
npx jscodeshift -t antd-codemod/transforms/v3-LocaleProvider-to-v4-ConfigProvider.js src/**/*.js --parser=babylon
```

0 comments on commit 1aaa0dc

Please sign in to comment.