@turbo/gen
TypeScript icon, indicating that this package has built-in type declarations

1.13.3 • Public • Published

@turbo/gen

Types for working with Turborepo Generators.

Usage

Install:

pnpm add @turbo/gen --save-dev

Use types within your generator config.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: [
      ...
    ],
  });
}

Learn more about Turborepo Generators in the docs


For more information about Turborepo, visit turbo.build and follow us on X (@turborepo)!

Readme

Keywords

none

Package Sidebar

Install

npm i @turbo/gen

Weekly Downloads

168,472

Version

1.13.3

License

MPL-2.0

Unpacked Size

494 kB

Total Files

11

Last publish

Collaborators

  • turbobot
  • jaredpalmer