AHiNLs/dsh-chrome-samples

AHiNLs★ 0JavaScript最后同步: 2026-08-16

在 GitHub 打开

Chrome 浏览器扩展生成

README 摘要

dsh-chrome-samples Chrome 扩展官方示例库工具包(DSH 插件)——把 GoogleChrome/chrome-extensions-samples 整个示例库变成 DSH 环境内可直接使用的资源:搜索示例、查看 manifest 与文件、 一键脚手架为本地新扩展项目 。 插件形态:toolkit(host 工具包)。 功能 Host 工具(对话中直接调用) 工具 说明 ces status 仓库状态:路径、git HEAD、functional/api 示例计数 ces list 列出/搜索示例: q 模糊匹配 id/名称/描述, category 过滤 functional \ api ces info 示例详情:manifest.json(含 permissions/host permissions)、README 摘要、完整文件树 ces read file 读取示例内文件(越界防护、二进制/超限截断) ces scaffold 把示例完整复制到目标目录生成新扩展项目,可选覆盖 manifest 的 name / version ces sync 仓库缺失则浅克隆,已存在则 git pull --ff-only 更新 数据源 仓库位置按以下顺序解析( ces sync 会在缺失时自动浅克隆到默认位置): 1. 插件配置 repoDir 2. 环境变量 CHROME SAMPLES REPO 3. /.dsh/chrome-extensions-samples (默认) 4. 进程 cwd 下的 chrome-extensions-samples 示例索引规则: functional-samples/ 与 api-samples/ 下含 manifest.json 的目录计为一个示例。 安装(DSH 环境) 卸载(DSH 环境) 构建 使用示例 帮我用 ces list 找一个侧边栏相关的示例 ces info sample=tutorial.hello-world 把 sample.catifier 脚手架到 D:/my-ext,改名叫 My Catifier License BSD-3-Clause

在 GitHub 查看完整 README →
工具/开发dshdsh-plugin

分类