@dong-victor/dsh-better-sidebar-starter 0.1.0
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 +55 -0
- package/cordis.patch.yml +14 -0
- package/dsh.plugin.json +16 -0
- package/lib/client.js +2465 -0
- package/lib/client.js.map +1 -0
- package/lib/index.js +1030 -0
- package/package.json +82 -0
package/README.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# @dong-victor/dsh-better-sidebar-starter
|
|
2
|
+
|
|
3
|
+
dsh-better-sidebar 的运行配置插件:模仿 IntelliJ IDEA 运行/调试配置(Run/Debug Configurations),支持 npm/springboot/python/custom 命令执行、历史保存、快捷启动、实时日志查看。
|
|
4
|
+
|
|
5
|
+
## 功能
|
|
6
|
+
|
|
7
|
+
- **运行配置管理**:创建、编辑、删除运行配置,持久化到工作区 `.dsh/run-configs.json`
|
|
8
|
+
- **快捷启动**:一键启动命令,支持多实例并行运行
|
|
9
|
+
- **实时日志**:WebSocket 实时推送 stdout/stderr,ANSI 彩色渲染
|
|
10
|
+
- **IDEA 服务面板式布局**:左侧 1/3 配置树(按类型分组)+ 右侧 2/3 日志流
|
|
11
|
+
- **进程管理**:跨平台进程树杀死(Windows taskkill /T,Unix process group kill)
|
|
12
|
+
|
|
13
|
+
## 配置类型
|
|
14
|
+
|
|
15
|
+
| 类型 | 默认命令 | 说明 |
|
|
16
|
+
|------|---------|------|
|
|
17
|
+
| npm | `npm run dev` | Node.js 前端项目 |
|
|
18
|
+
| springboot | `mvn spring-boot:run` | Spring Boot 后端项目 |
|
|
19
|
+
| python | `python main.py` | Python 脚本 |
|
|
20
|
+
| custom | (空) | 自定义命令 |
|
|
21
|
+
|
|
22
|
+
## 构建
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
pnpm install
|
|
26
|
+
pnpm run build
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
产物:
|
|
30
|
+
- `lib/index.js` — Host 端 ESM(HTTP 路由 + WebSocket + 进程管理)
|
|
31
|
+
- `lib/client.js` — Client 端 CJS bundle(React UI,注册 sidebar tab)
|
|
32
|
+
|
|
33
|
+
## 安装到 dsh profile
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
dsh plugin --profile <name> add @dong-victor/dsh-better-sidebar-starter
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
或手动同步 `lib/` + `dsh.plugin.json` + `cordis.patch.yml` 到 profile node_modules。
|
|
40
|
+
|
|
41
|
+
## 架构
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
Host (Node.js) Client (Browser)
|
|
45
|
+
┌──────────────────┐ ┌──────────────────┐
|
|
46
|
+
│ configStore.ts │ REST API │ ServicesTab.tsx │
|
|
47
|
+
│ processManager.ts│←────────────→│ ConfigTree.tsx │
|
|
48
|
+
│ routes.ts │ WebSocket │ LogView.tsx │
|
|
49
|
+
│ fence.ts / gate │ │ ConfigDetail.tsx │
|
|
50
|
+
└──────────────────┘ └──────────────────┘
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## License
|
|
54
|
+
|
|
55
|
+
MIT
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# dsh-better-sidebar-starter bundle patch
|
|
2
|
+
#
|
|
3
|
+
# This file is the `dsh.bundle.patch` layer of the published npm package: when
|
|
4
|
+
# the plugin is installed through the official CLI —
|
|
5
|
+
#
|
|
6
|
+
# dsh plugin --profile <name> add @dong-victor/dsh-better-sidebar-starter
|
|
7
|
+
#
|
|
8
|
+
# — the command reconciles `dsh.profile.bundles` against installed packages
|
|
9
|
+
# and, seeing this declaration, appends the plugin to the bundle stack. The
|
|
10
|
+
# profile boot then merges THIS patch (a single `insert` of the plugin row)
|
|
11
|
+
# exactly like the manual cordis.patch.yml mount line used before.
|
|
12
|
+
- insert:
|
|
13
|
+
- id: better-sidebar-starter
|
|
14
|
+
name: '@dong-victor/dsh-better-sidebar-starter'
|
package/dsh.plugin.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "@dong-victor/dsh-better-sidebar-starter",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"main": "./lib/index.js",
|
|
5
|
+
"description": "dsh-better-sidebar 的运行配置插件:模仿 IntelliJ IDEA 运行/调试配置,支持 npm/springboot/python/custom 命令执行、历史保存、快捷启动、实时日志查看,单 Tab 内分栏布局",
|
|
6
|
+
"engines": {
|
|
7
|
+
"dsh": ">=0.0.1"
|
|
8
|
+
},
|
|
9
|
+
"contributes": {
|
|
10
|
+
"tools": [],
|
|
11
|
+
"skills": []
|
|
12
|
+
},
|
|
13
|
+
"client": {
|
|
14
|
+
"main": "./lib/client.js"
|
|
15
|
+
}
|
|
16
|
+
}
|