Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 861 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 861 Bytes

JS Code Mods

This is a set of codemods built on jscodeshift for making menial tasks and code upgrades easier. Visit the transforms directory to see what's available.

Contributing a Code Mod

Building a code mod amounts to defining a series of AST transformations. It is generally easiest to start by building a basic mod at astexplorer.net before porting it to this repo. Refer to the jscodeshift README for instructions on creating these. Also, look at the tape-to-jest mod for an example.

Develop

# clone and install dependencies
git clone https://github.com/esridc/js-code-mods
cd js-code-mods
npm i

Test

Run the npm t commmand to spin up the automated tests.