Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

nfl/wildcat-codemod

 
 

Repository files navigation

Codemods for NFL Migration

This repository contains a collection of codemod scripts based for use with JSCodeshift that helps with Gridiron Migration

Setup & Run

  • npm install -g jscodeshift
  • jscodeshift -t <codemod-script> <file>
  • Use the -d option for a dry-run and use -p to print the output for comparison

Included Scripts

  • convert-ad, convert-helmet-import, remove-gridiron-import, convert-prefetch - import helpers
  • convert-to-radium, remove-stilr - convert from stilr to radium
  • resolve-relative-imports - Convert to JSPM Imports

Recast Options

Options to recast's printer can be provided through the printOptions command line argument

  • jscodeshift -t transform.js <file> --printOptions='{"quote":"double"}'

Credit

This repo is based off of reactjs-codemod. Thank you @reactjs and @fbOpenSource!

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.6%
  • Shell 1.4%