@toshi-toma/closure-codemod

1.0.0 • Public • Published

Test

closure-codemod

Status: WIP

Closure Libray codemod scripts

Setup & Run

$ npm install -D jscodeshift
$ git clone git@github.com:toshi-toma/closure-codemod.git
$ npx jscodeshift -t closure-codemod/lib/transforms<codemod-script> <file>

You can use the -d option for a dry-run and use -p to print the output for comparison.

Included Scripts

goog-is-to-native-code

jscodeshift -t closure-codemod/lib/transforms/goog-is-to-native-code.js <file>

Delete goog.is(Def|Null|DefAndNotNull|String|Boolean|Number) from base.js.
https://github.com/google/closure-library/releases/tag/v20200204

Dependencies (0)

    Dev Dependencies (8)

    Package Sidebar

    Install

    npm i @toshi-toma/closure-codemod

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    231 kB

    Total Files

    32

    Last publish

    Collaborators

    • toshi-toma