mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 09:30:45 -05:00
Significant refactoring of globals and entry points. Oh my. - The global variables previously accessible throughout the codebase have been restructured as private static properties of the Program class. Public static getter methods have been added to allow read access to these properties throughout the codebase. - Entry points, which were dispersed across multiple files, have been consolidated and simplified into a static method on the Program class, making the entry logic easier to follow. - Removed unnecessary ~~globals~~ Program static properties. - Adjusted imports and references across the codebase to reflect the new structure. Try not to focus on the `gulpfile.mjs` changes, as it won't be around for much longer. *[winky face]* Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
65 lines
2.0 KiB
Plaintext
65 lines
2.0 KiB
Plaintext
{
|
|
"folders": [
|
|
{
|
|
"path": "."
|
|
}
|
|
],
|
|
"settings": {
|
|
"window.title": "SPT Server",
|
|
"editor.formatOnSave": true,
|
|
"editor.defaultFormatter": "biomejs.biome",
|
|
"editor.codeActionsOnSave": {
|
|
"source.organizeImports.biome": "explicit",
|
|
"quickfix.biome": "explicit"
|
|
}
|
|
},
|
|
"extensions": {
|
|
"recommendations": [
|
|
"EditorConfig.EditorConfig", // EditorConfig file support.
|
|
"vitest.explorer", // ViTest test runner.
|
|
"refringe.spt-id-highlighter", // SPT ID information of hover.
|
|
"biomejs.biome" // Biome code formatting, linting, and refactoring.
|
|
]
|
|
},
|
|
"launch": {
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Debug",
|
|
"type": "node",
|
|
"program": "${workspaceFolder}/src/entry/run.ts",
|
|
"runtimeVersion": "22.12.0",
|
|
"runtimeExecutable": "tsx",
|
|
"request": "launch",
|
|
"runtimeArgs": [
|
|
"watch",
|
|
"--clear-screen=false"
|
|
],
|
|
"console": "integratedTerminal",
|
|
"internalConsoleOptions": "neverOpen",
|
|
"skipFiles": [
|
|
"<node_internals>/**",
|
|
"${workspaceFolder}/node_modules/**",
|
|
],
|
|
},
|
|
{
|
|
"name": "Run Vitest Tests",
|
|
"type": "node",
|
|
"runtimeVersion": "22.12.0",
|
|
"runtimeExecutable": "npm",
|
|
"request": "launch",
|
|
"runtimeArgs": [
|
|
"run",
|
|
"test"
|
|
],
|
|
"console": "integratedTerminal",
|
|
"internalConsoleOptions": "neverOpen",
|
|
"skipFiles": [
|
|
"<node_internals>/**",
|
|
"${workspaceFolder}/node_modules/**",
|
|
],
|
|
}
|
|
]
|
|
}
|
|
}
|