Scaffoldfy Documentation
Welcome to the official documentation for @pixpilot/scaffoldfy (formerly scaffoldfy) - a flexible and powerful template initialization utility for automating project setup, cleanup, and configuration tasks.
π Note: This documentation is available at GitHub Pages with a convenient navigation sidebar.
π Quick Start
New to Scaffoldfy? Start here:
- Quick Reference - Essential commands and examples to get started in minutes
- Getting Started Guide - Detailed installation and setup instructions
- Task Types Reference - Learn about all available task types
π Table of Contents
Getting Started
- Getting Started Guide - Installation, CLI usage, and programmatic API examples
Core Concepts
- Task Types Reference - Complete reference for all built-in task types
- Interactive Prompts - Collect user input with various prompt types
- Variables - Define reusable values without user interaction
- Value Transformers - Transform prompt and variable values
- Prompts Quick Reference - Quick syntax reference for prompts
Advanced Features
- Advanced Features Guide - Conditional execution, variables, and Handlebars templates
- Configuration Inheritance - Extend and compose configurations for code reuse
- Handlebars Templates - Advanced templating with conditionals, loops, and helpers
- Plugin System - Create custom task types and lifecycle hooks
- Dry Run Mode - Preview changes with detailed diffs before applying
References
- Executable Defaults Reference - Default values for executable tasks
π Quick Links
Essential Reading
- Getting Started - Start here if youβre new
- Task Types Reference - Learn about available task types
- Interactive Prompts - Make your configurations interactive
Common Use Cases
Setting up a new project? β Getting Started Guide + Task Types Reference
Need user input? β Interactive Prompts + Prompts Quick Reference
Need dynamic values without user input? β Variables
Need to transform user input or values? β Value Transformers
Building complex templates? β Configuration Inheritance + Handlebars Templates
Want to preview changes first? β Dry Run Mode
Extending with custom functionality? β Plugin System
Using conditional logic? β Advanced Features Guide
π‘ Features at a Glance
- π§© Configuration Inheritance - Extend base configurations for code reuse
- π Dry-Run Mode with Diff - Preview exact changes before applying
- π Plugin System - Create custom task types and lifecycle hooks
- π¬ Interactive Prompts - Collect user input with 5 prompt types
- π¦ JSON/TypeScript Config - Define tasks in JSON or TypeScript files
- π Task Dependencies - Ensure tasks run in the correct order
- β Type-Safe - Full TypeScript support with JSON schema validation
- π― Template Variables - Use `` syntax for dynamic configuration
- π Handlebars Support - Advanced templating with conditionals, loops, and helpers
- β‘ CLI & Programmatic - Use as a command-line tool or import as a library
π€ Contributing
Found an issue or want to improve the docs? Contributions are welcome!
π License
MIT License - see the LICENSE file for details.