Skip to content

Commit b1ebfde

Browse files
committed
refactor: 增加示例
1 parent 6f63962 commit b1ebfde

22 files changed

+413
-52
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@
5858
"docs:preview": "vitepress preview docs",
5959
"test:dev": "vitest --coverage",
6060
"test": "vitest run --coverage",
61-
"postinstall": "simple-git-hooks"
61+
"postinstall": "simple-git-hooks",
62+
"demo:dev": "pnpm -C playground dev"
6263
},
6364
"commitlint": {
6465
"extends": [

playground/global.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="vite/client" />

example/index.html renamed to playground/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
</head>
88
<body>
99
<div id="app"></div>
10-
<script type="module" src="/example/main.tsx"></script>
10+
<script type="module" src="/src/main.tsx"></script>
1111
</body>
1212
</html>

playground/package.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "playground",
3+
"version": "1.0.0",
4+
"private": true,
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite"
8+
},
9+
"dependencies": {
10+
"@abraham/reflection": "^0.12.0",
11+
"injection-js": "^2.4.0",
12+
"vue": "^3.5.13",
13+
"vue-router": "^4.5.0",
14+
"vue3-oop": "workspace:*",
15+
"ant-design-vue": "^4.2.6",
16+
"tslib": "^2.8.1"
17+
},
18+
"devDependencies": {
19+
"vite": "^6.2.4",
20+
"typescript": "^5.8.2",
21+
"vite-plugin-tsconfig-paths": "^1.4.1",
22+
"@vue3-oop/plugin-vue-jsx": "^1.4.6"
23+
}
24+
}
File renamed without changes.

0 commit comments

Comments
 (0)