advanced-dev-kit
Version:
A comprehensive CLI toolkit for modern development workflows - featuring task automation, project cleaning, and developer utilities
280 lines (213 loc) โข 7.05 kB
Markdown
# ๐ Advanced Development Kit (ADK)
> A comprehensive CLI toolkit for modern development workflows - featuring task automation, project cleaning, and developer utilities built with TypeScript.
[](https://www.npmjs.com/package/advanced-dev-kit)
[](https://opensource.org/licenses/MIT)
[](https://github.com/AdarshHatkar/advanced-dev-kit/stargazers)
[](https://github.com/AdarshHatkar/advanced-dev-kit/issues)
## โจ Features
- ๐งน **Project Cleanup** - Clean temporary files and build artifacts
- ๐ **Smart Deployment** - Automated deployment workflows with version management
- ๐ฉบ **Health Diagnostics** - System and environment health checks
- โก **Fast & Modern** - Built with TypeScript and optimized for performance
- ๐จ **Beautiful UI** - Rich terminal interface with colors and animations
## ๐ฆ Quick Start
### Option 1: Global Installation (Recommended)
```bash
npm install -g advanced-dev-kit
```
After global installation, use `adk` directly from anywhere:
```bash
adk --help
adk doctor
adk clean
```
### Option 2: Local Project Usage
```bash
# Install locally
npm install advanced-dev-kit
# Use with npx
npx adk --help
npx adk clean
```
### Option 3: Development Setup
```bash
# Clone and setup for development
git clone https://github.com/AdarshHatkar/advanced-dev-kit.git
cd advanced-dev-kit
npm install
npm run build
# Install globally from source
npm install -g .
```
## ๐ฏ Quick Commands
Once installed globally, here are the most common commands:
```bash
# Check system health and ADK installation
adk doctor
# Clean your project
adk clean
# Deploy to development
adk deploy dev
# Deploy to production (with version management)
adk deploy prod
# Get help
adk --help
```
## ๐ Detailed Usage
### ๐งน `adk clean`
Clean temporary folders and files from your project.
**What it cleans:**
- `node_modules/` directories
- Build artifacts (`dist/`, `build/`)
- Temporary files and caches
- Log files
**Usage:**
```bash
adk clean
```
### ๐ `adk deploy`
Deployment commands with smart workflows and version management.
#### Deploy to Development
```bash
adk deploy dev
```
- Pushes main branch to dev branch with force
- Quick and simple development deployment
#### Deploy to Production
```bash
adk deploy prod
```
**Comprehensive production workflow:**
- โ
Pulls latest changes from stable branch
- โ
Checks for uncommitted changes
- โ
Ensures you're on the main branch
- โ
Auto-increments version if needed
- โ
Creates deployment commit with timestamp
- โ
Pushes changes to main branch
- โ
Creates pull request from main to stable
- โ
Opens PR in browser
### ๐ฉบ `adk doctor`
Run comprehensive system and environment diagnostics.
**Checks:**
- ADK installation status
- Node.js and npm compatibility
- Git availability and repository status
- Available ADK commands
- Current project status
**Usage:**
```bash
adk doctor
```
## โ๏ธ Configuration
### Deployment Tracking
ADK uses a `deploy.json` file to track deployment history and manage versions:
```json
{
"last_deploy": "2025-07-05 14:30:00",
"hash": "abc123def456",
"version": "1.2.3"
}
```
This file is automatically created and updated during production deployments.
## ๐ง Prerequisites for Production Deployment
Before using `adk deploy prod`, ensure you have:
1. **โ
Git Repository**
- Must be a git repository
- Requires `main` and `stable` branches
2. **โ
GitHub CLI**
```bash
# Install GitHub CLI
npm install -g @github/cli
# Authenticate
gh auth login
```
3. **โ
Clean Working Directory**
- No uncommitted changes
- All changes should be committed
4. **โ
Correct Branch**
- Must be on `main` branch for production deployment
## ๐ ๏ธ Development
### Building the Project
```bash
npm run build # Build once
npm run dev # Build and watch for changes
```
### Available Scripts
```bash
npm run build # Build the project
npm run dev # Build and watch for changes
npm run clean # Clean build artifacts
npm run deploy:dev # Alias for 'adk deploy dev'
npm run deploy:prod # Alias for 'adk deploy prod'
```
## ๐ Troubleshooting
### Common Issues
**1. `adk: command not found`**
```bash
# Reinstall globally
npm install -g advanced-dev-kit
# Or check if npm global bin is in PATH
npm config get prefix
```
**2. Permission errors on Windows**
```bash
# Run PowerShell as Administrator, then:
npm install -g advanced-dev-kit
```
**3. Deploy command fails**
```bash
# Check prerequisites
adk doctor
# Ensure GitHub CLI is authenticated
gh auth status
```
### Getting Help
```bash
# Show help
adk --help
# Run diagnostics
adk doctor
# Check version
adk --version
```
**Need more help?**
- ๐ [Read the full documentation](https://github.com/AdarshHatkar/advanced-dev-kit#readme)
- ๐ [Report a bug](https://github.com/AdarshHatkar/advanced-dev-kit/issues/new)
- ๐ก [Request a feature](https://github.com/AdarshHatkar/advanced-dev-kit/issues/new)
- ๐ฌ [Join discussions](https://github.com/AdarshHatkar/advanced-dev-kit/discussions)
## ๐ค Contributing
We welcome contributions! Here's how to get started:
1. **Fork the repository**
2. **Clone your fork**
```bash
git clone https://github.com/your-username/advanced-dev-kit.git
cd advanced-dev-kit
```
3. **Install dependencies**
```bash
npm install
```
4. **Make your changes**
5. **Build and test**
```bash
npm run build
npm install -g . # Install your changes globally
adk doctor # Test the installation
```
6. **Submit a pull request**
### Development Guidelines
- Use TypeScript for all new code
- Follow the existing code style
- Add tests for new features
- Update documentation as needed
## ๐ License
MIT License - see the [LICENSE](LICENSE) file for details.
## ๐ Acknowledgments
- Built with [TypeScript](https://www.typescriptlang.org/)
- CLI framework powered by [Commander.js](https://github.com/tj/commander.js/)
- Beautiful terminal UI with [Boxen](https://github.com/sindresorhus/boxen) and [Chalk](https://github.com/chalk/chalk)
---
<div align="center">
**Made with โค๏ธ for developers who love beautiful and efficient tools**
[Report Bug](https://github.com/AdarshHatkar/advanced-dev-kit/issues) โข [Request Feature](https://github.com/AdarshHatkar/advanced-dev-kit/issues) โข [Documentation](https://github.com/AdarshHatkar/advanced-dev-kit#readme)
</div>