Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/viewstools/codemods
Helpers to migrate your code to newer versions of Views Tools
https://github.com/viewstools/codemods
Last synced: 5 days ago
JSON representation
Helpers to migrate your code to newer versions of Views Tools
- Host: GitHub
- URL: https://github.com/viewstools/codemods
- Owner: viewstools
- Created: 2018-02-04T14:58:21.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-27T02:14:12.000Z (about 2 years ago)
- Last Synced: 2024-12-17T12:16:07.703Z (about 2 months ago)
- Language: JavaScript
- Size: 72.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-codemods - viewtools/codemods - Helpers to migrate your code to newer versions of Views Tools. (Misc / ant-design)
README
# Views Tools shorthands
Helpers to migrate your code to newer versions of Views Tools.
Copy the files into the root of your Views project and run them with `node file.js`.
See the diff it generates with `git diff` and make sure it does what you want :).Important: Don't run each codemod more than once!!
We recommend you run them in this order:
```
node codemod-add-new-line-to-every-block.js
node codemod-expand-shorthands.js
node codemod-use-props-shortcut.js
node codemod-onwhen-to-the-top.js
node codemod-default-props.js
node codemod-extract-complex-props-to-logic.js
node codemod-props-to-slots.js
node codemod-use-slot-symbol-in-system-scopes.js
# v12.0.8
node codemod-shadowRadius-to-shadowBlur.js
# v13.0.0
node codemod-flex-to-flexGrow.js
# v13.0.8
node codemod-expand-transforms.js
# v15.0.0
node codemod-use-camelCase-props.js
# v16.0.0
node codemod-system-scopes-start-with-is.js
# v17.0.0
node codemod-captures.js
# v18.0.0
node codemod-indent.js
# v24.0.0
The order:
codemod-v24.js
codemod-v24-validate-required.js
codemod-v24-format-out.js
codemod-v24-format-validate-source.jschmod u+x codemod-v24-views-folder.sh
./codemod-v24-views-folder.sh
```License BSD-3-Clause
UXtemple Ltd.