strudel-codemod

1.0.3 • Public • Published

strudel-codemod

This repository contains codemod scripts to use with JSCodeshift that help update Strudel.

Usage

npx strudel-codemod <transformer> <path>

Included Transforms

evt-new-syntax

Converts single argument in Evt (e.g., @Evt('click selector')) to multiple argument (e.g., @Evt('click', 'selector')).

npx strudel-codemod evt-new-syntax <path>

Recast Options

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

npx strudel-codemod <transformer> --printOptions='{"quote":"double"}'

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i strudel-codemod

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

8.72 kB

Total Files

13

Last publish

Collaborators

  • jakub.lamprecht
  • mateusz.luczak
  • rogemus
  • xolir