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.
- Host: GitHub
- URL: https://github.com/originjs/codemod-demo
- Owner: originjs
- Created: 2021-08-16T02:54:35.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-09T02:03:34.000Z (about 4 years ago)
- Last Synced: 2025-02-17T23:37:54.857Z (10 months ago)
- Language: Vue
- Homepage:
- Size: 355 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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!