All Projects → chimurai → jscodeshift-typescript-example

chimurai / jscodeshift-typescript-example

Licence: MIT License
jscodeshift typescript codemod example

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to jscodeshift-typescript-example

tiny-treeshaker
🌳🥤 A tiny codemod for tree shaking (experimental) 🌳🥤
Stars: ✭ 92 (+240.74%)
Mutual labels:  codemod, jscodeshift
font-awesome-codemod
⚙️ Font Awesome codemod script
Stars: ✭ 46 (+70.37%)
Mutual labels:  codemod, jscodeshift
es5-function-to-class-codemod
📦 Transform ES5 Functions to ES6 Classes
Stars: ✭ 30 (+11.11%)
Mutual labels:  codemod, jscodeshift
codemod-v4
codemod cli for antd v4 upgrade
Stars: ✭ 84 (+211.11%)
Mutual labels:  codemod, jscodeshift
ember-angle-brackets-codemod
Codemod to convert curly braces syntax to angle brackets syntax
Stars: ✭ 58 (+114.81%)
Mutual labels:  codemod, jscodeshift
async-await-codemod
Codemod script for migrating promise-based functions to use async/await syntax
Stars: ✭ 22 (-18.52%)
Mutual labels:  codemod, jscodeshift
preact-codemod
🍧 Shave some bytes by using Preact.
Stars: ✭ 39 (+44.44%)
Mutual labels:  codemod, jscodeshift
nextjs-starter-kit
NextJS Starter Kit with Testing Frameworks and CI/CD
Stars: ✭ 30 (+11.11%)
Mutual labels:  jest
rr-boilerplate
A lightweight React&Redux boilerplate
Stars: ✭ 35 (+29.63%)
Mutual labels:  jest
jest-matchmedia-mock
🃏 Mock for fully testing any media queries with Jest
Stars: ✭ 35 (+29.63%)
Mutual labels:  jest
unity-rich-text
🌈 Forget about rich text tags pain
Stars: ✭ 14 (-48.15%)
Mutual labels:  debug
nextjs-typescript-graphql-starter
A Next.js starter with Typescript, Jest, GraphQL Apollo Server & Apollo Client v3 with graphql-codegen.
Stars: ✭ 15 (-44.44%)
Mutual labels:  jest
medly-components
🧩 Medly components provides numerous themable react components, each with multiple varitaions of sizes, colors, position etc.
Stars: ✭ 66 (+144.44%)
Mutual labels:  jest
react-multi-context
Manage multiple React 16 contexts with a single component.
Stars: ✭ 19 (-29.63%)
Mutual labels:  jest
fullstack-template
This is a template repository to get up and running quickly with Vite, React, Jest, Express Docker, and Github Actions for CI/CD.
Stars: ✭ 14 (-48.15%)
Mutual labels:  jest
bigbug
Easy Microcontroller Debugging Tool
Stars: ✭ 37 (+37.04%)
Mutual labels:  debug
react-component-library-lerna
Build your own React component library managed with lerna, presented with storybook and published in private npm registry.
Stars: ✭ 55 (+103.7%)
Mutual labels:  jest
split-tests
Split test files in Jest and Cypress into parallel CI jobs
Stars: ✭ 22 (-18.52%)
Mutual labels:  jest
tangerine-monorepo
A "fast" TypeScript-based Node.js monorepo setup powered by esbuild & turborepo
Stars: ✭ 191 (+607.41%)
Mutual labels:  jest
enzyme-v3-and-react-16
Example of how to setup React 16, Enzyme 3 and Jest 21
Stars: ✭ 21 (-22.22%)
Mutual labels:  jest

jscodeshift-typescript-example

TypeScript all the way 🚀

Example usage of jscodeshift for TypeScript with TypeScript:

  • TypeScript target files *.ts
  • TypeScript transformer
  • TypeScript test files
  • TypeScript fixtures

TypeScript transformer

Strongly typed code and code completion with @types/jscodeshift

code-completion

Installation

npm i

or

yarn

Run codemod

npx jscodeshift -t ./examples/simple-rename.ts --extensions=ts --parser=ts './**/*.ts' --print --dry

Omit --dry to write the transformed source back to disk.

Test

npm test

or

yarn test

Debug

Use the pre-configured VSCode launcher to run tests and debug your transformer.

debugger

Behind the scenes

Use @babel/parser in https://astexplorer.net when working with the jscodeshift's default parser (default: babel).

Resources & Inspiration

Awesome lists

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].