feat(turbo): use turbo gen instead of plop (#53684)
### What? Use [Turborepo generators](https://turbo.build/repo/docs/core-concepts/monorepos/code-generation#custom-generators) instead of plop. Turborepo generators are built on top of plop, but include some additional tooling to make working in monorepos easier. It also supports zero config typescript for configs. ### Why? Same Team! ### How? Ported the existing plopfile to a turbo generator config Co-authored-by:Jiachi Liu <4800338+huozhi@users.noreply.github.com>
Showing
| ... | @@ -6,8 +6,8 @@ | ... | @@ -6,8 +6,8 @@ |
| "packages/*" | "packages/*" | ||
| ], | ], | ||
| "scripts": { | "scripts": { | ||
| "new-error": "plop error", | "new-error": "turbo gen error", | ||
| "new-test": "plop test", | "new-test": "turbo gen test", | ||
| "clean": "lerna clean -y && lerna bootstrap && lerna run clean && lerna exec 'node ../../scripts/rm.mjs dist'", | "clean": "lerna clean -y && lerna bootstrap && lerna run clean && lerna exec 'node ../../scripts/rm.mjs dist'", | ||
| "build": "turbo run build --remote-cache-timeout 60 --summarize true", | "build": "turbo run build --remote-cache-timeout 60 --summarize true", | ||
| "lerna": "lerna", | "lerna": "lerna", | ||
| ... | @@ -173,6 +173,7 @@ | ... | @@ -173,6 +173,7 @@ |
| "nanoid": "3.1.30", | "nanoid": "3.1.30", | ||
| "next": "workspace:*", | "next": "workspace:*", | ||
| "node-fetch": "2.6.7", | "node-fetch": "2.6.7", | ||
| "node-plop": "0.31.1", | |||
| "npm-run-all": "4.1.5", | "npm-run-all": "4.1.5", | ||
| "nprogress": "0.2.0", | "nprogress": "0.2.0", | ||
| "octokit": "3.1.0", | "octokit": "3.1.0", | ||
| ... | @@ -181,7 +182,6 @@ | ... | @@ -181,7 +182,6 @@ |
| "pixrem": "5.0.0", | "pixrem": "5.0.0", | ||
| "playwright-chromium": "1.35.1", | "playwright-chromium": "1.35.1", | ||
| "playwright-core": "1.35.1", | "playwright-core": "1.35.1", | ||
| "plop": "3.0.5", | |||
| "postcss": "8.4.31", | "postcss": "8.4.31", | ||
| "postcss-nested": "4.2.1", | "postcss-nested": "4.2.1", | ||
| "postcss-pseudoelements": "5.0.0", | "postcss-pseudoelements": "5.0.0", | ||
| ... | ... |
This diff is collapsed.
This diff is collapsed.
turbo/generators/helpers.ts
0 → 100644
Please
register
or
sign in
to comment