跳转至

plugin-template (omdsh-dev)

类型 示例 分类 学习
星数 ⭐5 状态 ✅ 活跃
能力 coding 更新时间 2026-08-12

📖 项目简介

A self-contained standalone repository template for an ESM Cordis plugin. Every source file, compiler setting, test fixture, contributor instruction, skill, and build helper used by the repository is inside this directory; every development input resolves below this repository root. Normal npm dependencies are resolved from the package registry. A DSH host is a runtime consumer of the finished package, not a source or build input.

✨ 核心特性

  • src/index.ts owns the Loader namespace;
  • src/config.ts owns the serializable schema and direct-call defaults;
  • src/runtime.ts owns fakeable host boundaries and Cordis activation;
  • tests/harness.ts owns the shared real-Cordis test mount;

📦 安装

pnpm install
pnpm run verify:self-contained
pnpm run typecheck
pnpm test
pnpm run build
pnpm run prepare

🚀 快速开始

{
  "dsh": {
    "bundle": {
      "patch": "./cordis.patch.yml"
    }
  }
}

🔗 链接