块编辑器开发文档

💡 云策文档标注

概述

本文档介绍了 WordPress 包的管理流程,使用 npm workspaces 和 lerna 进行包管理和发布,并强调了变更日志维护的重要性。

关键要点

  • 使用 npm workspaces 管理 WordPress 包,lerna 用于发布到 npm。
  • 维护 CHANGELOG.md 文件以简化发布流程,贡献者需在添加生产代码时更新变更日志。
  • 包发布与 Gutenberg 插件 RC1 版本同步自动化,详细流程可参考相关文档。

📄 原文内容

This repository uses npm workspaces to manage WordPress packages and lerna to publish them to npm. This enforces certain steps in the workflow which are described in details in packages documentation.

Maintaining dozens of npm packages is difficult—it can be tough to keep track of changes. That’s why we use CHANGELOG.md files for each package to simplify the release process. As a contributor, you should add an entry to the aforementioned file each time you contribute adding production code as described in Maintaining Changelogs section.

Publishing WordPress packages to npm is automated by synchronizing it with the bi-weekly Gutenberg plugin RC1 release. You can learn more about this process and other ways to publish new versions of npm packages in the Gutenberg Release Process document.