MERNMail integration mod for SVR.JS
Find a file
Dorian Niemiec d4887d55dc
Some checks failed
Repo sync GitHub -> SVR.JS Git server / svrjsgit (push) Failing after 4s
ci: create a GitHub action which mirrors contents of the repository
2024-11-08 16:39:23 +01:00
.github/workflows ci: create a GitHub action which mirrors contents of the repository 2024-11-08 16:39:23 +01:00
.husky chore: init 2024-11-08 16:32:47 +01:00
src chore: init 2024-11-08 16:32:47 +01:00
.gitignore chore: init 2024-11-08 16:32:47 +01:00
commitlint.config.js chore: init 2024-11-08 16:32:47 +01:00
esbuild.config.js chore: init 2024-11-08 16:32:47 +01:00
eslint.config.js chore: init 2024-11-08 16:32:47 +01:00
jest.config.js chore: init 2024-11-08 16:32:47 +01:00
LICENSE chore: init 2024-11-08 16:32:47 +01:00
lint-staged.config.js chore: init 2024-11-08 16:32:47 +01:00
modInfo.json chore: init 2024-11-08 16:32:47 +01:00
package-lock.json chore: init 2024-11-08 16:32:47 +01:00
package.json chore: init 2024-11-08 16:32:47 +01:00
README chore: init 2024-11-08 16:32:47 +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 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".

To test the mod:
1. Clone the SVR.JS repository with "git clone https://git.svrjs.org/svrjs/svrjs.git" command.
2. Change the working directory to "svrjs" using "cd svrjs".
3. Build SVR.JS by first running "npm install" and then running "npm run build".
4. Copy the mod into mods directory in the dist directory using "cp ../dist/mod.js dist/mods" (GNU/Linux, Unix, BSD) or "copy ..\dist\mod.js dist\mods" (Windows).
5. Do the necessary mod configuration if the mod requires it.
6. Run SVR.JS by running "npm start".
7. Do some requests to the endpoints covered by the mod.

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