Skip to content

Commit 94656bd

Browse files
author
jingwenzheng
committed
feat: 改造项目为 monorepo
1 parent 7344947 commit 94656bd

24 files changed

+1156
-1322
lines changed

package.json

Lines changed: 16 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,26 @@
11
{
2-
"type": "module",
2+
"private": true,
3+
"workspaces": [
4+
"packages/*"
5+
],
36
"scripts": {
47
"dev": "vite",
5-
"build": "vue-tsc && vite build",
8+
"build": "pnpm --dir ./packages/core build",
69
"build-lib": "vue-tsc && vite build --config vite.config.lib.ts",
710
"preview": "vite preview",
811
"pub": "npm run build-lib && npm publish --registry https://registry.npmjs.org"
912
},
10-
"dependencies": {
11-
"vue": "^3.2.45"
12-
},
1313
"devDependencies": {
14-
"@types/animejs": "^3.1.6",
15-
"@vitejs/plugin-vue-jsx": "^3.0.0",
16-
"animejs": "^3.2.1",
17-
"typescript": "^4.9.3",
18-
"vite": "^4.0.0",
19-
"vite-plugin-dts": "^1.7.1",
20-
"vue-tsc": "^1.0.11"
21-
},
22-
"name": "@0x30/vue-navigation",
23-
"version": "1.3.2",
24-
"main": "dist/vue-navigation.umd.cjs",
25-
"module": "dist/vue-navigation.js",
26-
"types": "dist/core/index.d.ts",
27-
"repository": {
28-
"type": "git",
29-
"url": "git+https://github.com/0x30/vue-navigation.git"
14+
"@types/animejs": "^3.1.12",
15+
"@vitejs/plugin-vue-jsx": "^3.1.0",
16+
"typescript": "^4.9.5",
17+
"vite": "^5.0.10",
18+
"vite-plugin-dts": "^1.7.3",
19+
"vue-tsc": "^1.8.26"
3020
},
31-
"author": "",
32-
"bugs": {
33-
"url": "https://github.com/0x30/vue-navigation/issues"
34-
},
35-
"homepage": "https://github.com/0x30/vue-navigation#readme",
36-
"description": "",
37-
"files": [
38-
"dist/*.js",
39-
"dist/core/index.d.ts"
40-
]
21+
"dependencies": {
22+
"@0x30/vue-navigation": "workspace:*",
23+
"animejs": "^3.2.2",
24+
"vue": "^3.3.13"
25+
}
4126
}

packages/core/package.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"type": "module",
3+
"scripts": {
4+
"build": "vue-tsc && vite build",
5+
"pub": "npm run build-lib && npm publish --registry https://registry.npmjs.org"
6+
},
7+
"peerDependencies": {
8+
"vue": "^3"
9+
},
10+
"devDependencies": {
11+
"typescript": "^4.9.5",
12+
"vite": "^5.0.10",
13+
"vite-plugin-dts": "^1.7.3",
14+
"vue-tsc": "^1.8.26",
15+
"@vitejs/plugin-vue-jsx": "^3.1.0"
16+
},
17+
"name": "@0x30/vue-navigation",
18+
"version": "1.3.2",
19+
"main": "dist/vue-navigation.umd.cjs",
20+
"module": "dist/vue-navigation.js",
21+
"types": "dist/index.d.ts",
22+
"repository": {
23+
"type": "git",
24+
"url": "git+https://github.com/0x30/vue-navigation.git"
25+
},
26+
"author": "",
27+
"bugs": {
28+
"url": "https://github.com/0x30/vue-navigation/issues"
29+
},
30+
"homepage": "https://github.com/0x30/vue-navigation#readme",
31+
"description": "",
32+
"files": [
33+
"dist/*.js",
34+
"dist/index.d.ts"
35+
]
36+
}
File renamed without changes.

0 commit comments

Comments
 (0)