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
Nice! Seems like a good opportunity to refactor https://github.com/jurassix/atom-javascript-refactor … to leverage your tool. PR welcome if you think it's a good fit.
1 reply 1 retweet 1 like
I def looked at that while I was building! I think the biggest issue is jscodeshift can be slow and randomly hang :/ I need to dig in more to see if a fix is possible.
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.