dn-next-cli v1.0.0
dn-next-cli
A developer CLI tool for project scaffolding and management, inspired by shadcn-ui.
Features
- Project initialization with TypeScript, Tailwind CSS, Prettier, and ESLint
- Component installation and management
- Component updates and diff checking
- Modern UI components with best practices
- Beautiful and consistent styling
Installation
npm install -g dn-next-cliOr using yarn:
yarn global add dn-next-cliOr using pnpm:
pnpm add -g dn-next-cliUsage
Initialize a New Project
dn initThis will prompt you for:
- Project name
- TypeScript support
- Tailwind CSS support
- Prettier configuration
- ESLint configuration
Add a Component
dn add <component-name>Available components:
- button
- card
- dialog
- dropdown
- input
- select
- textarea
- toggle
If no component name is provided, you'll be prompted to select one from the list.
Check Component Differences
dn diff [component-name]Shows differences between installed components and their templates. If no component name is provided, checks all installed components.
Update Components
dn update [component-name] [--yes]Updates components to their latest versions. If no component name is provided, updates all installed components.
Use --yes to skip confirmation prompts.
Development
Prerequisites
- Node.js 16 or later
- npm, yarn, or pnpm
Setup
Clone the repository:
git clone https://github.com/gabros20/dn-next-cli.git cd dn-next-cliInstall dependencies:
npm installBuild the project:
npm run buildLink for local development:
npm link
Testing
Run tests:
npm testRun tests in watch mode:
npm run test:watchGenerate coverage report:
npm run test:coverageContributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
1 year ago