feat: Use Typescript, YAML, Handlebars with generation workflow

Took 5 hours 7 minutes
This commit is contained in:
Lucàs
2025-07-14 00:27:06 +02:00
parent 3318a6cede
commit 48bde33a0e
40 changed files with 604 additions and 428 deletions
+22
View File
@@ -0,0 +1,22 @@
import {type Compiler, CompilerType, HandlebarsCompiler} from '.';
/**
* Factory class for creating compiler instances.
* This class provides a method to get a compiler based on the specified type.
*/
export class CompilerFactory {
/**
* Creates a compiler instance based on the specified type.
* @param type - The type of compiler to create.
* @returns An instance of the specified compiler.
*/
public static getCompiler(type: CompilerType): Compiler {
switch (type) {
case CompilerType.HANDLEBARS:
return HandlebarsCompiler.getInstance();
default:
throw new Error(`Unsupported compiler type: ${type}`);
}
}
}