frontend
Scaffold a new Next.js application with TypeScript, Tailwind CSS, and App Router.
php artisan npx create-next-app
Syntax
Syntax
npx create-next-app [project-name] [--typescript] [--tailwind] [--app]
Explanation
Creates a new Next.js project with TypeScript, ESLint, Tailwind CSS, and the App Router. Includes src/ directory structure by default. Supports --tsr, --src-dir, and --import-alias flags for customization.
Example
Example
npx create-next-app my-next-app --typescript --tailwind --app
Explanation
Creates a new Next.js project with TypeScript, ESLint, Tailwind CSS, and the App Router. Includes src/ directory structure by default. Supports --tsr, --src-dir, and --import-alias flags for customization.