From f403053c4462dfc300f1d9d73a616360b99865fb Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Mon, 26 Aug 2024 09:59:49 +0200 Subject: [PATCH] Add README --- README | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 README diff --git a/README b/README new file mode 100644 index 0000000..ceb7620 --- /dev/null +++ b/README @@ -0,0 +1,29 @@ +This repository contains SVR.JS source code and its build system. + +Before doing anything, run "npm install". +To build SVR.JS along with the zip archive, run "npm run build". +To check SVR.JS code for errors with ESLint, run "npm run lint". +To fix and beautify SVR.JS code with ESLint and Prettier, run "npm run lint:fix". +To run SVR.JS from the "dist" folder, run "npm start". +To test SVR.JS itself, run "npm run dev". This removes existing configuration. +To perform unit tests with Jest, run "npm test". + +Structure: + - assets - files to copy into dist folder and to the archive + - dist - contains SVR.JS, assets, and SVR.JS utiltiies + - generatedAssets - assets generated by the build script + - out - contains SVR.JS zip archive + - src - contains SVR.JS source code + - index.js - entry point + - handlers - handlers for servers + - middleware - built-in middleware for servers + - res - resources + - utils - utility functions + - templates - EJS templates for build script to use + - tests - Jest unit tests + - utils - unit tests for utility functions + - utils - SVR.JS utilities (each utility has a single file) + - esbuild.config.js - the build script + - eslint.config.js - ESLint configuration + - jest.config.js - Jest configuration + - svrjs.json - SVR.JS version, name, documentation URL, and statistics server collection endpoint URL \ No newline at end of file