text-ssg
Release 0.1.0 (by Kevan-Y)
cmd-ssg
deliverable 0.1 for OSD600 open source course at seneca (by ycechungAI)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
text-ssg | cmd-ssg | |
---|---|---|
9 | 4 | |
2 | 1 | |
- | - | |
0.0 | 3.5 | |
over 2 years ago | 11 months ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
text-ssg
Posts with mentions or reviews of text-ssg.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-11-19.
-
Lab 10 - Time to release
GitHub: @Kevan-Y Repo: https://github.com/Kevan-Y/text-ssg Thanks contributor: @irenejoeunpark @DukeManh @AndreWillomitzer
-
GitHub continuous integration basics (my experience).
For my pull request to his project text-to-ssg I tested one of his functions called getAllFiles(). I wrote an expect() function expecting the files function to throw if it does not find the file (it's not the function itself throwing, but the fs.readfile function throwing).
-
Lab 8 - Add Testing Jest
Issue: https://github.com/Kevan-Y/text-ssg/issues/26 Commit: https://github.com/Kevan-Y/text-ssg/commit/2ca3d50f599b95620c1d28782fac9af9275746b8
-
Lab 6 - Adding Docusaurus features
I decided to use a third party package to have the full markdown feature + highlight with highlight.js. Issue#24
-
Lab 5 - Refectory code and git rebase
After making all the commits for the above change. I wanted to squash into 1 commit. I first run the command git rebase -i master and pick the commit that I needed to combine together to squash and leave one commit to be pick. After saving the files I wasn't happy with the name of the commit, I run the command git commit --amend and changed the name. (b092da9)
-
Lab 3 - Merging and resolving code conflict
So I started to create a branch call issue-19 for my Issue#19 then another branch call issue-20 for my Issue#20. I checkout issue-19 and started to add my language support for HTML tag. After finishing implementing my feature 8bcd08a, I committed my changes and switched to my issue-20 branch where I have to add a support markdown horizontal line. After finishing implementing this feature 9bee88d. I found out I have to go back to my issue-19 branch and add another commit to update documentation f2608c4. The same thing for issue-20 bc7ec05. After all, was done, I checkout my master branch then merged my issue-19 branch first which I did not have any issue merged it since it was a Fast-forward merge. But when I merged my issue-20 branch I had to resolve the conflict first do a commit for resolving the conflict 7ea3f6e, this is also called a 3-way-merge. After all, this is done I pushed my master branch to remote, then closed my issue + adding a message Closed by .
-
Lab 2 - Create issue and pull requests
Duc Bui Manh has to implement his markdown feature to my code. He first created an Issue#15, then created a pull request PR#16 for his change. The way of implementing a smarter than my way using some regex. I pull his code and do some testing on my side. I found that the markdown for the link was wrong, the href contains some tags. Also, the heading was wrapped with
-
Lab 1 reviewing other student code sources
After I reviewed Eugene code, he had to review mine. I always like people to review my code and tell me what I can improve on. For me it is a way to learn how to write efficient code in the future. When Eugene testing my SSG code, even with some error checking I put in place he was still able to find some bug in my code. One of the issues Issue #1 he found was my code wasn't checking recursively for any .txt files. One of the solutions is to implement a recursive check to check if there is any .txt file in the children's directory. The second big bug Issue #5 was that the generated HTML file does not pass HMTL5 standards. I notice that for a .txt file that has a name with space, it will convert to an HTML file with name + space. The solution was to replace all space with hyphens when creating the HTML file. The same logic applies to folders too.
-
Node.js static site generator (Release 0.1.0)
Sample of file generated: https://text-ssg.vercel.app/ GitHub Repo: https://github.com/Kevan-Y/text-ssg
cmd-ssg
Posts with mentions or reviews of cmd-ssg.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-09-24.
-
Continuous Integration
After that, I tried to make a test that with errors to check my CI. I updated my code so that it will have an error when I run the tests. And then I made a PR to my repository. When Github receive my PR, it will run the workflow automatically. It will check my PR to make sure it won't crush my original program. Well, there was an warning showed up as I expected: And because there was an error with the PR, there is no way I can merged them to my program. Therefore, I just reset the wrong code to the right one. Then I made the PR again. And this time, it didn't show my the error anymore and I can merge it to my repository. Moreover, for this Lab 9 we need to test other people's CI as well. I found my partner Eugene through Slack. And we talked about what is the good idea for adding a new test function to each repository. Personally, I just added a new small test function to my partner's program. It was a test function about testing what will happen if the user use the function with empty argument. Due to this is not a program that I made, I need to go through my partner's code and followed his logic to made up a test. It's slightly different when adding a test function to a program that you never participated in. But it became easy after you communicated with the program builder!
-
CI & Test Automation
I have choose to work on JavaScript SSG application that created by Eugene Chung. The testing setup and environment is completely different. He has configured the Node environment whereas I have configured .NET environment on CI. Also the testing environment is different. I have used XUnit for unit testing whereas he has used the Jest for unit testing. However, I have change to work Jest for unit test on WEB422 and previous contribution on Telescope. Also he has excellent CONTRIBUTING.md for providing how to test in his application. Therefore, the testing on my partner's repo is straightforward.
-
3 Things I Learned From Contributing to Open Source
This week, I've been contributing to another static site generator (SSG). I've picked up a few things that may be useful to first time open source contributors:
-
Lab 1 reviewing other student code sources
Testing and reviewing code might sound difficult, but with my previous co-op experience. I got better and better to read someone else code. It is like reviewing a Pull request. No code is perfect, they will be always a bug, improper formatting, unnecessary comment. One of the issue reading his code was the code wasn't properly formatted and they are random comment all over the place. Issue #2, Issue #3. After creating those issue Eugene fixed within a day and the code was much nicer to read.
What are some alternatives?
When comparing text-ssg and cmd-ssg you can also consider the following projects:
create-html-boilerplate - Generate a vanilla HTML/CSS boilerplate in a flash! ⚡
silkie - Static site generator with the smoothness of silk
markdown-it - Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed
OSD_SSG - Static site generation tool
qck - quick - Static Site Generator made with vanilla JS work inside CLI.
greenwood - Greenwood is your full-stack workbench for the web, focused on supporting modern web standards and development to help you create your next project.
textToHTML_V2