feat: add full file generation control and custom path system #43
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π― Summary
Add comprehensive control over auto-generated files with custom path support. Perfect for library development, monorepos, and custom project structures.
β¨ Features
1. Fine-Grained File Control
Control each generated file individually with three options:
false- Don't generatetrue- Generate at default locationstring- Generate at custom path2. Configuration Categories
3. Service-Specific Paths β NEW
Each external service can now define custom paths that override global config:
4. Path Placeholders
Support for dynamic placeholders in custom paths:
{serviceName},{buildDir},{rootDir},{framework}{typesDir},{serverGraphql},{clientGraphql}5. Path Resolution Priority
π Examples
Library Mode
Custom Monorepo Structure
Service Organization
π¦ Changes
New Files
src/utils/path-resolver.ts- Path resolution and placeholder system (233 lines)src/utils/file-generator.ts- File generation utilities (103 lines)Updated Files
src/types/index.ts- New config types and interfaces (+125 lines)src/index.ts- Scaffold file generation with config controlsrc/utils/type-generation.ts- SDK, types, client utils with config controlREADME.md- Comprehensive documentation with examples (+240 lines)Statistics
π§ͺ Test plan
scaffold: falseπ Related Issues
Closes #XX (if applicable)
π Breaking Changes
None. This is fully backward compatible. All new config options are optional.
π€ Generated with Claude Code