mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 01:34:01 +00:00
## About The Pull Request Swaps out node & yarn in favor of [bun](https://bun.sh/)  sub tasks - [x] add bun setup script - [x] fix tgui-dev-server (bun glob is different) - [x] set juke to run bun - [x] remove all yarn stuff - [x] convert all tests from vitest to bun - [x] fight with CI/tgs ## Why It's Good For The Game Yarn has served us over the years as our package manager but the method it bundles dependencies has lead to issues and setbacks, notably needing to wait on rspack support, but more recently in trying to switch to biome 1. I can add in packages that do not need these workarounds, like god intended 2. We won't need to [keep around sdks](https://yarnpkg.com/getting-started/editor-sdks) which rely on yarn to even publish 3. We're not committing the yarn cache or .pnp file, which kind of defeats the purpose 4. Native typescript support and testing 5. Because it'd be cool ## Caveats Rspack was throwing errors on TGS while doing this. I needed to switch back to webpack/swc, which seems to work flawlessly. It was too tiring for anyone involved to debug and this was the simplest route. It adds a completely negligible amount of time to build. It might even resolve some issues elsewhere. Making this switch extends that very first setup time! I'm working on cutting it down, but as of right now, it takes about 80 seconds just for TGUI to download all the packages. Afterwards, it's the same. ## Changelog
23 lines
715 B
JSON
23 lines
715 B
JSON
{
|
|
"eslint.workingDirectories": ["./tgui"],
|
|
"editor.codeActionsOnSave": {
|
|
"source.fixAll.eslint": "explicit"
|
|
},
|
|
"files.eol": "\n",
|
|
"files.insertFinalNewline": true,
|
|
"files.trimTrailingWhitespace": true,
|
|
"editor.insertSpaces": false,
|
|
"git.branchProtection": ["master"],
|
|
"gitlens.advanced.blame.customArguments": ["-w"],
|
|
"tgstationTestExplorer.project.resultsType": "json",
|
|
"[javascript][typescript][typescriptreact][javascriptreact][html][scss][css][json][jsonc][markdown][yaml]": {
|
|
"editor.rulers": [80],
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
"editor.formatOnSave": true
|
|
},
|
|
"workbench.editorAssociations": {
|
|
"*.dmi": "dmiEditor.dmiEditor"
|
|
},
|
|
"Lua.diagnostics.enable": false
|
|
}
|