Turborepo

@turbo/gen

在您的 Turborepo 程式碼產生器中使用此套件進行型別定義。

./turbo/generators/my-generator.ts
import type { PlopTypes } from "@turbo/gen"; 
 
export default function generator(plop: PlopTypes.NodePlopAPI): void {
  // Create a generator
  plop.setGenerator("Generator name", {
    description: "Generator description",
    // Gather information from the user
    prompts: [
      ...
    ],
    // Perform actions based on the prompts
    actions: [
      ...
    ],
  });
}

如需更多資訊,請造訪「產生程式碼指南」

小時

總計節省的運算時間
開始使用
遠端快取 →

本頁面

無標題