feat: turborepo monorepo scaffold and provisioning
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
10
lib/scaffold/turborepo/apps/website/next.config.ts
Normal file
10
lib/scaffold/turborepo/apps/website/next.config.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { NextConfig } from 'next';
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
transpilePackages: [
|
||||
'@{{project-slug}}/ui',
|
||||
'@{{project-slug}}/tokens',
|
||||
],
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
27
lib/scaffold/turborepo/apps/website/package.json
Normal file
27
lib/scaffold/turborepo/apps/website/package.json
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "@{{project-slug}}/website",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev --port 3001",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "next lint",
|
||||
"type-check": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@{{project-slug}}/ui": "workspace:*",
|
||||
"@{{project-slug}}/tokens": "workspace:*",
|
||||
"@{{project-slug}}/types": "workspace:*",
|
||||
"next": "^15.1.0",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@{{project-slug}}/config": "workspace:*",
|
||||
"@types/node": "^22.0.0",
|
||||
"@types/react": "^19.0.0",
|
||||
"@types/react-dom": "^19.0.0",
|
||||
"typescript": "^5.7.0"
|
||||
}
|
||||
}
|
||||
9
lib/scaffold/turborepo/apps/website/tsconfig.json
Normal file
9
lib/scaffold/turborepo/apps/website/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "@{{project-slug}}/config/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"plugins": [{ "name": "next" }],
|
||||
"paths": { "@/*": ["./src/*"] }
|
||||
},
|
||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
Reference in New Issue
Block a user