Skip to content

Files

Failed to load latest commit information.

Latest commit

 Cannot retrieve latest commit at this time.

History

History

v10

Codemods

Make sure to have jscodeshift installed globally.

$ yarn global add jscodeshift
$ npm -g install jscodeshift

Example usage

$ jscodeshift -t  @commercetools-frontend/transforms/v10/icon-theme-to-color.js src/

Useful options:

  • -d: dry-run
  • -p: print the output for comparison (use it together with -d)

Included scripts

icon-theme-to-color

Renames the prop theme to color for all UI-Kit icons.

icon-element-type-to-as

Renames the prop elementType to as for all Text components.

$ jscodeshift -t @commercetools-frontend/transforms/v10/icon-theme-to-color.js <path>