Skip to content

Commit c4ac4fa

Browse files
committed
feat: up ast-grep
1 parent 1e77120 commit c4ac4fa

File tree

6 files changed

+348
-392
lines changed

6 files changed

+348
-392
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# vue-macros-cli
1+
# @vue-macros/cli
22

3-
vue-macros-cli is a cli for rewriting at vue macros powered by [ast-grep](https://github.com/ast-grep/ast-grep).
3+
@vue-macros/cli is a cli for rewriting at vue macros powered by [ast-grep](https://github.com/ast-grep/ast-grep).
44

55
## Support vue macros
66

@@ -11,14 +11,17 @@ vue-macros-cli is a cli for rewriting at vue macros powered by [ast-grep](https:
1111
- [x] short-v-model
1212
- [x] setup-sfc
1313

14+
1415
## Usage
1516

1617
```shell
1718
# install
18-
pnpm add -g vue-macros-cli
19+
pnpm add -g @vue-macros/cli
20+
```
1921

20-
# run
21-
vue-macros-cli sg ./src
22+
### sg
23+
```shell
24+
@vue-macros/cli sg
2225
```
2326

2427
## License

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"name": "vue-macros-cli",
2+
"name": "@vue-macros/cli",
33
"type": "module",
44
"version": "0.0.6",
55
"description": "Rewriting at vue macros powered by ast-grep.",
66
"author": "zhiyuanzmj <zhiyuanzmj@gmail.com>",
77
"license": "MIT",
8-
"homepage": "https://github.com/zhiyuanzmj/vue-macros-cli/tree/main#readme",
8+
"homepage": "https://github.com/zhiyuanzmj/@vue-macros/cli/tree/main#readme",
99
"repository": {
1010
"type": "git",
11-
"url": "https://github.com/zhiyuanzmj/vue-macros-cli"
11+
"url": "https://github.com/zhiyuanzmj/@vue-macros/cli"
1212
},
1313
"bugs": {
14-
"url": "https://github.com/zhiyuanzmj/vue-macros-cli/issues"
14+
"url": "https://github.com/zhiyuanzmj/@vue-macros/cli/issues"
1515
},
1616
"keywords": [
1717
"vue-macros",
@@ -39,12 +39,12 @@
3939
"prepublishOnly": "pnpm run build"
4040
},
4141
"dependencies": {
42-
"@ast-grep/cli": "^0.13.2",
42+
"@ast-grep/cli": "^0.14.1",
4343
"@inquirer/prompts": "^3.3.0",
4444
"zx": "^7.2.3"
4545
},
4646
"devDependencies": {
47-
"@antfu/eslint-config": "^2.1.1",
47+
"@antfu/eslint-config": "^2.1.2",
4848
"bumpp": "^9.2.0",
4949
"typescript": "^5.3.2",
5050
"unbuild": "^2.0.0",

playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"devDependencies": {
1515
"@vue-macros/volar": "^0.17.4",
1616
"tsx": "^4.6.1",
17-
"vite": "^5.0.2"
17+
"vite": "^5.0.4"
1818
}
1919
}

0 commit comments

Comments
 (0)