dsh-mini 0.1.6 → 0.1.7
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 +5 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -118,17 +118,18 @@ npm install dsh-mini
|
|
|
118
118
|
|
|
119
119
|
装完不需要额外配置:插件会在 DSH 启动 2.5 秒后自己拉起常驻服务(划词药丸 + 全局热键 + 托盘),小窗由标题栏的「弹出此窗口」按需打开。**前提是机器上已有 WebView2 Runtime**(见上面「系统要求」)。
|
|
120
120
|
|
|
121
|
-
### B.
|
|
121
|
+
### B. 源码 link(改代码时用)
|
|
122
122
|
|
|
123
|
-
|
|
123
|
+
改代码不必每次 `npm pack`,把 profile 里的依赖指向你本地这份仓库即可:
|
|
124
124
|
|
|
125
125
|
```jsonc
|
|
126
126
|
// ~/.dsh/profiles/desktop/package.json
|
|
127
|
-
"dependencies": { "dsh-mini": "link
|
|
127
|
+
"dependencies": { "dsh-mini": "link:<本仓库在你机器上的绝对路径>" },
|
|
128
128
|
"dsh": { "profile": { "bundles": [ ..., "dsh-mini" ] } }
|
|
129
129
|
```
|
|
130
130
|
|
|
131
|
-
`
|
|
131
|
+
把 `<本仓库在你机器上的绝对路径>` 换成你 clone 下来的那个目录(例如 `C:/code/dsh-mini`),
|
|
132
|
+
然后 `npm install` 让 npm 建好 `node_modules/dsh-mini` 这层链接;之后改代码不需要重新安装。
|
|
132
133
|
宿主半身(`lib/index.js`)的改动需要 `plugin_manager set_bundle` 关一次再开一次(或重启 DSH);
|
|
133
134
|
浏览器半身(`lib/client.js`)的改动需要**刷新页面**(`F5`)——bundle 的 `rev` 由内容算出,刷新即取新版。
|
|
134
135
|
|