@teliagen/blueprint
v0.4.2
Published
Blueprint engine for Teliagen Framework
Readme
@teliagen/blueprint
The blueprint engine powering the Teliagen CLI project generators.
Overview
@teliagen/blueprint is the core engine responsible for:
- Template Expansion: Copying and processing template files (handlebars support).
- File Modification: Intelligently modifying existing files (JSON, YAML, Text).
- Prompting: Executing interactive prompts defined in blueprints.
- Validation: Enforcing schema rules on blueprints.
It is primarily used internally by @teliagen/cli, but can be used standalone for custom scaffolding tools.
Installation
npm install @teliagen/blueprintUsage
import { BlueprintEngine } from '@teliagen/blueprint/engine';
const engine = new BlueprintEngine({
cwd: process.cwd(),
dryRun: false
});
await engine.execute({
source: './templates/my-blueprint',
destination: './my-new-app',
options: {
projectName: 'my-new-app',
featureFlags: ['auth', 'api']
}
});Documentation
For full documentation, visit docs.teliagen.org.
License
Apache-2.0
