@vue-macros/cli
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

@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:

  • [x] jsx-directive
  • [x] define-render
  • [x] export-render
  • [x] define-slots
  • [x] short-vmodel
  • [x] 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

Readme

Keywords

Package Sidebar

Install

npm i @vue-macros/cli

Weekly Downloads

53

Version

1.2.1

License

MIT

Unpacked Size

31.7 kB

Total Files

27

Last publish

Collaborators

  • sxzz