Skip to content

Commit

Permalink
feat(turbo): use turbo gen instead of plop (#53684)
Browse files Browse the repository at this point in the history
### 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 <[email protected]>
  • Loading branch information
tknickman and huozhi authored Nov 3, 2023
1 parent 520fbc8 commit 348c550
Show file tree
Hide file tree
Showing 5 changed files with 116 additions and 379 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"packages/*"
],
"scripts": {
"new-error": "plop error",
"new-test": "plop test",
"new-error": "turbo gen error",
"new-test": "turbo gen test",
"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",
"lerna": "lerna",
Expand Down Expand Up @@ -173,6 +173,7 @@
"nanoid": "3.1.30",
"next": "workspace:*",
"node-fetch": "2.6.7",
"node-plop": "0.31.1",
"npm-run-all": "4.1.5",
"nprogress": "0.2.0",
"octokit": "3.1.0",
Expand All @@ -181,7 +182,6 @@
"pixrem": "5.0.0",
"playwright-chromium": "1.35.1",
"playwright-core": "1.35.1",
"plop": "3.0.5",
"postcss": "8.4.31",
"postcss-nested": "4.2.1",
"postcss-pseudoelements": "5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/compiled/node-fetch/index.js

Large diffs are not rendered by default.

Loading

0 comments on commit 348c550

Please sign in to comment.