diff --git a/examples/basic/packages/ui/package.json b/examples/basic/packages/ui/package.json index 874491080b9f7..c46fa5746de15 100644 --- a/examples/basic/packages/ui/package.json +++ b/examples/basic/packages/ui/package.json @@ -10,7 +10,6 @@ }, "scripts": { "lint": "eslint . --max-warnings 0", - "generate:component": "turbo gen react-component", "check-types": "tsc --noEmit" }, "devDependencies": { diff --git a/examples/basic/packages/ui/turbo/generators/config.ts b/examples/basic/packages/ui/turbo/generators/config.ts deleted file mode 100644 index 40100baa62a61..0000000000000 --- a/examples/basic/packages/ui/turbo/generators/config.ts +++ /dev/null @@ -1,30 +0,0 @@ -import type { PlopTypes } from "@turbo/gen"; - -// Learn more about Turborepo Generators at https://turbo.build/repo/docs/core-concepts/monorepos/code-generation - -export default function generator(plop: PlopTypes.NodePlopAPI): void { - // A simple generator to add a new React component to the internal UI library - plop.setGenerator("react-component", { - description: "Adds a new react component", - prompts: [ - { - type: "input", - name: "name", - message: "What is the name of the component?", - }, - ], - actions: [ - { - type: "add", - path: "src/{{kebabCase name}}.tsx", - templateFile: "templates/component.hbs", - }, - { - type: "append", - path: "package.json", - pattern: /"exports": {(?)/g, - template: ' "./{{kebabCase name}}": "./src/{{kebabCase name}}.tsx",', - }, - ], - }); -} diff --git a/examples/basic/packages/ui/turbo/generators/templates/component.hbs b/examples/basic/packages/ui/turbo/generators/templates/component.hbs deleted file mode 100644 index d968b9e3a8452..0000000000000 --- a/examples/basic/packages/ui/turbo/generators/templates/component.hbs +++ /dev/null @@ -1,8 +0,0 @@ -export const {{ pascalCase name }} = ({ children }: { children: React.ReactNode }) => { - return ( -
-

{{ pascalCase name }} Component

- {children} -
- ); -};