I’ve worked on lots of projects big and small, but as time went on they all suffered from the same problem. Changing standards and updated api’s left code fragmented as the codebase grew.
From the time I started working on coffeelint, the problem has been stewing in my head. Subconciously on the lookout for a solution, I heard about codemods. Let me preface by saying I’ve been quite obsessed with everything facebook engineering has been doing in open source lately. Needless to say I took notice.
We have been told that facebook has a codemod runner and I have no doubt that there is a bit of process in place governing it. But outside of facebook, we only have a one off runner that is hard to work into a team’s process.
Inspired by my desire to solve this problem and an admiration for the way rails handles database migrations I decided to build a code migration tool that wraps jscodeshift. It might be a little rough, since it is hot off the vim, but I’m eager to hear what people think about the concept.