dsh-disk-cleaner 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/README.md +26 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -133,12 +133,18 @@ These are enforced in `lib/catalog.js` and must not be relaxed:
133
133
 
134
134
  ### Install
135
135
 
136
- From the plugin manager: point `install_bundle` at a checkout of this repository. Or add it to the profile by hand — in `$DSH_PROFILE_DIR/package.json`:
136
+ Published on npm as [`dsh-disk-cleaner`](https://www.npmjs.com/package/dsh-disk-cleaner):
137
+
138
+ ```bash
139
+ npm i dsh-disk-cleaner
140
+ ```
141
+
142
+ Then enable it in the profile — in `$DSH_PROFILE_DIR/package.json`:
137
143
 
138
144
  ```json
139
145
  {
140
146
  "dependencies": {
141
- "dsh-disk-cleaner": "link:C:/path/to/dsh-disk-cleaner"
147
+ "dsh-disk-cleaner": "^1.0.0"
142
148
  },
143
149
  "dsh": {
144
150
  "profile": {
@@ -148,11 +154,13 @@ From the plugin manager: point `install_bundle` at a checkout of this repository
148
154
  }
149
155
  ```
150
156
 
157
+ Or point the plugin manager's `install_bundle` at a local checkout, using a `link:` dependency instead of a version range:
158
+
151
159
  ```bash
152
160
  git clone https://github.com/stallenlu/dsh-disk-cleaner
153
161
  ```
154
162
 
155
- The bundle's own `cordis.patch.yml` inserts the plugin row; no profile patch edit is needed. A `link:` dependency is a symlink, so **client** changes take effect on a page refresh, while **host** changes (`lib/index.js`) need the bundle re-enabled or DSH restarted.
163
+ The bundle's own `cordis.patch.yml` inserts the plugin row; no profile patch edit is needed. A `link:` dependency is a symlink, so **client** changes take effect on a page refresh, while **host** changes (`lib/index.js`) need the bundle re-enabled or DSH restarted. An installed npm copy is the opposite: bump the version to move it.
156
164
 
157
165
  ### Development
158
166
 
@@ -340,12 +348,18 @@ Client-half slots: `sidebar.panellist` (order 50, disposed in settings-only mode
340
348
 
341
349
  ### 安装
342
350
 
343
- 在插件管理里把 `install_bundle` 指向本仓库的检出目录;或手工加入 profile —— 在 `$DSH_PROFILE_DIR/package.json`:
351
+ 已发布到 npm:[`dsh-disk-cleaner`](https://www.npmjs.com/package/dsh-disk-cleaner)。
352
+
353
+ ```bash
354
+ npm i dsh-disk-cleaner
355
+ ```
356
+
357
+ 然后在 profile 里启用 —— 在 `$DSH_PROFILE_DIR/package.json`:
344
358
 
345
359
  ```json
346
360
  {
347
361
  "dependencies": {
348
- "dsh-disk-cleaner": "link:C:/path/to/dsh-disk-cleaner"
362
+ "dsh-disk-cleaner": "^1.0.0"
349
363
  },
350
364
  "dsh": {
351
365
  "profile": {
@@ -355,7 +369,13 @@ Client-half slots: `sidebar.panellist` (order 50, disposed in settings-only mode
355
369
  }
356
370
  ```
357
371
 
358
- bundle 自带的 `cordis.patch.yml` 会插入插件行,无需改 profile 的 patch。`link:` 依赖是符号链接,所以改 **client** 刷新页面即生效,改 **host**(`lib/index.js`)需要重新启用该 bundle 或重启 DSH。
372
+ 或者把插件管理的 `install_bundle` 指向本地检出目录,依赖写成 `link:` 而不是版本范围:
373
+
374
+ ```bash
375
+ git clone https://github.com/stallenlu/dsh-disk-cleaner
376
+ ```
377
+
378
+ bundle 自带的 `cordis.patch.yml` 会插入插件行,无需改 profile 的 patch。`link:` 依赖是符号链接,所以改 **client** 刷新页面即生效,改 **host**(`lib/index.js`)需要重新启用该 bundle 或重启 DSH。从 npm 装则是相反的一面:要升级就改版本号。
359
379
 
360
380
  ```bash
361
381
  git clone https://github.com/stallenlu/dsh-disk-cleaner
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-disk-cleaner",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "description": "Disk Cleaner for DSH: scan known-safe cache locations, see what they occupy, and reclaim the space from a panel or from the agent.",
6
6
  "keywords": [