v1 was rushed in a week and ultimately meant for personal use. It was obvious that it needed a lot of refactoring and rewriting. On top of these fixes and optimizations, v2 finally implements features that makes this tool more complete.
Typescript
Rewrote the codebase with Typescript to be more scalable and reliable in the future. Use runtypes to validate user input, specifically the .temples.yaml
configuration file.
API Changes
- More consistent language in the API.
- Improve CLI experience with features you would typically expect out of a CLI tool (e.g.
--help
,--version
flags).
New Features
- Insert code into existing files.
- Customize Handlebars instance and provide options to
Handlebars.compile
function. - Point to a different configuration file
- More gracefully exit out of errors