@corva/dc-platform-shared

中文文档
0.69.1发布于 2026/10/27MITESM + CJS近 30 天下载 1.7万

A library to share internal DC platform specific code

原始使用文档
文档目录5 节
  1. Quick Start
  2. Branch Strategy
  3. Release Process
  4. Version Bumping
  5. CI Checks

corva-dc-platform-shared

A repository to share Dev Center platform code

Contributing Guide

Quick Start

  1. Branch Setup

    git checkout develop
    git pull
    git checkout -b feature/your-feature   # or fix/your-fix
    
  2. Development

    • Write code
    • Add tests
    • Run:
      yarn install
      yarn lint
      yarn test
      
  3. Create PR

    • Push to your branch
    • Create PR to develop
    • PR title must follow conventional commits:
      feat: add user authentication
      fix: resolve login error
      feat!: change API response format
      

Branch Strategy

  • develop - main development branch
  • feature/* - new features
  • fix/* - bug fixes
  • No direct commits to develop

Release Process

  1. Get your PR merged to develop
  2. Release Please automatically:
    • Creates release PR
    • Updates version based on commits
    • Generates changelog
  3. Merge the Release Please PR
  4. System automatically:
    • Creates git tag
    • Runs E2E tests
    • Publishes to NPM

Version Bumping

  • Automatic based on PR titles:
    • fix: → 0.0.X
    • feat: → 0.X.0
    • feat!: or BREAKING CHANGE: → X.0.0
  • Never modify version manually

CI Checks

Your PR must pass:

  • Linting
  • Unit tests
  • E2E tests (feature/fix branches)
  • PR title validation
  • Code review

Remember: The key is writing good code and using correct commit conventions - the release process is automated!

版本与发布记录

@corva/dc-platform-shared 共发布 334 个版本,首次发布于 2022/09/09;过去 12 个月发布了 51 个版本。

版本发布日期距今
0.69.1latest2026/10/2714 天前
0.0.0-7f9b0f4test2026/10/2714 天前
0.69.02026/10/1427 天前
0.0.0-7b977912026/10/1328 天前
0.0.0-d3af9652026/10/1328 天前
0.0.0-9948c3b2026/10/1328 天前

关于 @corva/dc-platform-shared 的常见问题

@corva/dc-platform-shared 是什么?

A library to share internal DC platform specific code

如何安装 @corva/dc-platform-shared?

在项目目录运行 npm install @corva/dc-platform-shared,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@corva/ui(*)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@corva/dc-platform-shared 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/corva__dc-platform-shared 是否存在。

@corva/dc-platform-shared 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@corva/dc-platform-shared 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=24.15.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@corva/dc-platform-shared 可以商用吗?

@corva/dc-platform-shared 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@corva/dc-platform-shared 的下载量有多少?

根据 npm 官方下载统计,@corva/dc-platform-shared 在 2026/10/11 – 2026/11/09 这 30 天内被下载 16,620 次,日均约 554 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@corva/dc-platform-shared 还在维护吗?

最新版本 0.69.1 发布于 2026/10/27(14 天前);至今共发布 334 个版本,其中过去 12 个月发布了 51 个;首次发布于 2022/09/09。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。