Tscodeshift Save Abandoned

tscodeshift is a toolkit for running codemods over multiple TS files

Project README

tscodeshift

GitHub license npm Travis Coverage Status Commitizen friendly Standard Version Greenkeeper badge

tscodeshift is a toolkit for running codemods over multiple TS files. It borrows its ideas from jscodeshift in a shameless manner.

Usage

  Usage: tscodeshift <path>... [options]

  path     Files or directory or glob to transform

  Options:
    -t FILE, --transform FILE   Path to the transform file. Can be either a local path or url  [./transform.js]
    -d, --dry                   Dry run (no changes are made to files)
    -p, --print                 Print output, useful for development

Example

Convert mocha tests to jest tests:

$ npm install tscodeshift
$ ./node_modules/.bin/tscodeshift -t ./node_modules/tscodeshift/dist/src/transforms/mocha.js 'tests/**/*.ts'
Open Source Agenda is not affiliated with "Tscodeshift" Project. README Source: KnisterPeter/tscodeshift
Stars
48
Open Issues
0
Last Commit
6 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating