@react-md/codemod

6.0.2 • Public • Published

@react-md/codemod

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

Note: If you use prettier, you will most likely need to re-format your files after running a codemod.

Usage

Usage: npx @react-md/codemod [options] [command]

Run a codemod script to update to the latest version of ReactMD.

 Running this script without any options or commands will start an interactive wizard.


Options:
  -d, --dry                                    Dry run (no changes are made to files) (default: false)
  -p, --print                                  Print transformed files to your terminal (default: false)
  --parser <parser>                            The file parser to use. (choices: "babel", "tsx", "", default: "")
  --jscodeshift <jscodeshift>                  (Advanced) Pass options directly to jscodeshift (default: "")
  -h, --help                                   display help for command

Commands:
  v3-to-v4/preset [options] [files...]
  v5-to-v6/prerequisites/to-react-md [options] [files...]

Transformations

Package Sidebar

Install

npm i @react-md/codemod

Homepage

react-md.dev

Weekly Downloads

47

Version

6.0.2

License

MIT

Unpacked Size

2.34 MB

Total Files

573

Last publish

Collaborators

  • mlaursen