This repository contains useful [`jscodeshift`](jscodeshift) tranformation scripts.
Last updated 4 months ago by schibstedspain .
ISC · Original npm · Tarball · package.json
$ cnpm install @s-ui/codemod 
SYNC missed versions from official npm registry.


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


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.

Current Tags

  • 1.3.0                                ...           latest (4 months ago)

3 Versions

  • 1.3.0                                ...           4 months ago
  • 1.2.0                                ...           a year ago
  • 1.1.0                                ...           a year ago
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (6)
Dev Dependencies (0)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |