An open API service indexing awesome lists of open source software.

https://github.com/originjs/codemod-demo

This project is a demo for vue2 to vue3 migration tool vue-codemod.
https://github.com/originjs/codemod-demo

Last synced: 5 months ago
JSON representation

This project is a demo for vue2 to vue3 migration tool vue-codemod.

Awesome Lists containing this project

README

          

# codemod-demo

This project is a demo for vue2 to vue3 migration tool [vue-codemod](https://github.com/originjs/vue-codemod). Currently it is in vue2 and we can transform it to vue3 by vue-codemod.

## Project setup in Vue2
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

## Codemod transformation
```
npm install @originjs/vue-codemod -g
npx vue-codemod -a src
```

## Project setup in Vue3

```
npm install
npm run serve
```

Just run 'npm install' again and you can run this project in vue3.

Enjoy!