shujie-ui 0.1.2 → 0.1.4

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.
Files changed (2) hide show
  1. package/README.md +37 -1
  2. package/package.json +6 -3
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  - 全平台兼容(微信/支付宝/百度/字节/QQ 小程序 + H5 + App)
10
10
  - 按需引入(easycom 自动注册)
11
11
  - 单元测试覆盖
12
- - VitePress 文档站
12
+ - 配套 **VitePress 开发者文档**(说明书 + 浏览器里粗看效果;**验收以 UniApp 工程真机/模拟器为准**)
13
13
 
14
14
  ## 安装
15
15
 
@@ -151,9 +151,45 @@ import { addUnit, debounce, throttle, deepClone, isPhone, isEmail } from 'shujie
151
151
  import { useVisible, useLoading, useScroll } from 'shujie-ui'
152
152
  ```
153
153
 
154
+ ## 开发者文档站(非 UniApp 运行时)
155
+
156
+ **shujie-ui 是 UniApp 组件库**:组件模板使用 `view` / `text` 等,面向小程序与 `uni-app` 编译链路;业务里请以 **你自己的 UniApp 项目** 为准做联调与上线。
157
+
158
+ 本仓库里的 **VitePress** 只做两件事:写清 **API / 接入方式**(和一般组件库文档一样),以及在 **普通浏览器** 里用近似方式跑一遍 `sj-*`,方便扫一眼样式与交互。**它不是小程序模拟器**,也不能替代微信开发者工具 / HBuilderX 真机预览。
159
+
160
+ ```bash
161
+ npm run docs:dev
162
+ ```
163
+
164
+ 浏览器打开终端里提示的地址(一般为 `http://localhost:5173`)。静态部署:
165
+
166
+ ```bash
167
+ npm run docs:build
168
+ ```
169
+
170
+ 产物在 `docs/.vitepress/dist`,可托管到 Gitee Pages、Nginx 等,给团队当在线说明书。
171
+
172
+ ## 源码仓库(Gitee + GitHub)
173
+
174
+ 日常开发与 **`npm run release` 一键发版** 会以 **Gitee** 为主远程(`origin`)。若需 **GitHub** 镜像,在本地增加名为 `github` 的第二个远程即可;发版脚本会在 `git push origin` 之后自动 `git push github`(含版本 tag)。
175
+
176
+ 本仓库 GitHub 地址:[Jia-2001/shujie-ui](https://github.com/Jia-2001/shujie-ui)。若本地尚未添加第二个远程,首次配置:
177
+
178
+ ```bash
179
+ git remote add github https://github.com/Jia-2001/shujie-ui.git
180
+ # 或 SSH:git@github.com:Jia-2001/shujie-ui.git
181
+
182
+ # 首次对齐远端(任选其一:推送当前分支,或先 fetch 再合并)
183
+ git push -u github master
184
+ # 若 GitHub 默认分支为 main:git push -u github master:main
185
+ ```
186
+
187
+ 之后只需正常 `npm run release`,脚本会同时推送 **Gitee** 与 **GitHub**(若已配置 `github` 远程)。
188
+
154
189
  ## 链接
155
190
 
156
191
  - [npm 包](https://www.npmjs.com/package/shujie-ui)
192
+ - [GitHub 仓库](https://github.com/Jia-2001/shujie-ui)
157
193
  - [Gitee 仓库](https://gitee.com/jia-shujie666/shujie-ui)
158
194
 
159
195
  ## License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shujie-ui",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "private": false,
5
5
  "description": "A UniApp component library for Vue 3, compatible with Mini Programs, H5, and App",
6
6
  "keywords": [
@@ -88,9 +88,12 @@
88
88
  },
89
89
  "repository": {
90
90
  "type": "git",
91
- "url": "https://gitee.com/jia-shujie666/shujie-ui.git"
91
+ "url": "git+https://github.com/Jia-2001/shujie-ui.git"
92
92
  },
93
- "homepage": "https://gitee.com/jia-shujie666/shujie-ui",
93
+ "bugs": {
94
+ "url": "https://github.com/Jia-2001/shujie-ui/issues"
95
+ },
96
+ "homepage": "https://github.com/Jia-2001/shujie-ui#readme",
94
97
  "directories": {
95
98
  "doc": "docs",
96
99
  "example": "examples"