mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
RunContext refactor + sync updates
This commit is contained in:
parent
c7cddb72c2
commit
d3cc11659a
79 changed files with 1415 additions and 626 deletions
|
|
@ -7,9 +7,10 @@ expression: contents
|
|||
<Properties>
|
||||
<string name="Name">client_in_folder</string>
|
||||
</Properties>
|
||||
<Item class="LocalScript" referent="1">
|
||||
<Item class="Script" referent="1">
|
||||
<Properties>
|
||||
<string name="Name">localScript</string>
|
||||
<token name="RunContext">2</token>
|
||||
<string name="Source">-- This is a Lua client script</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
|
|
|
|||
|
|
@ -3,9 +3,10 @@ source: tests/tests/build.rs
|
|||
expression: contents
|
||||
---
|
||||
<roblox version="4">
|
||||
<Item class="LocalScript" referent="0">
|
||||
<Item class="Script" referent="0">
|
||||
<Properties>
|
||||
<string name="Name">client_init</string>
|
||||
<token name="RunContext">2</token>
|
||||
<string name="Source">return "From folder/init.client.lua"</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
---
|
||||
source: tests/tests/build.rs
|
||||
assertion_line: 98
|
||||
expression: contents
|
||||
---
|
||||
<roblox version="4">
|
||||
<Item class="LocalScript" referent="0">
|
||||
<Item class="Script" referent="0">
|
||||
<Properties>
|
||||
<string name="Name">issue_546</string>
|
||||
<bool name="Disabled">true</bool>
|
||||
<token name="RunContext">2</token>
|
||||
<string name="Source">print("Hello, world!")</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ expression: contents
|
|||
<Properties>
|
||||
<string name="Name">hello</string>
|
||||
<bool name="Disabled">true</bool>
|
||||
<token name="RunContext">0</token>
|
||||
<token name="RunContext">1</token>
|
||||
<string name="Source">-- This script should be marked 'Disabled'</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ expression: contents
|
|||
<Item class="Script" referent="1">
|
||||
<Properties>
|
||||
<string name="Name">serverScript</string>
|
||||
<token name="RunContext">0</token>
|
||||
<token name="RunContext">1</token>
|
||||
<string name="Source">-- This is a Lua server script</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ expression: contents
|
|||
<Item class="Script" referent="0">
|
||||
<Properties>
|
||||
<string name="Name">server_init</string>
|
||||
<token name="RunContext">0</token>
|
||||
<token name="RunContext">1</token>
|
||||
<string name="Source">return "From folder/init.server.luau"</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: tests/tests/build.rs
|
||||
assertion_line: 104
|
||||
expression: contents
|
||||
---
|
||||
<roblox version="4">
|
||||
|
|
@ -11,13 +10,14 @@ expression: contents
|
|||
<Item class="Script" referent="1">
|
||||
<Properties>
|
||||
<string name="Name">bar</string>
|
||||
<token name="RunContext">0</token>
|
||||
<token name="RunContext">1</token>
|
||||
<string name="Source">-- Hello, from bar (a Script)!</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="LocalScript" referent="2">
|
||||
<Item class="Script" referent="2">
|
||||
<Properties>
|
||||
<string name="Name">baz</string>
|
||||
<token name="RunContext">2</token>
|
||||
<string name="Source">-- Hello, from baz (a LocalScript)!</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
|
|
|
|||
|
|
@ -1,13 +0,0 @@
|
|||
{
|
||||
"name": "nested_runcontext",
|
||||
"emitLegacyScripts": false,
|
||||
"tree": {
|
||||
"$className": "Folder",
|
||||
"folder1": {
|
||||
"$path": "folder1"
|
||||
},
|
||||
"folder2": {
|
||||
"$path": "folder2"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"name": "nested_runcontext",
|
||||
"emitLegacyScripts": true,
|
||||
"tree": {
|
||||
"$path": "folder3"
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/tests/serve.rs
|
||||
expression: "read_response.intern_and_redact(&mut redactions, root_id)"
|
||||
|
||||
---
|
||||
instances:
|
||||
id-2:
|
||||
|
|
@ -25,7 +24,7 @@ instances:
|
|||
Parent: id-2
|
||||
Properties:
|
||||
RunContext:
|
||||
Enum: 0
|
||||
Enum: 1
|
||||
Source:
|
||||
String: "-- Hello, from bar!"
|
||||
id-4:
|
||||
|
|
@ -41,4 +40,3 @@ instances:
|
|||
String: Updated foo!
|
||||
messageCursor: 1
|
||||
sessionId: id-1
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/tests/serve.rs
|
||||
expression: "read_response.intern_and_redact(&mut redactions, root_id)"
|
||||
|
||||
---
|
||||
instances:
|
||||
id-2:
|
||||
|
|
@ -25,7 +24,7 @@ instances:
|
|||
Parent: id-2
|
||||
Properties:
|
||||
RunContext:
|
||||
Enum: 0
|
||||
Enum: 1
|
||||
Source:
|
||||
String: "-- Hello, from bar!"
|
||||
id-4:
|
||||
|
|
@ -41,4 +40,3 @@ instances:
|
|||
String: "-- Hello, from foo!"
|
||||
messageCursor: 0
|
||||
sessionId: id-1
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: tests/tests/serve.rs
|
||||
assertion_line: 284
|
||||
expression: "read_response.intern_and_redact(&mut redactions, root_id)"
|
||||
---
|
||||
instances:
|
||||
|
|
@ -28,18 +27,20 @@ instances:
|
|||
Parent: id-2
|
||||
Properties:
|
||||
RunContext:
|
||||
Enum: 0
|
||||
Enum: 1
|
||||
Source:
|
||||
String: "-- Hello, from bar (a Script)!"
|
||||
id-4:
|
||||
Children: []
|
||||
ClassName: LocalScript
|
||||
ClassName: Script
|
||||
Id: id-4
|
||||
Metadata:
|
||||
ignoreUnknownInstances: false
|
||||
Name: baz
|
||||
Parent: id-2
|
||||
Properties:
|
||||
RunContext:
|
||||
Enum: 2
|
||||
Source:
|
||||
String: "-- Hello, from baz (a LocalScript)!"
|
||||
id-5:
|
||||
|
|
@ -77,4 +78,3 @@ instances:
|
|||
String: "Hello, from qux (a .rojo file that's turned into a StringValue)!"
|
||||
messageCursor: 0
|
||||
sessionId: id-1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue