Developing SSG using Node
Kiran Chauhan
Jun 22
Updated on Jun 29, 2018
The complete title should Developing Static Site Generator using NodeJS.
Few weeks ago, I created a simple ( and personal-use ) static site generator called bajana ( Initially, I gave name as staticman, but it was already taken! ). While developing this bajana, I try to document the process, in hope of doing some hack/change in future because I don't want face situation like,
When I wrote this, only God and I understood what I was doing. Now, only God knows.
But due to priority, I was moved over to other projects after the initial completion of bajana. Now, I have some good free times. So, I thought why not complete the documentation with some minor changes that I want with bajana.
But, the plan with this documentation is different now. I don't want to write the possible methods usage, parameters and about the return values. I don't want to write the options you can pass to bajana to generate, build, debug the blog. Instead, I want to document the process of creating your own SSG.
Please note, that I am not talking about fully featured SSGs such as, Jekyll, Hexo, Hugo and so on. I am not that capable to develop one of these SSGs. Instead, I am talking about the SSG which satisfies my need with blogging and can be written within roughly 150 lines of code including black lines and lots of comments.
Following is the possible index aka list of posts, I am going to write as series of articles ( within finite duration of time period ). I will start with nothing, install all the software to complete the bajana. Also, I am not good at writing but speaking. So, read the articles, like I am speaking, ignore the grammar in sentences ( or you can suggest the correct one! ), ignore the word arrangement in sentences and so on.
Anyway, that being said, following is the title of posts, I am going to write ( and also update the link as I publish new article ).
- Introduction
- Prerequisite
- Hello, World program
- Standard Library or Modules
- ES6
- Steps of SSG
- Step 01 - Reading Input Files
- Step 03 - Generating Output Files
- Step 02 - The Process
- Front-Matter
- Layouts
- Support for Assets
- Config
- Wrap-up
This is not the final index. It may change over time based on content that it include. Also, this is purely experimental and things might goes wrong in terms of writing. But hey, you can always send me the feedback, suggestion, advice(!) and what you are thinking. Shy to comment, shoot me an email!
Developing SSG using Node: ES6
Developing SSG using Node: Standard Library or Modules
Trending on dev.to
Staying on top of new Javascript features
How to Build a REST API using Node, Express, and Mongo
Very fascinating NPM packages
BxJS Weekly Episode 25 - javascript news podcast
Coder IDE - The Next-gen IDE on the βοΈ
What I wish I knew when learning Node.js
Demystifying `devDependencies` and `dependencies`
The not fancy CLI output of pnpm
58
11