@rft-rc/recycle-ui 0.0.1-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -0
- package/package.json +60 -0
package/README.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
## recycle-ui
|
|
2
|
+
|
|
3
|
+
基于 Vue 3 的组件库,使用 dumi 搭建文档站。
|
|
4
|
+
|
|
5
|
+
### 启动文档(开发)
|
|
6
|
+
```bash
|
|
7
|
+
pnpm i
|
|
8
|
+
pnpm docs:dev
|
|
9
|
+
# 或 npm i && npm run docs:dev
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
打开浏览器访问本地提示地址(默认 8000/5173 等端口)。
|
|
13
|
+
|
|
14
|
+
### 构建文档(生产)
|
|
15
|
+
```bash
|
|
16
|
+
pnpm docs:build
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### 构建组件库
|
|
20
|
+
```bash
|
|
21
|
+
pnpm build
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### 使用
|
|
25
|
+
```ts
|
|
26
|
+
import { createApp } from 'vue';
|
|
27
|
+
import { RcButton } from '@rft-rc/recycle-ui';
|
|
28
|
+
// 引入样式(确保与文档站一致)
|
|
29
|
+
import '@rft-rc/recycle-ui/style.css';
|
|
30
|
+
createApp({}).component('RcButton', RcButton);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@rft-rc/recycle-ui",
|
|
3
|
+
"version": "0.0.1-rc.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"description": "A Vue 3 component library with dumi-powered docs.",
|
|
7
|
+
"main": "dist/index.cjs",
|
|
8
|
+
"module": "dist/index.mjs",
|
|
9
|
+
"types": "dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/index.mjs",
|
|
13
|
+
"require": "./dist/index.cjs",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"default": "./dist/index.mjs"
|
|
16
|
+
},
|
|
17
|
+
"./style.css": "./dist/style.css"
|
|
18
|
+
},
|
|
19
|
+
"typesVersions": {
|
|
20
|
+
"*": {
|
|
21
|
+
"*": [
|
|
22
|
+
"dist/*"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"sideEffects": [
|
|
27
|
+
"**/*.css"
|
|
28
|
+
],
|
|
29
|
+
"files": [
|
|
30
|
+
"dist"
|
|
31
|
+
],
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"dev": "dumi dev --open",
|
|
37
|
+
"docs:dev": "dumi dev",
|
|
38
|
+
"docs:build": "dumi build",
|
|
39
|
+
"build": "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.build.json && vite build",
|
|
40
|
+
"typecheck": "vue-tsc --noEmit",
|
|
41
|
+
"version:rc": "node scripts/version-rc.js",
|
|
42
|
+
"version:release": "node scripts/version-release.js"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"vue": "^3.5.0"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@dumijs/preset-vue": "^2.3.0",
|
|
50
|
+
"@types/node": "^20.11.24",
|
|
51
|
+
"dumi": "^2.4.0",
|
|
52
|
+
"sass": "^1.77.6",
|
|
53
|
+
"tsup": "^8.2.4",
|
|
54
|
+
"typescript": "^5.4.5",
|
|
55
|
+
"vite": "^5.4.10",
|
|
56
|
+
"@vitejs/plugin-vue": "^5.1.4",
|
|
57
|
+
"vue": "^3.5.11",
|
|
58
|
+
"vue-tsc": "^2.0.19"
|
|
59
|
+
}
|
|
60
|
+
}
|