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

17 lines
1.5 KiB
Markdown
Raw Normal View History

2024-08-25 08:04:08 +02:00
---
title: SVR.JS is rewritten from scratch
date: 2024-08-25 07:48:06
tags:
- web
- webserver
category: News
thumbnail: /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](https://git.svrjs.org/svrjs/svrjs-build-tools), we have decided to create a new, proper build system consisting of esbuild, ESLint with Prettier, and Jest. [esbuild](https://esbuild.github.io/) claims to be an extremely fast JavaScript bundler. [ESLint](https://eslint.org/) is a popular linter, which identifies problematic fragments in the code. [Prettier](https://prettier.io/) is an opinionated code formatter. [Jest](https://jestjs.io/) 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](https://git.svrjs.org/svrjs/svrjs/src/branch/next). People looking to contribute to SVR.JS can register on the [SVR.JS Git server](https://git.svrjs.org).