huweili-cesium 1.2.80 → 1.2.82
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 +22 -4
- package/js/labelDiv.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -144,17 +144,35 @@ setOptGuideHandler((payload) => api.toOptGuide(payload))
|
|
|
144
144
|
|
|
145
145
|
## 发布到 npm(维护者)
|
|
146
146
|
|
|
147
|
+
项目根目录已配置 `.npmrc`(Token 授权,见 `.npmrc.example`),**无需执行 `npm login`**。安装依赖走 npmmirror 镜像,发布通过 `package.json` 中的 `publishConfig` 固定到 npm 官方源。
|
|
148
|
+
|
|
149
|
+
### 发布步骤
|
|
150
|
+
|
|
151
|
+
1. 修改 `package.json` 中的 `version`(须高于 npm 上已有版本)
|
|
152
|
+
2. 在项目根目录执行:
|
|
153
|
+
|
|
147
154
|
```bash
|
|
148
|
-
cd huweili-cesium
|
|
149
|
-
npm login
|
|
150
155
|
npm publish
|
|
151
156
|
```
|
|
152
157
|
|
|
153
|
-
|
|
158
|
+
### 仅验证打包内容(不上传)
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
npm publish --dry-run
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
### 本地打包预览
|
|
154
165
|
|
|
155
166
|
```bash
|
|
156
167
|
npm pack
|
|
157
|
-
# 会生成 huweili-cesium-
|
|
168
|
+
# 会生成 huweili-cesium-x.y.z.tgz,解压检查是否包含全部 js
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
### 验证登录与最新版本
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
npm whoami --registry=https://registry.npmjs.org/
|
|
175
|
+
npm view huweili-cesium version --registry=https://registry.npmjs.org/
|
|
158
176
|
```
|
|
159
177
|
|
|
160
178
|
## 从 tzr 源目录同步更新
|
package/js/labelDiv.js
CHANGED
|
@@ -213,8 +213,8 @@ export function labelDiv() {
|
|
|
213
213
|
<div class="drone-detail-divider"></div>
|
|
214
214
|
|
|
215
215
|
<div class="drone-detail-grid">
|
|
216
|
-
<div><span class="pilot-title">高度:</span><span class="alt">-</span>
|
|
217
|
-
<div><span class="pilot-title">速度:</span><span class="speed">-</span>
|
|
216
|
+
<div><span class="pilot-title">高度:</span><span class="alt">-</span>m</div>
|
|
217
|
+
<div><span class="pilot-title">速度:</span><span class="speed">-</span>m/s</div>
|
|
218
218
|
<div><span class="pilot-title">距离:</span><span class="distance">200m</span></div>
|
|
219
219
|
${!isUnknown ? '<div><span class="pilot-title">频段:</span><span class="band">2.4GHz、5.8GHz</span></div>' : ''}
|
|
220
220
|
</div>
|