Skip to content

kabbi/codemods

 
 

Repository files navigation

Codemods

An atom plugin to run js codemods on your selections, files, folders and whole projects. Uses jscodeshift runner and API.

A little demo

WARNING: Don't run transforms on the code when you can't revert it (using git, manual backups or anything else). Transform runner we use makes no backups and modifies the files in place (when applied to file or folder level, selection transforms are safer), and can potentially destroy large codebases. This mostly concerns codemods in general, not the atom plugin.

TIP: Install nuclide package to get the cute console windows with jscodeshift output within atom, and a ton of other IDE-like functionality that nuclide provides.

Features:

  • runs your own transforms on js code
  • fetches transform files from /transforms folder in your project
  • can run transforms on your files and selections
  • displays jscodeshift output in nuclide console window

Roadmap:

  • load transforms from node_modules folder (i. e. provide support to some transform packs that are distributed as npm packages, like js-codemod or react-codemod)
  • configure default transform search path
  • better worker process lifecycle management
  • run transforms on specific folder or whole project
  • reduce installation time

Credits:

About

Atom plugin for running codemods

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.3%
  • CSS 1.7%