Skip to main content

· 6 min read
Mohab Sameh

Codemod champions build high-quality and useful codemods that could potentially save hours, weeks, or even months of mundane work from their teammates or the community. But, we have heard that one of their biggest challenges in scaling the impact of their great work is to find those target users at the right time and distribute their codemod to them.

That's why at Intuita, we are building the world’s largest registry of high-quality codemods to address the problem of codemod discoverability and distribution.

Once a codemod is added to Intuita's codemod registry, it will automatically get picked up by Intuita IDE extensions (starting with VS Code Extension) and intelligently pushed to all the devs who have the extension installed.

In this article, we explain how to add your codemod to Intuita’s codemod registry. (Estimated Time: 6 Minutes)

· 9 min read
Mohab Sameh

In the previous tutorial, we discussed how to take your codemod skills to the next level by applying the techniques used by professionals to write a codemod like no-vars.

In this tutorial, we take it one step further by writing test cases that confirm that our codemods identify all essential code patterns and then perform transforms correctly and precisely. Writing tests for our codemods can significantly improve your codemod development process.

Keep reading to add this skill to your arsenal.

· 16 min read
Mohab Sameh

Writing Codemods Like a Pro

Writing codemods using imperative methods (like JSCodeShift for JS/TS) can be extremely powerful for code transformation. However, such codemods can be difficult to create, especially for new codemod authors.

In this article, we'll use what we've learned about ASTs and simple codemod development to tackle a real-world problem.

· 5 min read
Mohab Sameh

What Are Codemods

Imagine you're upgrading a dependency for a project; however, this upgrade needs unfathomable modifications and refactoring?

In this article we go over:

  • How codebase migrations can be problematic?
  • What are codemods and how do they solve this issue?
  • How do codemods work?
  • Types of codemods.
  • References for getting started with your first codemod!