setup template project better

This commit is contained in:
Joe 2026-02-02 12:52:28 -06:00
parent 1bf32f0920
commit 10c73c60ea
12 changed files with 172 additions and 90 deletions

View file

@ -0,0 +1,7 @@
{
"languageMode": "strict",
"lint": { "*": true, "LocalUnused": false },
"lintErrors": false,
"typeErrors": true,
"globals": []
}

View file

@ -0,0 +1,7 @@
{
"recommendations": [
"evaera.vscode-rojo",
"johnnymorganz.stylua",
"johnnymorganz.luau-lsp"
]
}

View file

@ -0,0 +1,32 @@
{
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.rulers": [
80
],
"files.eol": "\n",
"files.encoding": "utf8",
"files.autoGuessEncoding": false,
"luau-lsp.plugin.maximumRequestBodySize": "500mb",
"luau-lsp.plugin.enabled": true,
"luau-lsp.completion.autocompleteEnd": true,
"luau-lsp.completion.imports.enabled": true,
"luau-lsp.completion.imports.separateGroupsWithLine": true,
"luau-lsp.completion.showPropertiesOnMethodCall": true,
"luau-lsp.hover.multilineFunctionDefinitions": true,
"luau-lsp.hover.showTableKinds": true,
"luau-lsp.inlayHints.makeInsertable": false,
"luau-lsp.inlayHints.hideHintsForMatchingParameterNames": false,
"luau-lsp.sourcemap.autogenerate": true,
"luau-lsp.sourcemap.includeNonScripts": true,
"luau-lsp.diagnostics.strictDatamodelTypes": true,
"luau-lsp.completion.imports.requireStyle": "alwaysAbsolute",
"luau-lsp.fflags.enableNewSolver": false,
"[luau]": {
"editor.defaultFormatter": "JohnnyMorganz.stylua"
},
"stylua.targetReleaseVersion": "latest",
"git.ignoreLimitWarning": true,
}

View file

@ -1,17 +1,10 @@
# {project_name}
Generated by [Rojo](https://github.com/rojo-rbx/rojo) {rojo_version}.
## Getting Started
To build the place from scratch, use:
Generated by [Atlas](https://github.com/UserGeneratedLLC/rojo).
```bash
rojo build -o "{project_name}.rbxlx"
```
Next, open `{project_name}.rbxlx` in Roblox Studio and start the Rojo server:
## Commands
```bash
rojo serve
rojo syncback
```
For more help, check out [the Rojo documentation](https://rojo.space/docs).

View file

@ -1,72 +1,9 @@
{
"name": "{project_name}",
"tree": {
"$className": "DataModel",
"ReplicatedStorage": {
"Shared": {
"$path": "src/shared"
}
},
"ServerScriptService": {
"Server": {
"$path": "src/server"
}
},
"StarterPlayer": {
"StarterPlayerScripts": {
"Client": {
"$path": "src/client"
}
}
},
"Workspace": {
"$properties": {
"FilteringEnabled": true
},
"Baseplate": {
"$className": "Part",
"$properties": {
"Anchored": true,
"Color": [
0.38823,
0.37254,
0.38823
],
"Locked": true,
"Position": [
0,
-10,
0
],
"Size": [
512,
20,
512
]
}
}
},
"Lighting": {
"$properties": {
"Ambient": [
0,
0,
0
],
"Brightness": 2,
"GlobalShadows": true,
"Outlines": false,
"Technology": "Voxel"
}
},
"SoundService": {
"$properties": {
"RespectFilteringEnabled": true
}
}
}
}
name: "{project_name}",
servePlaceIds: [{place_id}],
syncScriptsOnly: true,
tree: {
$className: "DataModel",
$path: "src"
}
}

View file

@ -1,8 +1,10 @@
# Project place file
/{project_name}.rbxlx
/*.rbxlx
/*.rbxl
# Roblox Studio lock files
/*.rbxlx.lock
/*.rbxl.lock
sourcemap.json
# Sourcemap
/sourcemap.json

View file

@ -1 +0,0 @@
print("Hello world, from client!")

View file

@ -1 +0,0 @@
print("Hello world, from server!")

View file

@ -1,3 +0,0 @@
return function()
print("Hello, world!")
end

View file

@ -0,0 +1,12 @@
syntax = "Luau"
column_width = 80
line_endings = "Unix"
indent_type = "Spaces"
indent_width = 2
quote_style = "AutoPreferDouble"
call_parentheses = "Always"
collapse_simple_statement = "FunctionOnly"
space_after_function_names = "Never"
[sort_requires]
enabled = true