This repository has been archived on 2024-09-12. You can view files and clone it, but cannot push or open issues or pull requests.
svrjs-blog/source/_posts/SVR-JS-is-rewritten-from-scratch.md

1.5 KiB

title date tags category thumbnail
SVR.JS is rewritten from scratch 2024-08-25 07:48:06
web
webserver
News /images/covers/SVR-JS-is-rewritten-from-scratch.png

We have decided to rewrite SVR.JS from scratch. SVR.JS had many changes and additions in its functionality since its beginning in 2018 - from a web server designed for one website, to a general-purpose web server software.

One reason we have decided to rewrite SVR.JS from scratch is the lack of proper building system for SVR.JS. Although there exists a Git repository for packing SVR.JS archives, we have decided to create a new, proper build system consisting of esbuild, ESLint with Prettier, and Jest. esbuild claims to be an extremely fast JavaScript bundler. ESLint is a popular linter, which identifies problematic fragments in the code. Prettier is an opinionated code formatter. Jest is a popular JavaScript testing framework.

Another reason is that the entire source of SVR.JS is currently in one file (not counting bundled utilities). This makes SVR.JS more difficult to maintain. The new SVR.JS will be split into multiple files, but bundled together to one file called svr.js.

The rewritten SVR.JS is currently in the "next" branch of SVR.JS Git repository. People looking to contribute to SVR.JS can register on the SVR.JS Git server.