块编辑器开发文档

@wordpress/create-block-tutorial-template

💡 云策文档标注

概述

本文档介绍了 @wordpress/create-block-tutorial-template,这是一个用于创建示例“Copyright Date”块的模板,适用于WordPress官方块开发快速入门指南。

关键要点

  • 该模板通过 @wordpress/create-block 工具使用,运行命令 npx @wordpress/create-block --template @wordpress/create-block-tutorial-template 来生成块。
  • 使用过程中,在终端提示时选择默认选项以简化配置。
  • 此包是Gutenberg项目的一部分,采用monorepo结构,包含多个独立软件包,发布到npm供WordPress和其他项目使用。
  • 贡献者需参考项目的主要贡献指南来参与此包或整个Gutenberg的开发。

📄 原文内容

This is a template for @wordpress/create-block that creates an example “Copyright Date” block. This block is used in the official WordPress block development Quick Start Guide.

Usage

This block template can be used by running the following command:

npx @wordpress/create-block --template @wordpress/create-block-tutorial-template

Use the default options when prompted in the terminal.

Contributing to this package

This is an individual package that’s part of the Gutenberg project. The project is organized as a monorepo. It’s made up of multiple self-contained software packages, each with a specific purpose. The packages in this monorepo are published to npm and used by WordPress as well as other software projects.

To find out more about contributing to this package or Gutenberg as a whole, please read the project’s main contributor guide.