feat: turborepo monorepo scaffold and provisioning
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
10
lib/scaffold/turborepo/apps/admin/next.config.ts
Normal file
10
lib/scaffold/turborepo/apps/admin/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/admin/package.json
Normal file
27
lib/scaffold/turborepo/apps/admin/package.json
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "@{{project-slug}}/admin",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev --port 3002",
|
||||
"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/admin/tsconfig.json
Normal file
9
lib/scaffold/turborepo/apps/admin/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"]
|
||||
}
|
||||
10
lib/scaffold/turborepo/apps/product/next.config.ts
Normal file
10
lib/scaffold/turborepo/apps/product/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/product/package.json
Normal file
27
lib/scaffold/turborepo/apps/product/package.json
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "@{{project-slug}}/product",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev --port 3000",
|
||||
"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/product/tsconfig.json
Normal file
9
lib/scaffold/turborepo/apps/product/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"]
|
||||
}
|
||||
26
lib/scaffold/turborepo/apps/storybook/package.json
Normal file
26
lib/scaffold/turborepo/apps/storybook/package.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"name": "@{{project-slug}}/storybook",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "storybook dev --port 6006",
|
||||
"build": "storybook build --output-dir storybook-static",
|
||||
"type-check": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@{{project-slug}}/ui": "workspace:*",
|
||||
"@{{project-slug}}/tokens": "workspace:*",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@{{project-slug}}/config": "workspace:*",
|
||||
"@storybook/addon-essentials": "^8.5.0",
|
||||
"@storybook/react": "^8.5.0",
|
||||
"@storybook/react-vite": "^8.5.0",
|
||||
"@types/react": "^19.0.0",
|
||||
"storybook": "^8.5.0",
|
||||
"typescript": "^5.7.0",
|
||||
"vite": "^6.0.0"
|
||||
}
|
||||
}
|
||||
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