Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ant-design/antd-migration-helper
CLI tool to aid in migrate antd from old version to newer version.
https://github.com/ant-design/antd-migration-helper
Last synced: about 2 months ago
JSON representation
CLI tool to aid in migrate antd from old version to newer version.
- Host: GitHub
- URL: https://github.com/ant-design/antd-migration-helper
- Owner: ant-design
- License: mit
- Created: 2017-01-05T06:43:34.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-08-06T03:05:24.000Z (over 4 years ago)
- Last Synced: 2024-09-24T17:16:08.755Z (3 months ago)
- Language: JavaScript
- Size: 42 KB
- Stars: 41
- Watchers: 11
- Forks: 8
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# antd-migration-helper
[![](https://img.shields.io/travis/ant-design/antd-migration-helper.svg?style=flat-square)](https://travis-ci.org/ant-design/antd-migration-helper)
[![npm package](https://img.shields.io/npm/v/antd-migration-helper.svg?style=flat-square)](https://www.npmjs.org/package/antd-migration-helper)
[![NPM downloads](http://img.shields.io/npm/dm/antd-migration-helper.svg?style=flat-square)](https://npmjs.org/package/antd-migration-helper)
[![Dependency Status](https://david-dm.org/ant-design/antd-migration-helper.svg?style=flat-square)](https://david-dm.org/ant-design/antd-migration-helper)> CLI tool to aid in migrate antd from old version to newer version. It scans files for JSX code and provides detailed warnings when deprecated patterns are found. It cannot reliably catch every deprecation, but should get you 80% of the way there.
![Screenshot](https://gw.alipayobjects.com/zos/rmsportal/XLTKkKowtBUyfjaRuker.png)
## Usage
```bash
# install
npm install -g antd-migration-helper# navigate to an [email protected] project directory
cd path/to/my-antd-project# scan all files in the current directory
antd-migration-helper
# scan all files in specific sub-directories
antd-migration-helper src folder-a folder-b
# scan a specific file or files
antd-migration-helper src/app.jsx
```## License
MIT