Dorian Niemiec
67c0c8b97f
Some checks failed
Repo sync GitHub -> SVR.JS Git server / svrjsgit (push) Has been cancelled
24 lines
No EOL
1 KiB
Text
24 lines
No EOL
1 KiB
Text
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) |