sibelius / ast-i18n

Easily migrate your existing React codebase to use i18n
MIT License
214 stars 18 forks source link

Create npm module for converter #45

Open katilius opened 5 years ago

katilius commented 5 years ago

Currently, in order to use this module you need to:

  1. Check out this repo locally
  2. install jscodeshift globally or use npx to call jscodeshift globally.

This lib could be published as npm module in a way, that it is callable same as jscodeshift. So anyone who would want to use this, could execute some command like:

npx ast-i18n --config config.js --path my-project/src
sibelius commented 5 years ago

check this to run jscodeshift transformer as a cli

https://github.com/reakit/reakit/blob/master/packages/reakit-codemods/bin/reakit-codemods.js