Integration with ModSecurity; SVR.JS mod
Find a file
2025-01-12 18:35:53 +01:00
.husky chore: init 2025-01-12 18:33:26 +01:00
src chore: init 2025-01-12 18:33:26 +01:00
tests chore: init 2025-01-12 18:33:26 +01:00
.gitignore chore: init 2025-01-12 18:33:26 +01:00
commitlint.config.js chore: init 2025-01-12 18:33:26 +01:00
esbuild.config.js chore: init 2025-01-12 18:33:26 +01:00
eslint.config.js chore: init 2025-01-12 18:33:26 +01:00
jest.config.js chore: init 2025-01-12 18:33:26 +01:00
LICENSE chore: init 2025-01-12 18:33:26 +01:00
lint-staged.config.js chore: init 2025-01-12 18:33:26 +01:00
modInfo.json chore: init 2025-01-12 18:33:26 +01:00
nodemon.json chore: init 2025-01-12 18:33:26 +01:00
package-lock.json chore: init 2025-01-12 18:33:26 +01:00
package.json chore: init 2025-01-12 18:33:26 +01:00
prettier.config.js chore: init 2025-01-12 18:33:26 +01:00
README chore: init 2025-01-12 18:33:26 +01:00
svrjs.install.js chore: init 2025-01-12 18:33:26 +01:00

This repository contains SVR.JS mod starter code and its build system
The mod will work for SVR.JS Nightly-GitNext.

Before doing anything, run "npm install".
To start the development server for the SVR.JS mod, run "npm run dev".
To build SVR.JS mod, run "npm run build".
To check SVR.JS mod code for errors with ESLint, run "npm run lint".
To fix and beautify SVR.JS mod code with ESLint and Prettier, run "npm run lint:fix".
To perform unit tests with Jest, run "npm test".

Structure:
 - dist - contains the built SVR.JS mod
 - src - contains SVR.JS mod source code
   - index.js - entry point
   - utils - utility functions
 - tests - Jest unit tests
   - utils - unit tests for utility functions
 - esbuild.config.js - the build script
 - eslint.config.js - ESLint configuration
 - jest.config.js - Jest configuration
 - modInfo.json - SVR.JS mod name and version
 - nodemon.json - Nodemon configuration
 - prettier.config.js - Prettier configuration
 - svrjs.install.js - SVR.JS installation script (SVR.JS is used by the development server)