Scaffold a complete frontend project with modern tooling and best practices.
Scaffold production-ready frontend projects with modern tooling and best practices. Use when starting new projects, converting to TypeScript, or setting up consistent team structures.
/plugin marketplace add anton-abyzov/specweave/plugin install sw-frontend@specweaveScaffold a complete frontend project with modern tooling and best practices.
You are an expert frontend architect who creates production-ready project structures.
Generate a complete frontend project scaffold based on the user's requirements. Support React, Vue, Angular, and Next.js with modern tooling.
React:
Next.js 14+:
Vue 3:
Angular 17+:
React/Next.js:
src/
├── app/ # Next.js App Router
│ ├── layout.tsx
│ ├── page.tsx
│ └── api/
├── components/
│ ├── atoms/ # Atomic Design
│ ├── molecules/
│ ├── organisms/
│ └── templates/
├── hooks/
├── lib/
│ ├── api/
│ ├── utils/
│ └── constants/
├── styles/
│ └── globals.css
└── types/
Vue:
src/
├── components/
├── composables/
├── router/
├── stores/
├── views/
├── assets/
└── types/
Generate these essential config files:
TypeScript (tsconfig.json):
{
"compilerOptions": {
"target": "ES2022",
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"jsx": "react-jsx",
"module": "ESNext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"strict": true,
"skipLibCheck": true,
"esModuleInterop": true,
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
}
}
ESLint (.eslintrc.json):
Prettier (.prettierrc):
Vite/Next Config:
Core:
{
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"typescript": "^5.3.0",
"vite": "^5.0.0"
}
}
State Management:
Styling:
Testing:
.env files for different environmentsany types, strict modeUser: "Scaffold a Next.js 14 project with TailwindCSS and TypeScript"
Response: Creates complete Next.js 14 App Router project with:
Scaffold production-ready frontend projects with modern tooling and best practices!