A CLI tool to create Next.js applications with custom configurations and additional dependencies pre-installed.
- TypeScript by default
- Tailwind CSS configuration
- ESLint 9 setup
- App Router (Next.js 15+)
- src/ directory structure
- Import alias (@/*)
- Additional useful packages pre-installed:
- lucide-react
- clsx
- tailwind-merge
- class-variance-authority
- react-hook-form
- shadcdn/ui
- tailwindcss-animate
- next-themes
# Using npx (recommended)
npx create-dc-app my-app
# Or install globally
npm install -g create-dc-app
create-dc-app my-app
All options are enabled by default, but can be disabled using their respective flags:
-
--typescript
- Enable TypeScript -
--tailwind
- Include Tailwind CSS -
--eslint
- Include ESLint configuration -
--src-dir
- Use asrc/
directory -
--app-router
- Use Next.js App Router -
--import-alias <alias>
- Configure import alias (default: @/*)
To work on this package locally:
- Clone the repository
- Install dependencies:
npm install
- Link the package:
npm link
- Run
create-dc-app
from anywhere on your system
MIT