Skip to content

swac/jscodeshift-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jscodeshift-examples

Installation

Install jscodeshift by running yarn.

Usage

You can run do a dry run of any codemod in this repo via:

yarn jscodeshift -d -p -t lodash/codemod.js lodash/sample.js

Replace lodash in the above commands with the names of the other two directories, apple-to-orange and convert-args to run those codemods.

To run a codemod for real, run:

yarn jscodeshift -t lodash/codemod.js lodash/sample.js

Slides

https://docs.google.com/presentation/d/15BuAjA2TrZoQLre7ZlYwq5Zseu1vmKWAq3WsNDO5JZ0/edit?usp=sharing

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published