Project Scaffolder CLI Tool
A CLI tool that scaffolds new projects from templates with interactive prompts, custom configurations, and git initialization. Supports multiple project types, template variables, and post-creation...
Target user
Developers who frequently start new projects from templates
Problem
Developers waste time manually setting up new projects with boilerplate, dependencies, and configuration instead of using a scaffolding tool with interactive customization.
Requirements
- Scaffold projects from predefined templates
- Interactive prompts for customization
- Template variable substitution
- Initialize git repository automatically
- Run post-creation setup hooks
Core technologies
Node.js, TypeScript, prompts
Completion criteria
Users can scaffold new projects from templates with interactive customization, variable substitution, and git initialization.
Optional extensions
- Add remote template support
- Implement template inheritance
- Add dependency auto-install
- Support monorepo scaffolding
Project phases
Phase 1: Phase 1: Template System
Tasks: Set up CLI with prompts, Define template structure and manifest, Implement template file copying, Add variable substitution
Phase 2: Phase 2: Interactive Prompts
Tasks: Build interactive prompt flow, Add project type selection, Implement configuration options, Create template registry
Phase 3: Phase 3: Git and Hooks
Tasks: Implement automatic git init, Add post-creation hook scripts, Create initial commit option, Add template validation