1.7.0 • Published 3 years ago

@s-ui/codemod v1.7.0

Weekly downloads
24
License
ISC
Repository
-
Last release
3 years ago

sui-codemod

This repository contains useful jscodeshift tranformation scripts.

## Usage

To use a transformation, you need to call the CLI and pass as a first parameter the name of the transformation you want to perform:

sui-codemod [transformation]

For example, for using the contextByProps transformation, you need to execute the next command:

sui-codemod contextByProps

CLI Options

-d, --dry: Don't apply changs but logs which changes will be mades -p <pattern>, --path <pattern>: Root path to locate the component

Transformations avaiable

contextByProps

Move from old React context API to the new one, moving context to props and separating the component in two files: one index.js with the Context.consumer wrapped and another component.js with the component using the context from props.

1.7.0

3 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

5 years ago

1.1.0

5 years ago