mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
setup template project better
This commit is contained in:
parent
1bf32f0920
commit
10c73c60ea
12 changed files with 172 additions and 90 deletions
7
assets/project-templates/place/.luaurc
Normal file
7
assets/project-templates/place/.luaurc
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"languageMode": "strict",
|
||||
"lint": { "*": true, "LocalUnused": false },
|
||||
"lintErrors": false,
|
||||
"typeErrors": true,
|
||||
"globals": []
|
||||
}
|
||||
7
assets/project-templates/place/.vscode/extensions.json
vendored
Normal file
7
assets/project-templates/place/.vscode/extensions.json
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"recommendations": [
|
||||
"evaera.vscode-rojo",
|
||||
"johnnymorganz.stylua",
|
||||
"johnnymorganz.luau-lsp"
|
||||
]
|
||||
}
|
||||
32
assets/project-templates/place/.vscode/settings.json
vendored
Normal file
32
assets/project-templates/place/.vscode/settings.json
vendored
Normal 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,
|
||||
}
|
||||
|
|
@ -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).
|
||||
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
0
assets/project-templates/place/src/.gitkeep
Normal file
0
assets/project-templates/place/src/.gitkeep
Normal file
|
|
@ -1 +0,0 @@
|
|||
print("Hello world, from client!")
|
||||
|
|
@ -1 +0,0 @@
|
|||
print("Hello world, from server!")
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
return function()
|
||||
print("Hello, world!")
|
||||
end
|
||||
12
assets/project-templates/place/stylua.toml
Normal file
12
assets/project-templates/place/stylua.toml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue