hmdev-cli 1.0.2 → 1.0.3
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
CHANGED
|
@@ -100,6 +100,20 @@ hmdev-cli build --project ./MyApp && hmdev-cli deploy --start --bundle com.examp
|
|
|
100
100
|
hmdev-cli connect 192.168.1.100:41015 && hmdev-cli deploy --start --bundle com.example.app
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
+
## AI 技能 (Skill)
|
|
104
|
+
|
|
105
|
+
hmdev-cli 提供配套的 AI 技能,让 Claude 等 AI 助手直接学会使用该工具:
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
# 技能文件位于项目 hmdev-cli-skill/ 目录
|
|
109
|
+
hmdev-cli-skill/
|
|
110
|
+
├── SKILL.md # 技能描述与使用指南
|
|
111
|
+
├── scripts/ # 预留:自动化脚本
|
|
112
|
+
└── references/ # 预留:参考文档
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
AI 加载该技能后,能自动完成文档查询、构建、部署等操作。
|
|
116
|
+
|
|
103
117
|
## 命令参考
|
|
104
118
|
|
|
105
119
|
| 命令 | 说明 |
|
|
@@ -140,13 +154,11 @@ npm install -g hmdev-cli
|
|
|
140
154
|
## 开发
|
|
141
155
|
|
|
142
156
|
```bash
|
|
143
|
-
git clone https://github.com/Johnson1662/
|
|
144
|
-
cd
|
|
157
|
+
git clone https://github.com/Johnson1662/hmdev-cli.git
|
|
158
|
+
cd hmdev-cli
|
|
145
159
|
|
|
146
|
-
# 安装依赖(自动创建 venv)
|
|
147
160
|
npm install
|
|
148
161
|
|
|
149
|
-
# 本地测试
|
|
150
162
|
node bin/hmdev-cli.js index
|
|
151
163
|
node bin/hmdev-cli.js search ArkUI
|
|
152
164
|
node bin/hmdev-cli.js build --project /path/to/harmonyos-project
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hmdev-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "HarmonyOS 开发 CLI 工具 — 文档查询、项目构建、设备部署",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"harmonyos",
|
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
"hdc",
|
|
12
12
|
"huawei"
|
|
13
13
|
],
|
|
14
|
-
"homepage": "https://github.com/Johnson1662/
|
|
14
|
+
"homepage": "https://github.com/Johnson1662/hmdev-cli#readme",
|
|
15
15
|
"bugs": {
|
|
16
|
-
"url": "https://github.com/Johnson1662/
|
|
16
|
+
"url": "https://github.com/Johnson1662/hmdev-cli/issues"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"author": "Johnson1662",
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
22
|
-
"url": "git+https://github.com/Johnson1662/
|
|
22
|
+
"url": "git+https://github.com/Johnson1662/hmdev-cli.git"
|
|
23
23
|
},
|
|
24
24
|
"bin": {
|
|
25
25
|
"hmdev-cli": "bin/hmdev-cli.js"
|
|
Binary file
|
|
Binary file
|