## rax-codemod

This repository contains a collection of codemod scripts for use with [JSCodeshift](https://github.com/facebook/jscodeshift) that help update Rax related project.

### Usage

```bash
npx rax-codemod <transform> <path> <...options>
```

- `transform` - name of transform, see available transforms below, default value is `app`.
- `path` - files or directory to transform, default value is current dir.

### Included Transforms

#### `app`

Converts `build-plugin-rax-app@0.x` ~ `build-plugin-rax-app@5.x` into `rax-app@3.x`.

```bash
npx rax-codemod
```

#### `component`

Converts `plugin-rax-component` into `plugin-component`.

```bash
npx rax-codemod plugin-rax-component-to-component <path>
```