Microgen can be used to generate simple one-page websites, résumés, etc.
Given the following project structure:
dist/
src/
├─ assets/
│ ├─ css/
│ │ └─ style.css
│ └─ img/
│ ├─ logo.png
│ └─ portrait.jpg
├─ data.json
└─ index.pug
…if you run:
npx github:fabschurt/microgen src dist
…then Microgen will basically:
- copy the
src/assets
directory verbatim into thedist
directory; - parse the data from
src/data.json
, pass it to thesrc/index.pug
template, and finally render the whole thing asdist/index.html
.
- Write an updated and detailed CLI usage in the README
- Add some CLI logging and user-friendly exception catching
- Annotate the code with JSDoc and enable TypeScript type checking