Local development
Prerequisites
- Node.js (version 20.x)
- Yarn
- Git
- Windows: Bash (e.g. Git Bash)
- Tampermonkey or Greasemonkey
Setup
To work on LSSM locally follow these steps:
Clone the repository to your local machine and use the
dev
branch:git clone -b dev https://github.com/LSS-Manager/LSSM-V.4.git
Install the dependencies:
yarn install
Run the local dev build
yarn dev:local
This will start the development server as well. If you need to restart it later use
yarn run dev:serve
Different Port
If you want to use a different port (eg. 8081) run
yarn run dev:local --port 8081
respectivelyyarn run dev:serve --port 8081
.Install the userscript in your browser: Open
https://localhost:36551/static/lssm-v4.local.user.js
and run the tampermonkey installation process.Beware of duplicate scripts
Please disable the production version of LSSM before enabling the development version.
Reload the game website, and you should see the development version of LSSM.