https://github.com/sourcegraph/codemod
A collection of codemods powered by TS-Morph and PostCSS
https://github.com/sourcegraph/codemod
Last synced: 6 months ago
JSON representation
A collection of codemods powered by TS-Morph and PostCSS
- Host: GitHub
- URL: https://github.com/sourcegraph/codemod
- Owner: sourcegraph
- License: apache-2.0
- Created: 2021-07-23T07:39:20.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-29T21:47:08.000Z (about 1 year ago)
- Last Synced: 2024-11-29T22:33:29.068Z (about 1 year ago)
- Language: TypeScript
- Size: 1.24 MB
- Stars: 25
- Watchers: 44
- Forks: 8
- Open Issues: 56
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @sourcegraph/codemod
A toolkit for writing codemods powered by [ts-morph](https://github.com/dsherret/ts-morph) and [PostCSS](https://github.com/postcss/postcss).
## Docs
Extended documentation is coming to the project. In the meantime, take a look at [the RFC](https://docs.google.com/document/d/1SMxtA4O9vDVqBlAUFwFdxG2wXnDOId2gjAOWtdp3Zas/edit?usp=sharing), which contains all the background information.
## Setup
```sh
yarn
```
## Use
```sh
yarn transform --help
```
## Other commands
```sh
yarn build
yarn build:clean
yarn build:watch
yarn test
yarn format
yarn format:check
yarn lint
```