strudel-codemod
v1.0.3
Published
Strudel codemod scripts
Downloads
4
Keywords
Readme
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