Skip to content

vue-macros/vue-macros-cli

Repository files navigation

@vue-macros/cli

@vue-macros/cli is a CLI for rewriting at Vue Macros powered by ast-grep.

Installation

# install
pnpm add -g @vue-macros/cli

Usage

SG

Rewriting at Vue Macros.

vue-macros sg

supported macros:

  • jsx-directive
  • define-render
  • export-render
  • define-slots
  • short-vmodel
  • setup-sfc

Initialization

pnpm create vite my-vue-macros --template vue-ts
cd my-vue-macros
vue-macros init

License

MIT License © 2023-PRESENT zhiyuanzmj