Skip to content

Commit d70bd75

Browse files
committed
Update project structure to match Purse
Signed-off-by: Ryan Luu <ryan.luu@ryanluu.dev>
1 parent 6611d1e commit d70bd75

10 files changed

Lines changed: 66 additions & 55 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Install Wally packages
2121
run: |
2222
wally install
23-
rojo sourcemap package.project.json --output sourcemap.json
23+
rojo sourcemap satchel.project.json --output sourcemap.json
2424
wally-package-types --sourcemap sourcemap.json Packages/
2525
- name: Check RSML output is up to date
2626
run: |
@@ -36,8 +36,8 @@ jobs:
3636
run: selene src/ models/
3737
- name: Build Rojo project
3838
run: |
39-
rojo build package.project.json --output Satchel.rbxm
40-
rojo build package.project.json --output Satchel.rbxmx
39+
rojo build model.project.json --output Satchel.rbxm
40+
rojo build model.project.json --output Satchel.rbxmx
4141
- name: Archive build files
4242
uses: actions/upload-artifact@v7.0.2
4343
with:

‎.vscode/settings.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
"tag:yaml.org,2002:python/name:pymdownx.superfences.fence_code_format",
1212
"tag:yaml.org,2002:python/object/apply:pymdownx.slugs.slugify mapping"
1313
],
14-
"luau-lsp.sourcemap.rojoProjectFile": "package.project.json"
14+
"luau-lsp.sourcemap.rojoProjectFile": "satchel.project.json"
1515
}

‎.vscode/tasks.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
{
55
"label": "Build model",
66
"type": "shell",
7-
"command": "rsml build src && rojo build package.project.json --output Satchel.rbxm && rojo build package.project.json --output Satchel.rbxmx",
7+
"command": "rsml build src && rojo build model.project.json --output Satchel.rbxm && rojo build model.project.json --output Satchel.rbxmx",
88
"windows": {
9-
"command": "rsml build src; rojo build package.project.json --output Satchel.rbxm; rojo build package.project.json --output Satchel.rbxmx"
9+
"command": "rsml build src; rojo build model.project.json --output Satchel.rbxm; rojo build model.project.json --output Satchel.rbxmx"
1010
},
1111
"problemMatcher": [],
1212
"group": {

‎model.project.json‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "Satchel",
3+
"emitLegacyScripts": false,
4+
"tree": {
5+
"$path": "satchel.project.json",
6+
"ThumbnailCamera": {
7+
"$className": "Camera",
8+
"$properties": {
9+
"CFrame": [
10+
0,
11+
3.357,
12+
0,
13+
-1,
14+
0,
15+
0,
16+
0,
17+
0,
18+
1,
19+
0,
20+
1,
21+
0
22+
]
23+
},
24+
"Part": {
25+
"$className": "Part",
26+
"$properties": {
27+
"Size": [
28+
4,
29+
1,
30+
4
31+
]
32+
},
33+
"Decal": {
34+
"$className": "Decal",
35+
"$properties": {
36+
"Face": "Top",
37+
"Texture": "rbxassetid://18139994576"
38+
}
39+
}
40+
}
41+
}
42+
}
43+
}

‎models/Satchel/Packages.project.json‎

Lines changed: 0 additions & 9 deletions
This file was deleted.

‎models/Satchel/init.luau‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎models/ThumbnailCamera.model.json‎

Lines changed: 0 additions & 28 deletions
This file was deleted.

‎package.project.json‎

Lines changed: 0 additions & 10 deletions
This file was deleted.

‎satchel.project.json‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "Satchel",
3+
"emitLegacyScripts": false,
4+
"tree": {
5+
"$className": "ModuleScript",
6+
"$properties": {
7+
"Source": "return require(script.Packages[\"satchel\"])\n"
8+
},
9+
"Packages": {
10+
"$path": "Packages",
11+
"satchel": {
12+
"$path": "default.project.json"
13+
}
14+
}
15+
}
16+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"$className": "ReplicatedStorage",
88
"$path": "tests",
99
"Satchel": {
10-
"$path": "models/Satchel"
10+
"$path": "satchel.project.json"
1111
}
1212
}
1313
}

0 commit comments

Comments
 (0)