Hi! Thanks for checking in. This week I worked on adding a new feature to another Static Site Generator Izyum. It is written in TypeScript and CLI apps in TypeScript is something new for me, so let me tell you how it went.
The feature
The feature I've been working on is support for config files.
What this means is instead of having to write izyum --input ../../textFiles/tests --output ./html/generatedHTML --language uk-UA
, you can gather all of these command options and store them in a JSON
format. After that, you can call izyum --config config.json
.
JSON parsing works as follows: for each key / value it will perform a command / argument, so "input": "tests"
will be parsed as --input tests
in command line.
How it went
Interestingly enough, all went as smooth as it could be!
Installation was easy enough, all thanks to Myrfion's documentation.
The code was easy to read and understandable, so I filed an issue, forked the repo, created a new git branch, and started working.
Implementing the feature wasn't hard, and soon enough I opened a pull request, which is now merged and my feature is officially a part of Izyum!
Top comments (0)