wix-incubator / vscode-glean

The extension provides refactoring tools for your React codebase
MIT License
1.46k stars 56 forks source link

Repackage hooks support as a codemod #79

Open kevinbarabash opened 5 years ago

kevinbarabash commented 5 years ago

I'd like to be able to use the hooks support to upgrade a large number of simple components in my codebase.

borislit commented 5 years ago

Hey @kevinbarabash. I have a plan to extract the refactoring engine into a separate package, to allow it to be ported to other IDEs. This will allow You to use the whole engine without the IDE and simply provide inputs and outputs from the medium of Your choice. The work is already underway, but will take some time to complete. Meanwhile, you can find the refactoring You've mentioned here: https://github.com/wix/vscode-glean/blob/master/src/modules/stateful-to-stateless.ts

oleggrishechkin commented 3 years ago

@borislit Can vscode convert all files in some directory? (i mean use vscode formatting instead of use cli for refactor). I wanna convert all files instead "open one file, convert it, repeat", but i don't know vscode features