: The engine runs in the background, ensuring that changes to models or templates are immediately reflected in the output files.
mkdir my-codegen cd my-codegen npm init -y yellicode
| Issue | Solution | | :--- | :--- | | | Ensure you ran npm install inside your generator project directory. | | Output file is empty | Ensure you are calling writer.writeLine and that your Generator class extends Generator and implements generate . | | JSON syntax errors | Use a JSON validator on your model.json . The template will fail silently if the JSON is malformed. | | Wrong Encoding | Yellicode defaults to UTF-8. Check codegen.json settings if you need specific file encoding. | : The engine runs in the background, ensuring
Let's build a simple generator that creates a C# class from a JSON model. | | JSON syntax errors | Use a JSON validator on your model
npm install -g @yellicode/cli