Refactoring a tone of javascript modules is a pain. I built a CLI tool to make it easier:https://github.com/southpolesteve/esm-refactor …
-
Show this thread
-
Still a little rough around the edges. It does only about 80% of what it could (the most boring 80%). Your linter will probably do the last 20%.
1 reply 0 retweets 0 likesShow this thread -
Special shout out to
@cpojer and everyone who works on jscodeshift Also@who_cayres forhttps://github.com/jurassix/refactoring-codemods …1 reply 0 retweets 1 likeShow this thread -
jscodeshift is awesome, but falls short a bit for coordinating several codemods across files. That is what esm-refactor does.
2 replies 0 retweets 0 likesShow this thread -
Replying to @southpolesteve
This looks sweet :) Looking forward to giving it a go :)
1 reply 0 retweets 0 likes
any and all feedback welcome! There is room for improvement, but it is already making my lifer better. In the middle of a monster refactor.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.