重要提示: 此中文文档针对的是 Yarn 的最新版本。
有关 1.x 版本的中文文档,请点击进入 classic.yarnpkg.cn。
Yarn
builder build bundlebuilder build pluginbuilder new plugin

builder new plugin

External Package

To use this command, you need to use the @yarnpkg/builder package either:

  • By installing it locally using yarn add and running it using yarn run
  • By downloading and running it in a temporary environment using yarn dlx

Generate the template for a new plugin.

Usage

$> builder new plugin <target>

Examples

Create a new plugin :

builder new plugin yarn-plugin-hello-world

Details

This command generates a new plugin based on the template.

For more details about the build process, please consult the @yarnpkg/builder README: https://github.com/yarnpkg/berry/blob/HEAD/packages/yarnpkg-builder/README.md.