Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vue-macros/vue-macros-cli
Rewriting with Vue Macros powered by ast-grep.
https://github.com/vue-macros/vue-macros-cli
Last synced: 3 months ago
JSON representation
Rewriting with Vue Macros powered by ast-grep.
- Host: GitHub
- URL: https://github.com/vue-macros/vue-macros-cli
- Owner: vue-macros
- License: mit
- Created: 2023-11-26T12:25:42.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2023-12-23T11:04:14.000Z (11 months ago)
- Last Synced: 2024-08-07T08:06:50.341Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 197 KB
- Stars: 13
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @vue-macros/cli
@vue-macros/cli is a CLI for rewriting at Vue Macros powered by [ast-grep](https://github.com/ast-grep/ast-grep).
## Installation
```shell
# install
pnpm add -g @vue-macros/cli
```## Usage
### SG
Rewriting at Vue Macros.
```shell
vue-macros sg
```supported macros:
- [x] jsx-directive
- [x] define-render
- [x] export-render
- [x] define-slots
- [x] short-vmodel
- [x] setup-sfc### Initialization
```shell
pnpm create vite my-vue-macros --template vue-ts
cd my-vue-macros
vue-macros init
```## License
MIT License © 2023-PRESENT [zhiyuanzmj](https://github.com/zhiyuanzmj)