Skip to content

oportocala/idagio-codemod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

idagio-codemod Build Status

This repository contains a collection of codemod scripts based for use with JSCodeshift that help update React APIs.

Setup & Run

  • npm install -g jscodeshift
  • git clone https://github.com/oportocala/idagio-codemod.git or download a zip file from https://github.com/oportocala/idagio-codemod/archive/master.zip
  • Run npm install in the idagio-codemod directory
    • Alternatively, run yarn to install in the idagio-codemod directory for a reliable dependency resolution
  • jscodeshift -t <codemod-script> <path>
  • Use the -d option for a dry-run and use -p to print the output for comparison

Included Scripts

compose-connect

Converts connect wrapped comments into compose (from redux).

jscodeshift -t idagio-codemod/transforms/compose-connect.js <path>

Releases

No releases published

Packages

No packages published